From 40f2d6d57b9ae70d2fec86a6e8089b0c3814a35e Mon Sep 17 00:00:00 2001 From: Florian Bernd Date: Tue, 21 Apr 2026 13:20:31 +0000 Subject: [PATCH 1/2] Regenerate client --- .../_Generated/Api/ApiUrlLookup.g.cs | 4 + .../AsyncSearch/SubmitAsyncSearchRequest.g.cs | 48 ++- .../Api/CancelReindexRequest.Converters.g.cs | 53 +++ .../_Generated/Api/CancelReindexRequest.g.cs | 200 +++++++++++ .../Api/CancelReindexResponse.Converters.g.cs | 162 +++++++++ .../_Generated/Api/CancelReindexResponse.g.cs | 124 +++++++ .../_Generated/Api/CountRequest.g.cs | 52 ++- .../_Generated/Api/DeleteByQueryRequest.g.cs | 52 ++- .../_Generated/Api/Eql/EqlSearchRequest.g.cs | 48 ++- .../Api/Esql/AsyncQueryStopResponse.g.cs | 38 --- .../Api/Esql/EsqlQueryResponse.g.cs | 38 --- .../_Generated/Api/FieldCapsRequest.g.cs | 52 ++- .../Api/GetReindexRequest.Converters.g.cs | 53 +++ .../_Generated/Api/GetReindexRequest.g.cs | 218 ++++++++++++ .../Api/GetReindexResponse.Converters.g.cs | 153 +++++++++ .../_Generated/Api/GetReindexResponse.g.cs | 118 +++++++ .../IndexManagement/ClearCacheRequest.g.cs | 48 ++- .../IndexManagement/CloseIndexRequest.g.cs | 48 ++- .../IndexManagement/DeleteIndexRequest.g.cs | 48 ++- .../Api/IndexManagement/DiskUsageRequest.g.cs | 52 ++- .../IndexManagement/ExistsAliasRequest.g.cs | 48 ++- .../Api/IndexManagement/ExistsRequest.g.cs | 48 ++- .../FieldUsageStatsRequest.g.cs | 52 ++- .../Api/IndexManagement/FlushRequest.g.cs | 48 ++- .../IndexManagement/ForcemergeRequest.g.cs | 48 ++- .../Api/IndexManagement/GetAliasRequest.g.cs | 48 ++- .../GetFieldMappingRequest.g.cs | 48 ++- .../Api/IndexManagement/GetIndexRequest.g.cs | 52 ++- .../GetIndicesSettingsRequest.g.cs | 60 ++-- .../IndexManagement/GetMappingRequest.g.cs | 48 ++- .../IndexManagement/IndicesStatsRequest.g.cs | 10 +- .../Api/IndexManagement/OpenIndexRequest.g.cs | 48 ++- .../PutIndicesSettingsRequest.g.cs | 60 ++-- .../IndexManagement/PutMappingRequest.g.cs | 48 ++- .../Api/IndexManagement/RecoveryRequest.g.cs | 48 ++- .../Api/IndexManagement/RefreshRequest.g.cs | 48 ++- .../ReloadSearchAnalyzersRequest.g.cs | 48 ++- .../IndexManagement/RemoveBlockRequest.g.cs | 52 ++- .../ResolveClusterRequest.g.cs | 39 ++- .../IndexManagement/ResolveIndexRequest.g.cs | 39 ++- .../Api/IndexManagement/SegmentsRequest.g.cs | 48 ++- .../IndexManagement/ShardStoresRequest.g.cs | 52 ++- .../IndexManagement/ValidateQueryRequest.g.cs | 48 ++- .../ChatCompletionUnifiedRequest.g.cs | 4 + .../ChatCompletionUnifiedResponse.g.cs | 38 --- .../Inference/StreamCompletionRequest.g.cs | 4 + .../Inference/StreamCompletionResponse.g.cs | 38 --- .../_Generated/Api/InfoRequest.g.cs | 4 +- .../_Generated/Api/InfoResponse.g.cs | 2 +- .../Api/ListReindexRequest.Converters.g.cs | 53 +++ .../_Generated/Api/ListReindexRequest.g.cs | 169 +++++++++ .../Api/ListReindexResponse.Converters.g.cs | 81 +++++ ...Response.g.cs => ListReindexResponse.g.cs} | 28 +- .../MachineLearning/PutDatafeedRequest.g.cs | 48 ++- .../Api/MachineLearning/PutJobRequest.g.cs | 48 ++- .../UpdateDatafeedRequest.g.cs | 48 ++- .../_Generated/Api/MultiSearchRequest.g.cs | 44 ++- .../Api/OpenPointInTimeRequest.g.cs | 16 +- .../_Generated/Api/RankEvalRequest.g.cs | 44 ++- .../_Generated/Api/ReindexRequest.g.cs | 6 +- .../_Generated/Api/SearchMvtRequest.g.cs | 4 + .../_Generated/Api/SearchRequest.g.cs | 52 ++- .../_Generated/Api/SearchShardsRequest.g.cs | 52 ++- .../_Generated/Api/SearchTemplateRequest.g.cs | 52 ++- .../ClearCacheRequest.g.cs | 48 ++- .../CloneApiKeyRequest.Converters.g.cs | 90 +++++ .../Api/Security/CloneApiKeyRequest.g.cs | 295 ++++++++++++++++ .../CloneApiKeyResponse.Converters.g.cs | 99 ++++++ .../CloneApiKeyResponse.g.cs} | 46 ++- .../Snapshot/RepositoryAnalyzeRequest.g.cs | 12 + .../_Generated/Api/Tasks/GetTasksRequest.g.cs | 25 ++ .../ScheduleNowTransformRequest.g.cs | 31 ++ .../_Generated/Api/UpdateByQueryRequest.g.cs | 52 ++- .../Client/ElasticsearchClient.Esql.g.cs | 96 +++--- .../Client/ElasticsearchClient.Inference.g.cs | 48 +-- .../Client/ElasticsearchClient.Security.g.cs | 30 ++ .../Client/ElasticsearchClient.g.cs | 170 ++++++++- .../FieldDateMath.Converters.g.cs | 2 +- .../Types/Aggregations/FieldDateMath.g.cs | 8 +- .../_Generated/Types/CommonStatsFlag.g.cs | 115 +++++++ .../Types/Core/MSearch/MultisearchHeader.g.cs | 35 ++ .../RecoveryStage.Converters.g.cs | 137 ++++++++ .../IndexManagement/RecoveryStage.g.cs} | 57 +++- .../RecoveryType.Converters.g.cs | 123 +++++++ .../Types/IndexManagement/RecoveryType.g.cs | 64 ++++ .../Types/IndexManagement/Segment.g.cs | 60 ++++ .../ShardRecovery.Converters.g.cs | 4 +- .../Types/IndexManagement/ShardRecovery.g.cs | 18 +- .../IndexManagement/ShardSegmentRouting.g.cs | 17 + .../Types/IndexManagement/ShardStore.g.cs | 17 + .../IndexManagement/ShardStoreAllocation.g.cs | 15 + .../_Generated/Types/IndicesOptions.g.cs | 26 +- ...AzureOpenAIServiceSettings.Converters.g.cs | 38 ++- .../Inference/AzureOpenAIServiceSettings.g.cs | 178 +++++++++- .../ContextualAITaskSettings.Converters.g.cs | 9 - .../Inference/ContextualAITaskSettings.g.cs | 20 -- .../EmbeddingContentObjectContents.g.cs | 5 +- .../_Generated/Types/Inference/Message.g.cs | 4 +- .../Types/Inference/RequestEmbedding.g.cs | 8 +- .../Ingest/GrokProcessor.Converters.g.cs | 11 +- .../Types/Ingest/GrokProcessor.g.cs | 29 ++ .../Types/Mapping/FieldType.Converters.g.cs | 14 + .../_Generated/Types/Mapping/FieldType.g.cs | 4 +- .../LongNumberRangeQuery.Converters.g.cs | 128 +++++++ .../Types/QueryDsl/LongNumberRangeQuery.g.cs | 323 ++++++++++++++++++ .../_Generated/Types/QueryDsl/Query.g.cs | 1 + .../Types/QueryDsl/RangeQuery.Converters.g.cs | 3 + .../_Generated/Types/QueryDsl/RangeQuery.g.cs | 25 ++ .../Types/ReindexTaskInfo.Converters.g.cs | 126 +++++++ .../_Generated/Types/ReindexTaskInfo.g.cs | 110 ++++++ .../Types/ReindexTaskResult.Converters.g.cs | 180 ++++++++++ .../_Generated/Types/ReindexTaskResult.g.cs | 142 ++++++++ .../Types/Security/ApiKeyQuery.g.cs | 1 + .../AuthenticateApiKey.Converters.g.cs | 2 +- .../Types/Security/AuthenticateApiKey.g.cs | 4 +- .../AuthenticateToken.Converters.g.cs | 11 +- .../Types/Security/AuthenticateToken.g.cs | 9 +- ...cs => CredentialManagedBy.Converters.g.cs} | 26 +- ...anagedBy.g.cs => CredentialManagedBy.g.cs} | 4 +- .../_Generated/Types/Security/RoleQuery.g.cs | 1 + .../_Generated/Types/Security/UserQuery.g.cs | 1 + .../_Generated/Types/ThreadType.g.cs | 25 ++ .../Settings.Converters.g.cs | 9 + .../Types/TransformManagement/Settings.g.cs | 30 ++ 124 files changed, 5827 insertions(+), 926 deletions(-) create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/CancelReindexRequest.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/CancelReindexRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/CancelReindexResponse.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/CancelReindexResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryStopResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/GetReindexRequest.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/GetReindexRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/GetReindexResponse.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/GetReindexResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/ChatCompletionUnifiedResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamCompletionResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/ListReindexRequest.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/ListReindexRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/ListReindexResponse.Converters.g.cs rename src/Elastic.Clients.Elasticsearch/_Generated/Api/{SearchMvtResponse.g.cs => ListReindexResponse.g.cs} (56%) create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CloneApiKeyRequest.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CloneApiKeyRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CloneApiKeyResponse.Converters.g.cs rename src/Elastic.Clients.Elasticsearch/_Generated/Api/{Esql/AsyncQueryGetResponse.g.cs => Security/CloneApiKeyResponse.g.cs} (52%) create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryStage.Converters.g.cs rename src/Elastic.Clients.Elasticsearch/_Generated/{Api/Esql/AsyncQueryResponse.g.cs => Types/IndexManagement/RecoveryStage.g.cs} (51%) create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryType.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryType.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/LongNumberRangeQuery.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/LongNumberRangeQuery.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/ReindexTaskInfo.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/ReindexTaskInfo.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/ReindexTaskResult.Converters.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/ReindexTaskResult.g.cs rename src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/{ApiKeyManagedBy.Converters.g.cs => CredentialManagedBy.Converters.g.cs} (64%) rename src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/{ApiKeyManagedBy.g.cs => CredentialManagedBy.g.cs} (94%) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs index f6e417bca63..eb92a04ca63 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs @@ -294,6 +294,7 @@ internal static class ApiUrlLookup internal static ApiUrls NodesStats = new ApiUrls(new[] { "_nodes/stats", "_nodes/{node_id}/stats", "_nodes/stats/{metric}", "_nodes/{node_id}/stats/{metric}", "_nodes/stats/{metric}/{index_metric}", "_nodes/{node_id}/stats/{metric}/{index_metric}" }); internal static ApiUrls NodesUsage = new ApiUrls(new[] { "_nodes/usage", "_nodes/{node_id}/usage", "_nodes/usage/{metric}", "_nodes/{node_id}/usage/{metric}" }); internal static ApiUrls NoNamespaceBulk = new ApiUrls(new[] { "_bulk", "{index}/_bulk" }); + internal static ApiUrls NoNamespaceCancelReindex = new ApiUrls(new[] { "_reindex/{task_id}/_cancel" }); internal static ApiUrls NoNamespaceCapabilities = new ApiUrls(new[] { "_capabilities" }); internal static ApiUrls NoNamespaceClearScroll = new ApiUrls(new[] { "_search/scroll" }); internal static ApiUrls NoNamespaceClosePointInTime = new ApiUrls(new[] { "_pit" }); @@ -308,6 +309,7 @@ internal static class ApiUrlLookup internal static ApiUrls NoNamespaceExplain = new ApiUrls(new[] { "{index}/_explain/{id}" }); internal static ApiUrls NoNamespaceFieldCaps = new ApiUrls(new[] { "_field_caps", "{index}/_field_caps" }); internal static ApiUrls NoNamespaceGet = new ApiUrls(new[] { "{index}/_doc/{id}" }); + internal static ApiUrls NoNamespaceGetReindex = new ApiUrls(new[] { "_reindex/{task_id}" }); internal static ApiUrls NoNamespaceGetScript = new ApiUrls(new[] { "_scripts/{id}" }); internal static ApiUrls NoNamespaceGetScriptContext = new ApiUrls(new[] { "_script_context" }); internal static ApiUrls NoNamespaceGetScriptLanguages = new ApiUrls(new[] { "_script_language" }); @@ -315,6 +317,7 @@ internal static class ApiUrlLookup internal static ApiUrls NoNamespaceHealthReport = new ApiUrls(new[] { "_health_report", "_health_report/{feature}" }); internal static ApiUrls NoNamespaceIndex = new ApiUrls(new[] { "{index}/_doc/{id}", "{index}/_doc" }); internal static ApiUrls NoNamespaceInfo = new ApiUrls(new[] { "" }); + internal static ApiUrls NoNamespaceListReindex = new ApiUrls(new[] { "_reindex" }); internal static ApiUrls NoNamespaceMtermvectors = new ApiUrls(new[] { "_mtermvectors", "{index}/_mtermvectors" }); internal static ApiUrls NoNamespaceMultiGet = new ApiUrls(new[] { "_mget", "{index}/_mget" }); internal static ApiUrls NoNamespaceMultiSearch = new ApiUrls(new[] { "_msearch", "{index}/_msearch" }); @@ -384,6 +387,7 @@ internal static class ApiUrlLookup internal static ApiUrls SecurityClearCachedRealms = new ApiUrls(new[] { "_security/realm/{realms}/_clear_cache" }); internal static ApiUrls SecurityClearCachedRoles = new ApiUrls(new[] { "_security/role/{name}/_clear_cache" }); internal static ApiUrls SecurityClearCachedServiceTokens = new ApiUrls(new[] { "_security/service/{namespace}/{service}/credential/token/{name}/_clear_cache" }); + internal static ApiUrls SecurityCloneApiKey = new ApiUrls(new[] { "_security/api_key/clone" }); internal static ApiUrls SecurityCreateApiKey = new ApiUrls(new[] { "_security/api_key" }); internal static ApiUrls SecurityCreateCrossClusterApiKey = new ApiUrls(new[] { "_security/cross_cluster/api_key" }); internal static ApiUrls SecurityCreateServiceToken = new ApiUrls(new[] { "_security/service/{namespace}/{service}/credential/token/{name}", "_security/service/{namespace}/{service}/credential/token" }); 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 fb4e26ec898..e8204993282 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/SubmitAsyncSearchRequest.g.cs @@ -27,8 +27,12 @@ public sealed partial class SubmitAsyncSearchRequestParameters : Elastic.Transpo { /// /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. - /// (This includes _all string or when no indices have been specified) + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -99,7 +103,9 @@ public sealed partial class SubmitAsyncSearchRequestParameters : Elastic.Transpo /// /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -283,8 +289,12 @@ internal SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. - /// (This includes _all string or when no indices have been specified) + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -355,7 +365,9 @@ internal SubmitAsyncSearchRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -742,8 +754,12 @@ public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescrip /// /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. - /// (This includes _all string or when no indices have been specified) + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescriptor AllowNoIndices(bool? value = true) @@ -865,7 +881,9 @@ public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescrip /// /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -2146,8 +2164,12 @@ public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescrip /// /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. - /// (This includes _all string or when no indices have been specified) + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescriptor AllowNoIndices(bool? value = true) @@ -2269,7 +2291,9 @@ public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescrip /// /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.AsyncSearch.SubmitAsyncSearchRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CancelReindexRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CancelReindexRequest.Converters.g.cs new file mode 100644 index 00000000000..7e64b6c0d68 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CancelReindexRequest.Converters.g.cs @@ -0,0 +1,53 @@ +// 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 System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Json; + +public sealed partial class CancelReindexRequestConverter : System.Text.Json.Serialization.JsonConverter +{ + public override Elastic.Clients.Elasticsearch.CancelReindexRequest Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) + { + reader.SafeSkip(); + continue; + } + + throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'."); + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.CancelReindexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.CancelReindexRequest value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CancelReindexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CancelReindexRequest.g.cs new file mode 100644 index 00000000000..df6cd006564 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CancelReindexRequest.g.cs @@ -0,0 +1,200 @@ +// 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 System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch; + +public sealed partial class CancelReindexRequestParameters : Elastic.Transport.RequestParameters +{ + /// + /// + /// If true (the default), the request blocks until the cancellation is complete and returns the final task state. + /// If false, the request returns immediately with acknowledged: true. + /// + /// + public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } +} + +/// +/// +/// Cancel a reindex task. +/// +/// +/// Cancel an ongoing reindex task. If wait_for_completion is true (the default), +/// the response contains the final task state after cancellation. +/// If wait_for_completion is false, the response contains only acknowledged: true. +/// +/// +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.CancelReindexRequestConverter))] +public sealed partial class CancelReindexRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest +{ + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public CancelReindexRequest(Elastic.Clients.Elasticsearch.TaskId taskId) : base(r => r.Required("task_id", taskId)) + { + } + + public CancelReindexRequest() + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal CancelReindexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + internal override Elastic.Clients.Elasticsearch.Requests.ApiUrls ApiUrls => Elastic.Clients.Elasticsearch.Requests.ApiUrlLookup.NoNamespaceCancelReindex; + + protected override Elastic.Transport.HttpMethod StaticHttpMethod => Elastic.Transport.HttpMethod.POST; + + internal override bool SupportsBody => false; + + internal override string OperationName => "cancel_reindex"; + + /// + /// + /// The ID of the reindex task to cancel. + /// + /// + public required Elastic.Clients.Elasticsearch.TaskId TaskId { get => P("task_id"); set => PR("task_id", value); } + + /// + /// + /// If true (the default), the request blocks until the cancellation is complete and returns the final task state. + /// If false, the request returns immediately with acknowledged: true. + /// + /// + public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } +} + +/// +/// +/// Cancel a reindex task. +/// +/// +/// Cancel an ongoing reindex task. If wait_for_completion is true (the default), +/// the response contains the final task state after cancellation. +/// If wait_for_completion is false, the response contains only acknowledged: true. +/// +/// +public readonly partial struct CancelReindexRequestDescriptor +{ + internal Elastic.Clients.Elasticsearch.CancelReindexRequest Instance { get; init; } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public CancelReindexRequestDescriptor(Elastic.Clients.Elasticsearch.CancelReindexRequest instance) + { + Instance = instance; + } + + public CancelReindexRequestDescriptor(Elastic.Clients.Elasticsearch.TaskId taskId) + { + Instance = new Elastic.Clients.Elasticsearch.CancelReindexRequest(taskId); + } + + [System.Obsolete("The use of the parameterless constructor is not permitted for this type.")] + public CancelReindexRequestDescriptor() + { + throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type."); + } + + public static explicit operator Elastic.Clients.Elasticsearch.CancelReindexRequestDescriptor(Elastic.Clients.Elasticsearch.CancelReindexRequest instance) => new Elastic.Clients.Elasticsearch.CancelReindexRequestDescriptor(instance); + public static implicit operator Elastic.Clients.Elasticsearch.CancelReindexRequest(Elastic.Clients.Elasticsearch.CancelReindexRequestDescriptor descriptor) => descriptor.Instance; + + /// + /// + /// The ID of the reindex task to cancel. + /// + /// + public Elastic.Clients.Elasticsearch.CancelReindexRequestDescriptor TaskId(Elastic.Clients.Elasticsearch.TaskId value) + { + Instance.TaskId = value; + return this; + } + + /// + /// + /// If true (the default), the request blocks until the cancellation is complete and returns the final task state. + /// If false, the request returns immediately with acknowledged: true. + /// + /// + public Elastic.Clients.Elasticsearch.CancelReindexRequestDescriptor WaitForCompletion(bool? value = true) + { + Instance.WaitForCompletion = value; + return this; + } + + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + internal static Elastic.Clients.Elasticsearch.CancelReindexRequest Build(System.Action action) + { + var builder = new Elastic.Clients.Elasticsearch.CancelReindexRequestDescriptor(new Elastic.Clients.Elasticsearch.CancelReindexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)); + action.Invoke(builder); + return builder.Instance; + } + + public Elastic.Clients.Elasticsearch.CancelReindexRequestDescriptor ErrorTrace(bool? value) + { + Instance.ErrorTrace = value; + return this; + } + + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] + public Elastic.Clients.Elasticsearch.CancelReindexRequestDescriptor FilterPath(params string[]? value) + { + Instance.FilterPath = value; + return this; + } + + public Elastic.Clients.Elasticsearch.CancelReindexRequestDescriptor Human(bool? value) + { + Instance.Human = value; + return this; + } + + public Elastic.Clients.Elasticsearch.CancelReindexRequestDescriptor Pretty(bool? value) + { + Instance.Pretty = value; + return this; + } + + public Elastic.Clients.Elasticsearch.CancelReindexRequestDescriptor SourceQueryString(string? value) + { + Instance.SourceQueryString = value; + return this; + } + + public Elastic.Clients.Elasticsearch.CancelReindexRequestDescriptor RequestConfiguration(Elastic.Transport.IRequestConfiguration? value) + { + Instance.RequestConfiguration = value; + return this; + } + + public Elastic.Clients.Elasticsearch.CancelReindexRequestDescriptor RequestConfiguration(System.Func? configurationSelector) + { + Instance.RequestConfiguration = configurationSelector.Invoke(Instance.RequestConfiguration is null ? new Elastic.Transport.RequestConfigurationDescriptor() : new Elastic.Transport.RequestConfigurationDescriptor(Instance.RequestConfiguration)) ?? Instance.RequestConfiguration; + return this; + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CancelReindexResponse.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CancelReindexResponse.Converters.g.cs new file mode 100644 index 00000000000..391fb96ed72 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CancelReindexResponse.Converters.g.cs @@ -0,0 +1,162 @@ +// 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 System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Json; + +public sealed partial class CancelReindexResponseConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropAcknowledged = System.Text.Json.JsonEncodedText.Encode("acknowledged"u8); + private static readonly System.Text.Json.JsonEncodedText PropCancelled = System.Text.Json.JsonEncodedText.Encode("cancelled"u8); + private static readonly System.Text.Json.JsonEncodedText PropCompleted = System.Text.Json.JsonEncodedText.Encode("completed"u8); + private static readonly System.Text.Json.JsonEncodedText PropDescription = System.Text.Json.JsonEncodedText.Encode("description"u8); + private static readonly System.Text.Json.JsonEncodedText PropError = System.Text.Json.JsonEncodedText.Encode("error"u8); + private static readonly System.Text.Json.JsonEncodedText PropId = System.Text.Json.JsonEncodedText.Encode("id"u8); + private static readonly System.Text.Json.JsonEncodedText PropResponse = System.Text.Json.JsonEncodedText.Encode("response"u8); + private static readonly System.Text.Json.JsonEncodedText PropRunningTime = System.Text.Json.JsonEncodedText.Encode("running_time"u8); + private static readonly System.Text.Json.JsonEncodedText PropRunningTimeInNanos = System.Text.Json.JsonEncodedText.Encode("running_time_in_nanos"u8); + private static readonly System.Text.Json.JsonEncodedText PropStartTime = System.Text.Json.JsonEncodedText.Encode("start_time"u8); + private static readonly System.Text.Json.JsonEncodedText PropStartTimeInMillis = System.Text.Json.JsonEncodedText.Encode("start_time_in_millis"u8); + private static readonly System.Text.Json.JsonEncodedText PropStatus = System.Text.Json.JsonEncodedText.Encode("status"u8); + + public override Elastic.Clients.Elasticsearch.CancelReindexResponse Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propAcknowledged = default; + LocalJsonValue propCancelled = default; + LocalJsonValue propCompleted = default; + LocalJsonValue propDescription = default; + LocalJsonValue propError = default; + LocalJsonValue propId = default; + LocalJsonValue propResponse = default; + LocalJsonValue propRunningTime = default; + LocalJsonValue propRunningTimeInNanos = default; + LocalJsonValue propStartTime = default; + LocalJsonValue propStartTimeInMillis = default; + LocalJsonValue propStatus = default; + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (propAcknowledged.TryReadProperty(ref reader, options, PropAcknowledged, static bool? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + + if (propCancelled.TryReadProperty(ref reader, options, PropCancelled, static bool? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + + if (propCompleted.TryReadProperty(ref reader, options, PropCompleted, static bool? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + + if (propDescription.TryReadProperty(ref reader, options, PropDescription, null)) + { + continue; + } + + if (propError.TryReadProperty(ref reader, options, PropError, null)) + { + continue; + } + + if (propId.TryReadProperty(ref reader, options, PropId, null)) + { + continue; + } + + if (propResponse.TryReadProperty(ref reader, options, PropResponse, null)) + { + continue; + } + + if (propRunningTime.TryReadProperty(ref reader, options, PropRunningTime, null)) + { + continue; + } + + if (propRunningTimeInNanos.TryReadProperty(ref reader, options, PropRunningTimeInNanos, static System.TimeSpan? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.TimeSpanNanosMarker)))) + { + continue; + } + + if (propStartTime.TryReadProperty(ref reader, options, PropStartTime, null)) + { + continue; + } + + if (propStartTimeInMillis.TryReadProperty(ref reader, options, PropStartTimeInMillis, static System.DateTimeOffset? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMillisMarker)))) + { + continue; + } + + if (propStatus.TryReadProperty(ref reader, options, PropStatus, null)) + { + continue; + } + + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) + { + reader.SafeSkip(); + continue; + } + + throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'."); + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.CancelReindexResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + Acknowledged = propAcknowledged.Value, + Cancelled = propCancelled.Value, + Completed = propCompleted.Value, + Description = propDescription.Value, + Error = propError.Value, + Id = propId.Value, + Response = propResponse.Value, + RunningTime = propRunningTime.Value, + RunningTimeInNanos = propRunningTimeInNanos.Value, + StartTime = propStartTime.Value, + StartTimeInMillis = propStartTimeInMillis.Value, + Status = propStatus.Value + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.CancelReindexResponse value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteProperty(options, PropAcknowledged, value.Acknowledged, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropCancelled, value.Cancelled, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropCompleted, value.Completed, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropDescription, value.Description, null, null); + writer.WriteProperty(options, PropError, value.Error, null, null); + writer.WriteProperty(options, PropId, value.Id, null, null); + writer.WriteProperty(options, PropResponse, value.Response, null, null); + writer.WriteProperty(options, PropRunningTime, value.RunningTime, null, null); + writer.WriteProperty(options, PropRunningTimeInNanos, value.RunningTimeInNanos, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.TimeSpan? v) => w.WriteNullableValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.TimeSpanNanosMarker))); + writer.WriteProperty(options, PropStartTime, value.StartTime, null, null); + writer.WriteProperty(options, PropStartTimeInMillis, value.StartTimeInMillis, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.DateTimeOffset? v) => w.WriteNullableValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMillisMarker))); + writer.WriteProperty(options, PropStatus, value.Status, null, null); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CancelReindexResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CancelReindexResponse.g.cs new file mode 100644 index 00000000000..34299970f8f --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CancelReindexResponse.g.cs @@ -0,0 +1,124 @@ +// 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 System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch; + +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.CancelReindexResponseConverter))] +public sealed partial class CancelReindexResponse : Elastic.Transport.Products.Elasticsearch.ElasticsearchResponse +{ + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public CancelReindexResponse() + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal CancelReindexResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + /// + /// + /// Present and true when wait_for_completion=false. + /// + /// + public bool? Acknowledged { get; set; } + + /// + /// + /// Whether the reindex task has been cancelled. + /// + /// + public bool? Cancelled { get; set; } + + /// + /// + /// Whether the reindex task has completed. Present when wait_for_completion=true. + /// + /// + public bool? Completed { get; set; } + + /// + /// + /// A sanitized description of the reindex operation. + /// + /// + public string? Description { get; set; } + + /// + /// + /// The error that caused the reindex task to fail, if any. + /// + /// + public Elastic.Clients.Elasticsearch.ErrorCause? Error { get; set; } + + /// + /// + /// The ID of the reindex task, in nodeId:taskNum format. Present when wait_for_completion=true. + /// + /// + public Elastic.Clients.Elasticsearch.TaskId? Id { get; set; } + + /// + /// + /// The final result of the reindex operation, if it completed before being cancelled. + /// + /// + public Elastic.Clients.Elasticsearch.ReindexTaskResult? Response { get; set; } + + /// + /// + /// The elapsed running time of the reindex task, in a human-readable format. + /// Only present when the request includes the ?human=true query parameter. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? RunningTime { get; set; } + + /// + /// + /// The elapsed running time of the reindex task, in nanoseconds. + /// + /// + public System.TimeSpan? RunningTimeInNanos { get; set; } + + /// + /// + /// The time at which the reindex task started, as an ISO 8601 formatted string. + /// + /// + public string? StartTime { get; set; } + + /// + /// + /// The time at which the reindex task started, in milliseconds since the Unix epoch. + /// + /// + public System.DateTimeOffset? StartTimeInMillis { get; set; } + + /// + /// + /// The status of the reindex operation at the time of cancellation. + /// + /// + public Elastic.Clients.Elasticsearch.ReindexStatus? Status { get; set; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs index 2bd2f44aa50..95f8b918d95 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs @@ -27,9 +27,12 @@ public sealed partial class CountRequestParameters : Elastic.Transport.RequestPa { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -85,7 +88,9 @@ public sealed partial class CountRequestParameters : Elastic.Transport.RequestPa /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -199,9 +204,12 @@ internal CountRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -257,7 +265,9 @@ internal CountRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -395,9 +405,12 @@ public Elastic.Clients.Elasticsearch.CountRequestDescriptor Indices(Elastic.Clie /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.CountRequestDescriptor AllowNoIndices(bool? value = true) @@ -494,7 +507,9 @@ public Elastic.Clients.Elasticsearch.CountRequestDescriptor IgnoreThrottled(bool /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.CountRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -752,9 +767,12 @@ public Elastic.Clients.Elasticsearch.CountRequestDescriptor Indices(E /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.CountRequestDescriptor AllowNoIndices(bool? value = true) @@ -851,7 +869,9 @@ public Elastic.Clients.Elasticsearch.CountRequestDescriptor IgnoreThr /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.CountRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs index 452b6282f34..ee40d61eafd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs @@ -27,9 +27,12 @@ public sealed partial class DeleteByQueryRequestParameters : Elastic.Transport.R { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -91,7 +94,9 @@ public sealed partial class DeleteByQueryRequestParameters : Elastic.Transport.R /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -430,9 +435,12 @@ internal DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -494,7 +502,9 @@ internal DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -863,9 +873,12 @@ public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor Indices(Elas /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor AllowNoIndices(bool? value = true) @@ -972,7 +985,9 @@ public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor From(long? v /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -1598,9 +1613,12 @@ public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor I /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor AllowNoIndices(bool? value = true) @@ -1707,7 +1725,9 @@ public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor F /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.DeleteByQueryRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs index 035fec06bf8..a3bc79f6c3a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs @@ -27,8 +27,12 @@ public sealed partial class EqlSearchRequestParameters : Elastic.Transport.Reque { /// /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. - /// (This includes _all string or when no indices have been specified) + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -49,7 +53,9 @@ public sealed partial class EqlSearchRequestParameters : Elastic.Transport.Reque /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -106,8 +112,12 @@ internal EqlSearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. - /// (This includes _all string or when no indices have been specified) + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -128,7 +138,9 @@ internal EqlSearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -285,8 +297,12 @@ public Elastic.Clients.Elasticsearch.Eql.EqlSearchRequestDescriptor Indices(Elas /// /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. - /// (This includes _all string or when no indices have been specified) + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.Eql.EqlSearchRequestDescriptor AllowNoIndices(bool? value = true) @@ -330,7 +346,9 @@ public Elastic.Clients.Elasticsearch.Eql.EqlSearchRequestDescriptor ExpandWildca /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.Eql.EqlSearchRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -808,8 +826,12 @@ public Elastic.Clients.Elasticsearch.Eql.EqlSearchRequestDescriptor I /// /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. - /// (This includes _all string or when no indices have been specified) + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.Eql.EqlSearchRequestDescriptor AllowNoIndices(bool? value = true) @@ -853,7 +875,9 @@ public Elastic.Clients.Elasticsearch.Eql.EqlSearchRequestDescriptor E /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.Eql.EqlSearchRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryStopResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryStopResponse.g.cs deleted file mode 100644 index 81d8535b8e8..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryStopResponse.g.cs +++ /dev/null @@ -1,38 +0,0 @@ -// 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 System; -using System.Linq; -using Elastic.Clients.Elasticsearch.Serialization; - -namespace Elastic.Clients.Elasticsearch.Esql; - -public sealed partial class AsyncQueryStopResponse : Elastic.Transport.Products.Elasticsearch.ElasticsearchResponse -{ - [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public AsyncQueryStopResponse() - { - } - - [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - internal AsyncQueryStopResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) - { - _ = sentinel; - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryResponse.g.cs deleted file mode 100644 index e59ae2fc626..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryResponse.g.cs +++ /dev/null @@ -1,38 +0,0 @@ -// 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 System; -using System.Linq; -using Elastic.Clients.Elasticsearch.Serialization; - -namespace Elastic.Clients.Elasticsearch.Esql; - -public sealed partial class EsqlQueryResponse : Elastic.Transport.Products.Elasticsearch.ElasticsearchResponse -{ - [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public EsqlQueryResponse() - { - } - - [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - internal EsqlQueryResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) - { - _ = sentinel; - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs index 30db883208d..c61816e5182 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs @@ -27,9 +27,12 @@ public sealed partial class FieldCapsRequestParameters : Elastic.Transport.Reque { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, - /// or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request - /// targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -50,7 +53,9 @@ public sealed partial class FieldCapsRequestParameters : Elastic.Transport.Reque /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -126,9 +131,12 @@ internal FieldCapsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// - /// If false, the request returns an error if any wildcard expression, index alias, - /// or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request - /// targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -149,7 +157,9 @@ internal FieldCapsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -268,9 +278,12 @@ public Elastic.Clients.Elasticsearch.FieldCapsRequestDescriptor Indices(Elastic. /// /// - /// If false, the request returns an error if any wildcard expression, index alias, - /// or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request - /// targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.FieldCapsRequestDescriptor AllowNoIndices(bool? value = true) @@ -325,7 +338,9 @@ public Elastic.Clients.Elasticsearch.FieldCapsRequestDescriptor Filters(params s /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.FieldCapsRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -670,9 +685,12 @@ public Elastic.Clients.Elasticsearch.FieldCapsRequestDescriptor Indic /// /// - /// If false, the request returns an error if any wildcard expression, index alias, - /// or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request - /// targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.FieldCapsRequestDescriptor AllowNoIndices(bool? value = true) @@ -727,7 +745,9 @@ public Elastic.Clients.Elasticsearch.FieldCapsRequestDescriptor Filte /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.FieldCapsRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetReindexRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetReindexRequest.Converters.g.cs new file mode 100644 index 00000000000..06b5e101381 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetReindexRequest.Converters.g.cs @@ -0,0 +1,53 @@ +// 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 System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Json; + +public sealed partial class GetReindexRequestConverter : System.Text.Json.Serialization.JsonConverter +{ + public override Elastic.Clients.Elasticsearch.GetReindexRequest Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) + { + reader.SafeSkip(); + continue; + } + + throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'."); + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.GetReindexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.GetReindexRequest value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetReindexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetReindexRequest.g.cs new file mode 100644 index 00000000000..838275ce9a2 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetReindexRequest.g.cs @@ -0,0 +1,218 @@ +// 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 System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch; + +public sealed partial class GetReindexRequestParameters : Elastic.Transport.RequestParameters +{ + /// + /// + /// The period to wait for the reindex task to complete when wait_for_completion is true. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + + /// + /// + /// If true, the request blocks until the reindex task completes, then returns the result. + /// + /// + public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } +} + +/// +/// +/// Get a reindex task. +/// +/// +/// Get the status and progress of a specific reindex task. +/// +/// +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.GetReindexRequestConverter))] +public sealed partial class GetReindexRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest +{ + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public GetReindexRequest(Elastic.Clients.Elasticsearch.TaskId taskId) : base(r => r.Required("task_id", taskId)) + { + } + + public GetReindexRequest() + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal GetReindexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + internal override Elastic.Clients.Elasticsearch.Requests.ApiUrls ApiUrls => Elastic.Clients.Elasticsearch.Requests.ApiUrlLookup.NoNamespaceGetReindex; + + protected override Elastic.Transport.HttpMethod StaticHttpMethod => Elastic.Transport.HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "get_reindex"; + + /// + /// + /// The ID of the reindex task to retrieve. + /// + /// + public required Elastic.Clients.Elasticsearch.TaskId TaskId { get => P("task_id"); set => PR("task_id", value); } + + /// + /// + /// The period to wait for the reindex task to complete when wait_for_completion is true. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + + /// + /// + /// If true, the request blocks until the reindex task completes, then returns the result. + /// + /// + public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } +} + +/// +/// +/// Get a reindex task. +/// +/// +/// Get the status and progress of a specific reindex task. +/// +/// +public readonly partial struct GetReindexRequestDescriptor +{ + internal Elastic.Clients.Elasticsearch.GetReindexRequest Instance { get; init; } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public GetReindexRequestDescriptor(Elastic.Clients.Elasticsearch.GetReindexRequest instance) + { + Instance = instance; + } + + public GetReindexRequestDescriptor(Elastic.Clients.Elasticsearch.TaskId taskId) + { + Instance = new Elastic.Clients.Elasticsearch.GetReindexRequest(taskId); + } + + [System.Obsolete("The use of the parameterless constructor is not permitted for this type.")] + public GetReindexRequestDescriptor() + { + throw new System.InvalidOperationException("The use of the parameterless constructor is not permitted for this type."); + } + + public static explicit operator Elastic.Clients.Elasticsearch.GetReindexRequestDescriptor(Elastic.Clients.Elasticsearch.GetReindexRequest instance) => new Elastic.Clients.Elasticsearch.GetReindexRequestDescriptor(instance); + public static implicit operator Elastic.Clients.Elasticsearch.GetReindexRequest(Elastic.Clients.Elasticsearch.GetReindexRequestDescriptor descriptor) => descriptor.Instance; + + /// + /// + /// The ID of the reindex task to retrieve. + /// + /// + public Elastic.Clients.Elasticsearch.GetReindexRequestDescriptor TaskId(Elastic.Clients.Elasticsearch.TaskId value) + { + Instance.TaskId = value; + return this; + } + + /// + /// + /// The period to wait for the reindex task to complete when wait_for_completion is true. + /// + /// + public Elastic.Clients.Elasticsearch.GetReindexRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? value) + { + Instance.Timeout = value; + return this; + } + + /// + /// + /// If true, the request blocks until the reindex task completes, then returns the result. + /// + /// + public Elastic.Clients.Elasticsearch.GetReindexRequestDescriptor WaitForCompletion(bool? value = true) + { + Instance.WaitForCompletion = value; + return this; + } + + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + internal static Elastic.Clients.Elasticsearch.GetReindexRequest Build(System.Action action) + { + var builder = new Elastic.Clients.Elasticsearch.GetReindexRequestDescriptor(new Elastic.Clients.Elasticsearch.GetReindexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)); + action.Invoke(builder); + return builder.Instance; + } + + public Elastic.Clients.Elasticsearch.GetReindexRequestDescriptor ErrorTrace(bool? value) + { + Instance.ErrorTrace = value; + return this; + } + + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] + public Elastic.Clients.Elasticsearch.GetReindexRequestDescriptor FilterPath(params string[]? value) + { + Instance.FilterPath = value; + return this; + } + + public Elastic.Clients.Elasticsearch.GetReindexRequestDescriptor Human(bool? value) + { + Instance.Human = value; + return this; + } + + public Elastic.Clients.Elasticsearch.GetReindexRequestDescriptor Pretty(bool? value) + { + Instance.Pretty = value; + return this; + } + + public Elastic.Clients.Elasticsearch.GetReindexRequestDescriptor SourceQueryString(string? value) + { + Instance.SourceQueryString = value; + return this; + } + + public Elastic.Clients.Elasticsearch.GetReindexRequestDescriptor RequestConfiguration(Elastic.Transport.IRequestConfiguration? value) + { + Instance.RequestConfiguration = value; + return this; + } + + public Elastic.Clients.Elasticsearch.GetReindexRequestDescriptor RequestConfiguration(System.Func? configurationSelector) + { + Instance.RequestConfiguration = configurationSelector.Invoke(Instance.RequestConfiguration is null ? new Elastic.Transport.RequestConfigurationDescriptor() : new Elastic.Transport.RequestConfigurationDescriptor(Instance.RequestConfiguration)) ?? Instance.RequestConfiguration; + return this; + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetReindexResponse.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetReindexResponse.Converters.g.cs new file mode 100644 index 00000000000..0887dd8fc89 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetReindexResponse.Converters.g.cs @@ -0,0 +1,153 @@ +// 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 System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Json; + +public sealed partial class GetReindexResponseConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropCancelled = System.Text.Json.JsonEncodedText.Encode("cancelled"u8); + private static readonly System.Text.Json.JsonEncodedText PropCompleted = System.Text.Json.JsonEncodedText.Encode("completed"u8); + private static readonly System.Text.Json.JsonEncodedText PropDescription = System.Text.Json.JsonEncodedText.Encode("description"u8); + private static readonly System.Text.Json.JsonEncodedText PropError = System.Text.Json.JsonEncodedText.Encode("error"u8); + private static readonly System.Text.Json.JsonEncodedText PropId = System.Text.Json.JsonEncodedText.Encode("id"u8); + private static readonly System.Text.Json.JsonEncodedText PropResponse = System.Text.Json.JsonEncodedText.Encode("response"u8); + private static readonly System.Text.Json.JsonEncodedText PropRunningTime = System.Text.Json.JsonEncodedText.Encode("running_time"u8); + private static readonly System.Text.Json.JsonEncodedText PropRunningTimeInNanos = System.Text.Json.JsonEncodedText.Encode("running_time_in_nanos"u8); + private static readonly System.Text.Json.JsonEncodedText PropStartTime = System.Text.Json.JsonEncodedText.Encode("start_time"u8); + private static readonly System.Text.Json.JsonEncodedText PropStartTimeInMillis = System.Text.Json.JsonEncodedText.Encode("start_time_in_millis"u8); + private static readonly System.Text.Json.JsonEncodedText PropStatus = System.Text.Json.JsonEncodedText.Encode("status"u8); + + public override Elastic.Clients.Elasticsearch.GetReindexResponse Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propCancelled = default; + LocalJsonValue propCompleted = default; + LocalJsonValue propDescription = default; + LocalJsonValue propError = default; + LocalJsonValue propId = default; + LocalJsonValue propResponse = default; + LocalJsonValue propRunningTime = default; + LocalJsonValue propRunningTimeInNanos = default; + LocalJsonValue propStartTime = default; + LocalJsonValue propStartTimeInMillis = default; + LocalJsonValue propStatus = default; + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (propCancelled.TryReadProperty(ref reader, options, PropCancelled, null)) + { + continue; + } + + if (propCompleted.TryReadProperty(ref reader, options, PropCompleted, null)) + { + continue; + } + + if (propDescription.TryReadProperty(ref reader, options, PropDescription, null)) + { + continue; + } + + if (propError.TryReadProperty(ref reader, options, PropError, null)) + { + continue; + } + + if (propId.TryReadProperty(ref reader, options, PropId, null)) + { + continue; + } + + if (propResponse.TryReadProperty(ref reader, options, PropResponse, null)) + { + continue; + } + + if (propRunningTime.TryReadProperty(ref reader, options, PropRunningTime, null)) + { + continue; + } + + if (propRunningTimeInNanos.TryReadProperty(ref reader, options, PropRunningTimeInNanos, static System.TimeSpan (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.TimeSpanNanosMarker)))) + { + continue; + } + + if (propStartTime.TryReadProperty(ref reader, options, PropStartTime, null)) + { + continue; + } + + if (propStartTimeInMillis.TryReadProperty(ref reader, options, PropStartTimeInMillis, static System.DateTimeOffset (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMillisMarker)))) + { + continue; + } + + if (propStatus.TryReadProperty(ref reader, options, PropStatus, null)) + { + continue; + } + + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) + { + reader.SafeSkip(); + continue; + } + + throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'."); + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.GetReindexResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + Cancelled = propCancelled.Value, + Completed = propCompleted.Value, + Description = propDescription.Value, + Error = propError.Value, + Id = propId.Value, + Response = propResponse.Value, + RunningTime = propRunningTime.Value, + RunningTimeInNanos = propRunningTimeInNanos.Value, + StartTime = propStartTime.Value, + StartTimeInMillis = propStartTimeInMillis.Value, + Status = propStatus.Value + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.GetReindexResponse value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteProperty(options, PropCancelled, value.Cancelled, null, null); + writer.WriteProperty(options, PropCompleted, value.Completed, null, null); + writer.WriteProperty(options, PropDescription, value.Description, null, null); + writer.WriteProperty(options, PropError, value.Error, null, null); + writer.WriteProperty(options, PropId, value.Id, null, null); + writer.WriteProperty(options, PropResponse, value.Response, null, null); + writer.WriteProperty(options, PropRunningTime, value.RunningTime, null, null); + writer.WriteProperty(options, PropRunningTimeInNanos, value.RunningTimeInNanos, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.TimeSpan v) => w.WriteValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.TimeSpanNanosMarker))); + writer.WriteProperty(options, PropStartTime, value.StartTime, null, null); + writer.WriteProperty(options, PropStartTimeInMillis, value.StartTimeInMillis, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.DateTimeOffset v) => w.WriteValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMillisMarker))); + writer.WriteProperty(options, PropStatus, value.Status, null, null); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetReindexResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetReindexResponse.g.cs new file mode 100644 index 00000000000..e5385482b08 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetReindexResponse.g.cs @@ -0,0 +1,118 @@ +// 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 System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch; + +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.GetReindexResponseConverter))] +public sealed partial class GetReindexResponse : Elastic.Transport.Products.Elasticsearch.ElasticsearchResponse +{ + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public GetReindexResponse() + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal GetReindexResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + /// + /// + /// Whether the reindex task has been cancelled. + /// + /// + public required bool Cancelled { get; set; } + + /// + /// + /// Whether the reindex task has completed. + /// + /// + public required bool Completed { get; set; } + + /// + /// + /// A sanitized description of the reindex operation (source and destination indices, and optionally remote host info). + /// + /// + public string? Description { get; set; } + + /// + /// + /// The error that caused the reindex task to fail, if any. + /// + /// + public Elastic.Clients.Elasticsearch.ErrorCause? Error { get; set; } + + /// + /// + /// The ID of the reindex task, in nodeId:taskNum format. + /// + /// + public required Elastic.Clients.Elasticsearch.TaskId Id { get; set; } + + /// + /// + /// The final result of the completed reindex operation, if the task has finished successfully. + /// + /// + public Elastic.Clients.Elasticsearch.ReindexTaskResult? Response { get; set; } + + /// + /// + /// The elapsed running time of the reindex task, in a human-readable format. + /// Only present when the request includes the ?human=true query parameter. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? RunningTime { get; set; } + + /// + /// + /// The elapsed running time of the reindex task, in nanoseconds. + /// + /// + public required System.TimeSpan RunningTimeInNanos { get; set; } + + /// + /// + /// The time at which the reindex task started, as an ISO 8601 formatted string. + /// Only present when the request includes the ?human=true query parameter. + /// + /// + public string? StartTime { get; set; } + + /// + /// + /// The time at which the reindex task started, in milliseconds since the Unix epoch. + /// + /// + public required System.DateTimeOffset StartTimeInMillis { get; set; } + + /// + /// + /// The current progress of the reindex operation. + /// + /// + public Elastic.Clients.Elasticsearch.ReindexStatus? Status { get; set; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs index 7127a073739..f61f868a2fa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs @@ -27,8 +27,12 @@ public sealed partial class ClearCacheRequestParameters : Elastic.Transport.Requ { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -59,7 +63,9 @@ public sealed partial class ClearCacheRequestParameters : Elastic.Transport.Requ /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -129,8 +135,12 @@ internal ClearCacheRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -161,7 +171,9 @@ internal ClearCacheRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -233,8 +245,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ClearCacheRequestDescriptor /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ClearCacheRequestDescriptor AllowNoIndices(bool? value = true) @@ -305,7 +321,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ClearCacheRequestDescriptor /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ClearCacheRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -449,8 +467,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ClearCacheRequestDescriptor /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ClearCacheRequestDescriptor AllowNoIndices(bool? value = true) @@ -521,7 +543,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ClearCacheRequestDescriptor /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ClearCacheRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs index beaae41d650..8da16dbae67 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseIndexRequest.g.cs @@ -27,8 +27,12 @@ public sealed partial class CloseIndexRequestParameters : Elastic.Transport.Requ { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -44,7 +48,9 @@ public sealed partial class CloseIndexRequestParameters : Elastic.Transport.Requ /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -137,8 +143,12 @@ internal CloseIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -154,7 +164,9 @@ internal CloseIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -249,8 +261,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.CloseIndexRequestDescriptor /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.CloseIndexRequestDescriptor AllowNoIndices(bool? value = true) @@ -287,7 +303,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.CloseIndexRequestDescriptor /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.CloseIndexRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -452,8 +470,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.CloseIndexRequestDescriptor /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.CloseIndexRequestDescriptor AllowNoIndices(bool? value = true) @@ -490,7 +512,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.CloseIndexRequestDescriptor /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.CloseIndexRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs index 3925b2bac50..db2f968d6e0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteIndexRequest.g.cs @@ -27,8 +27,12 @@ public sealed partial class DeleteIndexRequestParameters : Elastic.Transport.Req { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -44,7 +48,9 @@ public sealed partial class DeleteIndexRequestParameters : Elastic.Transport.Req /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -118,8 +124,12 @@ internal DeleteIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -135,7 +145,9 @@ internal DeleteIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -211,8 +223,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DeleteIndexRequestDescripto /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.DeleteIndexRequestDescriptor AllowNoIndices(bool? value = true) @@ -249,7 +265,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DeleteIndexRequestDescripto /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.DeleteIndexRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -391,8 +409,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DeleteIndexRequestDescripto /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.DeleteIndexRequestDescriptor AllowNoIndices(bool? value = true) @@ -429,7 +451,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DeleteIndexRequestDescripto /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.DeleteIndexRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs index adb0db7bf2e..45cfa66b7f2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DiskUsageRequest.g.cs @@ -27,9 +27,12 @@ public sealed partial class DiskUsageRequestParameters : Elastic.Transport.Reque { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -53,7 +56,9 @@ public sealed partial class DiskUsageRequestParameters : Elastic.Transport.Reque /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -121,9 +126,12 @@ internal DiskUsageRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -147,7 +155,9 @@ internal DiskUsageRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -217,9 +227,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DiskUsageRequestDescriptor /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.DiskUsageRequestDescriptor AllowNoIndices(bool? value = true) @@ -268,7 +281,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DiskUsageRequestDescriptor /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.DiskUsageRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -400,9 +415,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DiskUsageRequestDescriptor< /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.DiskUsageRequestDescriptor AllowNoIndices(bool? value = true) @@ -451,7 +469,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.DiskUsageRequestDescriptor< /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.DiskUsageRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs index a9df48f4037..2818edf85c1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs @@ -27,8 +27,12 @@ public sealed partial class ExistsAliasRequestParameters : Elastic.Transport.Req { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -44,7 +48,9 @@ public sealed partial class ExistsAliasRequestParameters : Elastic.Transport.Req /// /// - /// If false, requests that include a missing data stream or index in the target indices or data streams return an error. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -114,8 +120,12 @@ internal ExistsAliasRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -131,7 +141,9 @@ internal ExistsAliasRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// - /// If false, requests that include a missing data stream or index in the target indices or data streams return an error. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -207,8 +219,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ExistsAliasRequestDescripto /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ExistsAliasRequestDescriptor AllowNoIndices(bool? value = true) @@ -245,7 +261,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ExistsAliasRequestDescripto /// /// - /// If false, requests that include a missing data stream or index in the target indices or data streams return an error. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ExistsAliasRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -384,8 +402,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ExistsAliasRequestDescripto /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ExistsAliasRequestDescriptor AllowNoIndices(bool? value = true) @@ -422,7 +444,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ExistsAliasRequestDescripto /// /// - /// If false, requests that include a missing data stream or index in the target indices or data streams return an error. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ExistsAliasRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsRequest.g.cs index a52b2f73370..dd7e46b9ae6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsRequest.g.cs @@ -27,8 +27,12 @@ public sealed partial class ExistsRequestParameters : Elastic.Transport.RequestP { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -51,7 +55,9 @@ public sealed partial class ExistsRequestParameters : Elastic.Transport.RequestP /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -114,8 +120,12 @@ internal ExistsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -138,7 +148,9 @@ internal ExistsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -203,8 +215,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ExistsRequestDescriptor Ind /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ExistsRequestDescriptor AllowNoIndices(bool? value = true) @@ -252,7 +268,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ExistsRequestDescriptor Fla /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ExistsRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -383,8 +401,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ExistsRequestDescriptor /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ExistsRequestDescriptor AllowNoIndices(bool? value = true) @@ -432,7 +454,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ExistsRequestDescriptor /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ExistsRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs index f695480b080..db41ac20376 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldUsageStatsRequest.g.cs @@ -27,9 +27,12 @@ public sealed partial class FieldUsageStatsRequestParameters : Elastic.Transport { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -52,7 +55,9 @@ public sealed partial class FieldUsageStatsRequestParameters : Elastic.Transport /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -107,9 +112,12 @@ internal FieldUsageStatsRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -132,7 +140,9 @@ internal FieldUsageStatsRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -189,9 +199,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.FieldUsageStatsRequestDescr /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.FieldUsageStatsRequestDescriptor AllowNoIndices(bool? value = true) @@ -250,7 +263,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.FieldUsageStatsRequestDescr /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.FieldUsageStatsRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -365,9 +380,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.FieldUsageStatsRequestDescr /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.FieldUsageStatsRequestDescriptor AllowNoIndices(bool? value = true) @@ -426,7 +444,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.FieldUsageStatsRequestDescr /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.FieldUsageStatsRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FlushRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FlushRequest.g.cs index d18a2a9b099..79d007ed0bc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FlushRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FlushRequest.g.cs @@ -27,8 +27,12 @@ public sealed partial class FlushRequestParameters : Elastic.Transport.RequestPa { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -51,7 +55,9 @@ public sealed partial class FlushRequestParameters : Elastic.Transport.RequestPa /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -120,8 +126,12 @@ internal FlushRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -144,7 +154,9 @@ internal FlushRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -215,8 +227,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.FlushRequestDescriptor Indi /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.FlushRequestDescriptor AllowNoIndices(bool? value = true) @@ -264,7 +280,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.FlushRequestDescriptor Forc /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.FlushRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -403,8 +421,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.FlushRequestDescriptor /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.FlushRequestDescriptor AllowNoIndices(bool? value = true) @@ -452,7 +474,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.FlushRequestDescriptor /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.FlushRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs index a7ec5f51266..debb86697c5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs @@ -27,8 +27,12 @@ public sealed partial class ForcemergeRequestParameters : Elastic.Transport.Requ { /// /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. - /// (This includes _all string or when no indices have been specified) + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -49,7 +53,9 @@ public sealed partial class ForcemergeRequestParameters : Elastic.Transport.Requ /// /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -197,8 +203,12 @@ internal ForcemergeRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. - /// (This includes _all string or when no indices have been specified) + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -219,7 +229,9 @@ internal ForcemergeRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -369,8 +381,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ForcemergeRequestDescriptor /// /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. - /// (This includes _all string or when no indices have been specified) + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ForcemergeRequestDescriptor AllowNoIndices(bool? value = true) @@ -414,7 +430,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ForcemergeRequestDescriptor /// /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ForcemergeRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -640,8 +658,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ForcemergeRequestDescriptor /// /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. - /// (This includes _all string or when no indices have been specified) + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ForcemergeRequestDescriptor AllowNoIndices(bool? value = true) @@ -685,7 +707,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ForcemergeRequestDescriptor /// /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ForcemergeRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs index 1e0ef799842..948141484cf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetAliasRequest.g.cs @@ -27,8 +27,12 @@ public sealed partial class GetAliasRequestParameters : Elastic.Transport.Reques { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -44,7 +48,9 @@ public sealed partial class GetAliasRequestParameters : Elastic.Transport.Reques /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -119,8 +125,12 @@ internal GetAliasRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -136,7 +146,9 @@ internal GetAliasRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -219,8 +231,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetAliasRequestDescriptor N /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.GetAliasRequestDescriptor AllowNoIndices(bool? value = true) @@ -257,7 +273,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetAliasRequestDescriptor E /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.GetAliasRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -408,8 +426,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetAliasRequestDescriptor /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.GetAliasRequestDescriptor AllowNoIndices(bool? value = true) @@ -446,7 +468,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetAliasRequestDescriptor /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.GetAliasRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetFieldMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetFieldMappingRequest.g.cs index ddd1deef16c..cd5c108bb43 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetFieldMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetFieldMappingRequest.g.cs @@ -27,8 +27,12 @@ public sealed partial class GetFieldMappingRequestParameters : Elastic.Transport { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -44,7 +48,9 @@ public sealed partial class GetFieldMappingRequestParameters : Elastic.Transport /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -119,8 +125,12 @@ internal GetFieldMappingRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -136,7 +146,9 @@ internal GetFieldMappingRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -229,8 +241,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetFieldMappingRequestDescr /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.GetFieldMappingRequestDescriptor AllowNoIndices(bool? value = true) @@ -267,7 +283,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetFieldMappingRequestDescr /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.GetFieldMappingRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -423,8 +441,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetFieldMappingRequestDescr /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.GetFieldMappingRequestDescriptor AllowNoIndices(bool? value = true) @@ -461,7 +483,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetFieldMappingRequestDescr /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.GetFieldMappingRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexRequest.g.cs index 14809ab2897..110a8009b0f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndexRequest.g.cs @@ -27,9 +27,12 @@ public sealed partial class GetIndexRequestParameters : Elastic.Transport.Reques { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only - /// missing or closed indices. This behavior applies even if the request targets other open indices. For example, - /// a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -59,7 +62,9 @@ public sealed partial class GetIndexRequestParameters : Elastic.Transport.Reques /// /// - /// If false, requests that target a missing index return an error. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -131,9 +136,12 @@ internal GetIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only - /// missing or closed indices. This behavior applies even if the request targets other open indices. For example, - /// a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -163,7 +171,9 @@ internal GetIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// - /// If false, requests that target a missing index return an error. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -237,9 +247,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetIndexRequestDescriptor I /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only - /// missing or closed indices. This behavior applies even if the request targets other open indices. For example, - /// a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.GetIndexRequestDescriptor AllowNoIndices(bool? value = true) @@ -309,7 +322,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetIndexRequestDescriptor F /// /// - /// If false, requests that target a missing index return an error. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.GetIndexRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -453,9 +468,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetIndexRequestDescriptor /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only - /// missing or closed indices. This behavior applies even if the request targets other open indices. For example, - /// a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.GetIndexRequestDescriptor AllowNoIndices(bool? value = true) @@ -525,7 +543,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetIndexRequestDescriptor /// - /// If false, requests that target a missing index return an error. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.GetIndexRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs index 18b3721ad82..acc1d54d7c4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetIndicesSettingsRequest.g.cs @@ -27,11 +27,12 @@ public sealed partial class GetIndicesSettingsRequestParameters : Elastic.Transp { /// /// - /// If false, the request returns an error if any wildcard expression, index - /// alias, or _all value targets only missing or closed indices. This - /// behavior applies even if the request targets other open indices. For - /// example, a request targeting foo*,bar* returns an error if an index - /// starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -54,7 +55,9 @@ public sealed partial class GetIndicesSettingsRequestParameters : Elastic.Transp /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -145,11 +148,12 @@ internal GetIndicesSettingsRequest(Elastic.Clients.Elasticsearch.Serialization.J /// /// - /// If false, the request returns an error if any wildcard expression, index - /// alias, or _all value targets only missing or closed indices. This - /// behavior applies even if the request targets other open indices. For - /// example, a request targeting foo*,bar* returns an error if an index - /// starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -172,7 +176,9 @@ internal GetIndicesSettingsRequest(Elastic.Clients.Elasticsearch.Serialization.J /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -271,11 +277,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetIndicesSettingsRequestDe /// /// - /// If false, the request returns an error if any wildcard expression, index - /// alias, or _all value targets only missing or closed indices. This - /// behavior applies even if the request targets other open indices. For - /// example, a request targeting foo*,bar* returns an error if an index - /// starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.GetIndicesSettingsRequestDescriptor AllowNoIndices(bool? value = true) @@ -323,7 +330,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetIndicesSettingsRequestDe /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.GetIndicesSettingsRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -498,11 +507,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetIndicesSettingsRequestDe /// /// - /// If false, the request returns an error if any wildcard expression, index - /// alias, or _all value targets only missing or closed indices. This - /// behavior applies even if the request targets other open indices. For - /// example, a request targeting foo*,bar* returns an error if an index - /// starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.GetIndicesSettingsRequestDescriptor AllowNoIndices(bool? value = true) @@ -550,7 +560,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetIndicesSettingsRequestDe /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.GetIndicesSettingsRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingRequest.g.cs index 5396ba530d7..02ba093bfbc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetMappingRequest.g.cs @@ -27,8 +27,12 @@ public sealed partial class GetMappingRequestParameters : Elastic.Transport.Requ { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -44,7 +48,9 @@ public sealed partial class GetMappingRequestParameters : Elastic.Transport.Requ /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -110,8 +116,12 @@ internal GetMappingRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -127,7 +137,9 @@ internal GetMappingRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -195,8 +207,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetMappingRequestDescriptor /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.GetMappingRequestDescriptor AllowNoIndices(bool? value = true) @@ -233,7 +249,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetMappingRequestDescriptor /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.GetMappingRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -373,8 +391,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetMappingRequestDescriptor /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.GetMappingRequestDescriptor AllowNoIndices(bool? value = true) @@ -411,7 +433,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.GetMappingRequestDescriptor /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.GetMappingRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs index c718fc8b597..bbd28fbcd7b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/IndicesStatsRequest.g.cs @@ -153,7 +153,7 @@ internal IndicesStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// - /// Limit the information returned the specific metrics + /// Comma-separated list of metrics used to limit the request. /// /// public System.Collections.Generic.ICollection? Metric { get => P?>("metric"); set => PO("metric", value); } @@ -290,7 +290,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescript /// /// - /// Limit the information returned the specific metrics + /// Comma-separated list of metrics used to limit the request. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor Metric(System.Collections.Generic.ICollection? value) @@ -301,7 +301,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescript /// /// - /// Limit the information returned the specific metrics + /// Comma-separated list of metrics used to limit the request. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor Metric(params Elastic.Clients.Elasticsearch.CommonStatsFlag[] values) @@ -595,7 +595,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescript /// /// - /// Limit the information returned the specific metrics + /// Comma-separated list of metrics used to limit the request. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor Metric(System.Collections.Generic.ICollection? value) @@ -606,7 +606,7 @@ public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescript /// /// - /// Limit the information returned the specific metrics + /// Comma-separated list of metrics used to limit the request. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.IndicesStatsRequestDescriptor Metric(params Elastic.Clients.Elasticsearch.CommonStatsFlag[] values) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs index 7a7ecad44b3..4b943d03ff0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenIndexRequest.g.cs @@ -27,8 +27,12 @@ public sealed partial class OpenIndexRequestParameters : Elastic.Transport.Reque { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -44,7 +48,9 @@ public sealed partial class OpenIndexRequestParameters : Elastic.Transport.Reque /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -148,8 +154,12 @@ internal OpenIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -165,7 +175,9 @@ internal OpenIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -271,8 +283,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.OpenIndexRequestDescriptor /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.OpenIndexRequestDescriptor AllowNoIndices(bool? value = true) @@ -309,7 +325,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.OpenIndexRequestDescriptor /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.OpenIndexRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -485,8 +503,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.OpenIndexRequestDescriptor< /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.OpenIndexRequestDescriptor AllowNoIndices(bool? value = true) @@ -523,7 +545,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.OpenIndexRequestDescriptor< /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.OpenIndexRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs index 18656d18bbd..be1063ec01d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndicesSettingsRequest.g.cs @@ -27,11 +27,12 @@ public sealed partial class PutIndicesSettingsRequestParameters : Elastic.Transp { /// /// - /// If false, the request returns an error if any wildcard expression, index - /// alias, or _all value targets only missing or closed indices. This - /// behavior applies even if the request targets other open indices. For - /// example, a request targeting foo*,bar* returns an error if an index - /// starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -55,7 +56,9 @@ public sealed partial class PutIndicesSettingsRequestParameters : Elastic.Transp /// /// - /// If true, returns settings in flat format. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -209,11 +212,12 @@ internal PutIndicesSettingsRequest(Elastic.Clients.Elasticsearch.Serialization.J /// /// - /// If false, the request returns an error if any wildcard expression, index - /// alias, or _all value targets only missing or closed indices. This - /// behavior applies even if the request targets other open indices. For - /// example, a request targeting foo*,bar* returns an error if an index - /// starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -237,7 +241,9 @@ internal PutIndicesSettingsRequest(Elastic.Clients.Elasticsearch.Serialization.J /// /// - /// If true, returns settings in flat format. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -382,11 +388,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutIndicesSettingsRequestDe /// /// - /// If false, the request returns an error if any wildcard expression, index - /// alias, or _all value targets only missing or closed indices. This - /// behavior applies even if the request targets other open indices. For - /// example, a request targeting foo*,bar* returns an error if an index - /// starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.PutIndicesSettingsRequestDescriptor AllowNoIndices(bool? value = true) @@ -436,7 +443,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutIndicesSettingsRequestDe /// /// - /// If true, returns settings in flat format. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.PutIndicesSettingsRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -679,11 +688,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutIndicesSettingsRequestDe /// /// - /// If false, the request returns an error if any wildcard expression, index - /// alias, or _all value targets only missing or closed indices. This - /// behavior applies even if the request targets other open indices. For - /// example, a request targeting foo*,bar* returns an error if an index - /// starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.PutIndicesSettingsRequestDescriptor AllowNoIndices(bool? value = true) @@ -733,7 +743,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutIndicesSettingsRequestDe /// /// - /// If true, returns settings in flat format. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.PutIndicesSettingsRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs index ff27f2a8bd2..7c45f3a9faf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs @@ -27,8 +27,12 @@ public sealed partial class PutMappingRequestParameters : Elastic.Transport.Requ { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -44,7 +48,9 @@ public sealed partial class PutMappingRequestParameters : Elastic.Transport.Requ /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -158,8 +164,12 @@ internal PutMappingRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -175,7 +185,9 @@ internal PutMappingRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -389,8 +401,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutMappingRequestDescriptor /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.PutMappingRequestDescriptor AllowNoIndices(bool? value = true) @@ -427,7 +443,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutMappingRequestDescriptor /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.PutMappingRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -1030,8 +1048,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutMappingRequestDescriptor /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.PutMappingRequestDescriptor AllowNoIndices(bool? value = true) @@ -1068,7 +1090,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.PutMappingRequestDescriptor /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.PutMappingRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryRequest.g.cs index c7681f4e9a8..1aaf583cf71 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RecoveryRequest.g.cs @@ -34,8 +34,12 @@ public sealed partial class RecoveryRequestParameters : Elastic.Transport.Reques /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -58,7 +62,9 @@ public sealed partial class RecoveryRequestParameters : Elastic.Transport.Reques /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -166,8 +172,12 @@ internal RecoveryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -190,7 +200,9 @@ internal RecoveryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -304,8 +316,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RecoveryRequestDescriptor A /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.RecoveryRequestDescriptor AllowNoIndices(bool? value = true) @@ -353,7 +369,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RecoveryRequestDescriptor E /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.RecoveryRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -531,8 +549,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RecoveryRequestDescriptor /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.RecoveryRequestDescriptor AllowNoIndices(bool? value = true) @@ -580,7 +602,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RecoveryRequestDescriptor /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.RecoveryRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshRequest.g.cs index 8aa226aef4d..42851f974f0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshRequest.g.cs @@ -27,8 +27,12 @@ public sealed partial class RefreshRequestParameters : Elastic.Transport.Request { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -44,7 +48,9 @@ public sealed partial class RefreshRequestParameters : Elastic.Transport.Request /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -113,8 +119,12 @@ internal RefreshRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -130,7 +140,9 @@ internal RefreshRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -201,8 +213,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RefreshRequestDescriptor In /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.RefreshRequestDescriptor AllowNoIndices(bool? value = true) @@ -239,7 +255,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RefreshRequestDescriptor Ex /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.RefreshRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -374,8 +392,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RefreshRequestDescriptor /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.RefreshRequestDescriptor AllowNoIndices(bool? value = true) @@ -412,7 +434,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RefreshRequestDescriptor /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.RefreshRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs index 7bae7545234..dce76e8baf2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs @@ -27,8 +27,12 @@ public sealed partial class ReloadSearchAnalyzersRequestParameters : Elastic.Tra { /// /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. - /// (This includes _all string or when no indices have been specified) + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -42,7 +46,9 @@ public sealed partial class ReloadSearchAnalyzersRequestParameters : Elastic.Tra /// /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -113,8 +119,12 @@ internal ReloadSearchAnalyzersRequest(Elastic.Clients.Elasticsearch.Serializatio /// /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. - /// (This includes _all string or when no indices have been specified) + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -128,7 +138,9 @@ internal ReloadSearchAnalyzersRequest(Elastic.Clients.Elasticsearch.Serializatio /// /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -201,8 +213,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ReloadSearchAnalyzersReques /// /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. - /// (This includes _all string or when no indices have been specified) + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ReloadSearchAnalyzersRequestDescriptor AllowNoIndices(bool? value = true) @@ -235,7 +251,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ReloadSearchAnalyzersReques /// /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ReloadSearchAnalyzersRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -370,8 +388,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ReloadSearchAnalyzersReques /// /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. - /// (This includes _all string or when no indices have been specified) + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ReloadSearchAnalyzersRequestDescriptor AllowNoIndices(bool? value = true) @@ -404,7 +426,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ReloadSearchAnalyzersReques /// /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ReloadSearchAnalyzersRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RemoveBlockRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RemoveBlockRequest.g.cs index b894e3e342a..d957edcddc1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RemoveBlockRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RemoveBlockRequest.g.cs @@ -27,9 +27,12 @@ public sealed partial class RemoveBlockRequestParameters : Elastic.Transport.Req { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -45,7 +48,9 @@ public sealed partial class RemoveBlockRequestParameters : Elastic.Transport.Req /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -123,9 +128,12 @@ internal RemoveBlockRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -141,7 +149,9 @@ internal RemoveBlockRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -225,9 +235,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescripto /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescriptor AllowNoIndices(bool? value = true) @@ -264,7 +277,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescripto /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -415,9 +430,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescripto /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescriptor AllowNoIndices(bool? value = true) @@ -454,7 +472,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescripto /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.RemoveBlockRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterRequest.g.cs index 58393d2b192..58de67eb2bc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveClusterRequest.g.cs @@ -27,9 +27,12 @@ public sealed partial class ResolveClusterRequestParameters : Elastic.Transport. { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing - /// or closed indices. This behavior applies even if the request targets other open indices. For example, a request - /// targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// NOTE: This option is only supported when specifying an index expression. You will get an error if you specify index /// options to the _resolve/cluster API endpoint that takes no index expression. /// @@ -59,7 +62,9 @@ public sealed partial class ResolveClusterRequestParameters : Elastic.Transport. /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// NOTE: This option is only supported when specifying an index expression. You will get an error if you specify index /// options to the _resolve/cluster API endpoint that takes no index expression. /// @@ -215,9 +220,12 @@ internal ResolveClusterRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing - /// or closed indices. This behavior applies even if the request targets other open indices. For example, a request - /// targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// NOTE: This option is only supported when specifying an index expression. You will get an error if you specify index /// options to the _resolve/cluster API endpoint that takes no index expression. /// @@ -247,7 +255,9 @@ internal ResolveClusterRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// NOTE: This option is only supported when specifying an index expression. You will get an error if you specify index /// options to the _resolve/cluster API endpoint that takes no index expression. /// @@ -405,9 +415,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ResolveClusterRequestDescri /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing - /// or closed indices. This behavior applies even if the request targets other open indices. For example, a request - /// targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// NOTE: This option is only supported when specifying an index expression. You will get an error if you specify index /// options to the _resolve/cluster API endpoint that takes no index expression. /// @@ -464,7 +477,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ResolveClusterRequestDescri /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// NOTE: This option is only supported when specifying an index expression. You will get an error if you specify index /// options to the _resolve/cluster API endpoint that takes no index expression. /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs index cbe0c3b13b6..1455a90d29a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs @@ -27,9 +27,12 @@ public sealed partial class ResolveIndexRequestParameters : Elastic.Transport.Re { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -45,7 +48,9 @@ public sealed partial class ResolveIndexRequestParameters : Elastic.Transport.Re /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -103,9 +108,12 @@ internal ResolveIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -121,7 +129,9 @@ internal ResolveIndexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -195,9 +205,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ResolveIndexRequestDescript /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ResolveIndexRequestDescriptor AllowNoIndices(bool? value = true) @@ -234,7 +247,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ResolveIndexRequestDescript /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ResolveIndexRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs index 007e80bd427..e7b2199de03 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs @@ -27,8 +27,12 @@ public sealed partial class SegmentsRequestParameters : Elastic.Transport.Reques { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -44,7 +48,9 @@ public sealed partial class SegmentsRequestParameters : Elastic.Transport.Reques /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -95,8 +101,12 @@ internal SegmentsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -112,7 +122,9 @@ internal SegmentsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -165,8 +177,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.SegmentsRequestDescriptor I /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.SegmentsRequestDescriptor AllowNoIndices(bool? value = true) @@ -203,7 +219,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.SegmentsRequestDescriptor E /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.SegmentsRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -320,8 +338,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.SegmentsRequestDescriptor /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.SegmentsRequestDescriptor AllowNoIndices(bool? value = true) @@ -358,7 +380,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.SegmentsRequestDescriptor /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.SegmentsRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs index ffcc673a797..ef036a2f35f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs @@ -27,9 +27,12 @@ public sealed partial class ShardStoresRequestParameters : Elastic.Transport.Req { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all - /// value targets only missing or closed indices. This behavior applies even if the request - /// targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -44,7 +47,9 @@ public sealed partial class ShardStoresRequestParameters : Elastic.Transport.Req /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -128,9 +133,12 @@ internal ShardStoresRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all - /// value targets only missing or closed indices. This behavior applies even if the request - /// targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -145,7 +153,9 @@ internal ShardStoresRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -231,9 +241,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ShardStoresRequestDescripto /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all - /// value targets only missing or closed indices. This behavior applies even if the request - /// targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ShardStoresRequestDescriptor AllowNoIndices(bool? value = true) @@ -268,7 +281,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ShardStoresRequestDescripto /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ShardStoresRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -433,9 +448,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ShardStoresRequestDescripto /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all - /// value targets only missing or closed indices. This behavior applies even if the request - /// targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ShardStoresRequestDescriptor AllowNoIndices(bool? value = true) @@ -470,7 +488,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ShardStoresRequestDescripto /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ShardStoresRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs index aa05e156a3e..08a257acd0f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs @@ -27,8 +27,12 @@ public sealed partial class ValidateQueryRequestParameters : Elastic.Transport.R { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -88,7 +92,9 @@ public sealed partial class ValidateQueryRequestParameters : Elastic.Transport.R /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -159,8 +165,12 @@ internal ValidateQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -220,7 +230,9 @@ internal ValidateQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -300,8 +312,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescrip /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescriptor AllowNoIndices(bool? value = true) @@ -406,7 +422,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescrip /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -588,8 +606,12 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescrip /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescriptor AllowNoIndices(bool? value = true) @@ -694,7 +716,9 @@ public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescrip /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndexManagement.ValidateQueryRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/ChatCompletionUnifiedRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/ChatCompletionUnifiedRequest.g.cs index 538120e9be3..f248409c39f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/ChatCompletionUnifiedRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/ChatCompletionUnifiedRequest.g.cs @@ -81,6 +81,10 @@ internal ChatCompletionUnifiedRequest(Elastic.Clients.Elasticsearch.Serializatio internal override string OperationName => "inference.chat_completion_unified"; + private static readonly Elastic.Transport.IRequestConfiguration DefaultRequestConfiguration = new Elastic.Transport.RequestConfiguration { Accept = "text/event-stream" }; + + public override Elastic.Transport.IRequestConfiguration? RequestConfiguration { get => base.RequestConfiguration ?? DefaultRequestConfiguration; set => base.RequestConfiguration = value; } + /// /// /// The inference Id diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/ChatCompletionUnifiedResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/ChatCompletionUnifiedResponse.g.cs deleted file mode 100644 index 481254cf227..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/ChatCompletionUnifiedResponse.g.cs +++ /dev/null @@ -1,38 +0,0 @@ -// 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 System; -using System.Linq; -using Elastic.Clients.Elasticsearch.Serialization; - -namespace Elastic.Clients.Elasticsearch.Inference; - -public sealed partial class ChatCompletionUnifiedResponse : Elastic.Transport.Products.Elasticsearch.ElasticsearchResponse -{ - [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public ChatCompletionUnifiedResponse() - { - } - - [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - internal ChatCompletionUnifiedResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) - { - _ = sentinel; - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamCompletionRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamCompletionRequest.g.cs index be4b251b0a0..6f25cbdec42 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamCompletionRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamCompletionRequest.g.cs @@ -81,6 +81,10 @@ internal StreamCompletionRequest(Elastic.Clients.Elasticsearch.Serialization.Jso internal override string OperationName => "inference.stream_completion"; + private static readonly Elastic.Transport.IRequestConfiguration DefaultRequestConfiguration = new Elastic.Transport.RequestConfiguration { Accept = "text/event-stream" }; + + public override Elastic.Transport.IRequestConfiguration? RequestConfiguration { get => base.RequestConfiguration ?? DefaultRequestConfiguration; set => base.RequestConfiguration = value; } + /// /// /// The unique identifier for the inference endpoint. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamCompletionResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamCompletionResponse.g.cs deleted file mode 100644 index ba09dd6ed55..00000000000 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Inference/StreamCompletionResponse.g.cs +++ /dev/null @@ -1,38 +0,0 @@ -// 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 System; -using System.Linq; -using Elastic.Clients.Elasticsearch.Serialization; - -namespace Elastic.Clients.Elasticsearch.Inference; - -public sealed partial class StreamCompletionResponse : Elastic.Transport.Products.Elasticsearch.ElasticsearchResponse -{ - [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public StreamCompletionResponse() - { - } - - [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - internal StreamCompletionResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) - { - _ = sentinel; - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoRequest.g.cs index 1764551fdc3..a54048656de 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoRequest.g.cs @@ -33,7 +33,7 @@ public sealed partial class InfoRequestParameters : Elastic.Transport.RequestPar /// /// /// Get basic build, version, and cluster information. -/// ::: In Serverless, this API is retained for backward compatibility only. Some response fields, such as the version number, should be ignored. +/// ::: In Serverless, version.number always reports the next target Elasticsearch release version at the time of the request. Serverless does not track to a traditional release versioning model; it is continuously updated. The version number is provided to maintain compatibility with existing clients, but it is not meaningful for assessing feature availability. Clients should detect a Serverless environment by checking for build_flavor: serverless. /// /// [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.InfoRequestConverter))] @@ -64,7 +64,7 @@ internal InfoRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// /// /// Get basic build, version, and cluster information. -/// ::: In Serverless, this API is retained for backward compatibility only. Some response fields, such as the version number, should be ignored. +/// ::: In Serverless, version.number always reports the next target Elasticsearch release version at the time of the request. Serverless does not track to a traditional release versioning model; it is continuously updated. The version number is provided to maintain compatibility with existing clients, but it is not meaningful for assessing feature availability. Clients should detect a Serverless environment by checking for build_flavor: serverless. /// /// public readonly partial struct InfoRequestDescriptor diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoResponse.g.cs index 319a5b86d4d..1ce5ec615e6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/InfoResponse.g.cs @@ -55,7 +55,7 @@ internal InfoResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// /// - /// The running version of Elasticsearch. + /// Version information for the Elasticsearch cluster. In Serverless, version.number always reports the next target Elasticsearch release version at the time of the request, not an actual deployed version. The version number is provided to maintain client compatibility but is not meaningful for assessing feature availability. Use build_flavor: serverless to detect a Serverless environment. /// /// public required Elastic.Clients.Elasticsearch.ElasticsearchVersionInfo Version { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ListReindexRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ListReindexRequest.Converters.g.cs new file mode 100644 index 00000000000..be04e776d2d --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ListReindexRequest.Converters.g.cs @@ -0,0 +1,53 @@ +// 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 System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Json; + +public sealed partial class ListReindexRequestConverter : System.Text.Json.Serialization.JsonConverter +{ + public override Elastic.Clients.Elasticsearch.ListReindexRequest Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) + { + reader.SafeSkip(); + continue; + } + + throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'."); + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.ListReindexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.ListReindexRequest value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ListReindexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ListReindexRequest.g.cs new file mode 100644 index 00000000000..57f11be4fd8 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ListReindexRequest.g.cs @@ -0,0 +1,169 @@ +// 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 System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch; + +public sealed partial class ListReindexRequestParameters : Elastic.Transport.RequestParameters +{ + /// + /// + /// If true, include detailed task status information in the response. + /// + /// + public bool? Detailed { get => Q("detailed"); set => Q("detailed", value); } +} + +/// +/// +/// List active reindex tasks. +/// +/// +/// Get information about all currently running reindex tasks. +/// +/// +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.ListReindexRequestConverter))] +public sealed partial class ListReindexRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest +{ + public ListReindexRequest() + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal ListReindexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + internal override Elastic.Clients.Elasticsearch.Requests.ApiUrls ApiUrls => Elastic.Clients.Elasticsearch.Requests.ApiUrlLookup.NoNamespaceListReindex; + + protected override Elastic.Transport.HttpMethod StaticHttpMethod => Elastic.Transport.HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "list_reindex"; + + /// + /// + /// If true, include detailed task status information in the response. + /// + /// + public bool? Detailed { get => Q("detailed"); set => Q("detailed", value); } +} + +/// +/// +/// List active reindex tasks. +/// +/// +/// Get information about all currently running reindex tasks. +/// +/// +public readonly partial struct ListReindexRequestDescriptor +{ + internal Elastic.Clients.Elasticsearch.ListReindexRequest Instance { get; init; } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ListReindexRequestDescriptor(Elastic.Clients.Elasticsearch.ListReindexRequest instance) + { + Instance = instance; + } + + public ListReindexRequestDescriptor() + { + Instance = new Elastic.Clients.Elasticsearch.ListReindexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance); + } + + public static explicit operator Elastic.Clients.Elasticsearch.ListReindexRequestDescriptor(Elastic.Clients.Elasticsearch.ListReindexRequest instance) => new Elastic.Clients.Elasticsearch.ListReindexRequestDescriptor(instance); + public static implicit operator Elastic.Clients.Elasticsearch.ListReindexRequest(Elastic.Clients.Elasticsearch.ListReindexRequestDescriptor descriptor) => descriptor.Instance; + + /// + /// + /// If true, include detailed task status information in the response. + /// + /// + public Elastic.Clients.Elasticsearch.ListReindexRequestDescriptor Detailed(bool? value = true) + { + Instance.Detailed = value; + return this; + } + + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + internal static Elastic.Clients.Elasticsearch.ListReindexRequest Build(System.Action? action) + { + if (action is null) + { + return new Elastic.Clients.Elasticsearch.ListReindexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance); + } + + var builder = new Elastic.Clients.Elasticsearch.ListReindexRequestDescriptor(new Elastic.Clients.Elasticsearch.ListReindexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)); + action.Invoke(builder); + return builder.Instance; + } + + public Elastic.Clients.Elasticsearch.ListReindexRequestDescriptor ErrorTrace(bool? value) + { + Instance.ErrorTrace = value; + return this; + } + + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] + public Elastic.Clients.Elasticsearch.ListReindexRequestDescriptor FilterPath(params string[]? value) + { + Instance.FilterPath = value; + return this; + } + + public Elastic.Clients.Elasticsearch.ListReindexRequestDescriptor Human(bool? value) + { + Instance.Human = value; + return this; + } + + public Elastic.Clients.Elasticsearch.ListReindexRequestDescriptor Pretty(bool? value) + { + Instance.Pretty = value; + return this; + } + + public Elastic.Clients.Elasticsearch.ListReindexRequestDescriptor SourceQueryString(string? value) + { + Instance.SourceQueryString = value; + return this; + } + + public Elastic.Clients.Elasticsearch.ListReindexRequestDescriptor RequestConfiguration(Elastic.Transport.IRequestConfiguration? value) + { + Instance.RequestConfiguration = value; + return this; + } + + public Elastic.Clients.Elasticsearch.ListReindexRequestDescriptor RequestConfiguration(System.Func? configurationSelector) + { + Instance.RequestConfiguration = configurationSelector.Invoke(Instance.RequestConfiguration is null ? new Elastic.Transport.RequestConfigurationDescriptor() : new Elastic.Transport.RequestConfigurationDescriptor(Instance.RequestConfiguration)) ?? Instance.RequestConfiguration; + return this; + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ListReindexResponse.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ListReindexResponse.Converters.g.cs new file mode 100644 index 00000000000..aaf757ddad5 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ListReindexResponse.Converters.g.cs @@ -0,0 +1,81 @@ +// 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 System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Json; + +public sealed partial class ListReindexResponseConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropNodeFailures = System.Text.Json.JsonEncodedText.Encode("node_failures"u8); + private static readonly System.Text.Json.JsonEncodedText PropReindex = System.Text.Json.JsonEncodedText.Encode("reindex"u8); + private static readonly System.Text.Json.JsonEncodedText PropTaskFailures = System.Text.Json.JsonEncodedText.Encode("task_failures"u8); + + public override Elastic.Clients.Elasticsearch.ListReindexResponse Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue?> propNodeFailures = default; + LocalJsonValue> propReindex = default; + LocalJsonValue?> propTaskFailures = default; + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (propNodeFailures.TryReadProperty(ref reader, options, PropNodeFailures, static System.Collections.Generic.IReadOnlyCollection? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadCollectionValue(o, null))) + { + continue; + } + + if (propReindex.TryReadProperty(ref reader, options, PropReindex, static System.Collections.Generic.IReadOnlyCollection (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadCollectionValue(o, null)!)) + { + continue; + } + + if (propTaskFailures.TryReadProperty(ref reader, options, PropTaskFailures, static System.Collections.Generic.IReadOnlyCollection? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadCollectionValue(o, null))) + { + continue; + } + + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) + { + reader.SafeSkip(); + continue; + } + + throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'."); + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.ListReindexResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + NodeFailures = propNodeFailures.Value, + Reindex = propReindex.Value, + TaskFailures = propTaskFailures.Value + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.ListReindexResponse value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteProperty(options, PropNodeFailures, value.NodeFailures, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyCollection? v) => w.WriteCollectionValue(o, v, null)); + writer.WriteProperty(options, PropReindex, value.Reindex, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyCollection v) => w.WriteCollectionValue(o, v, null)); + writer.WriteProperty(options, PropTaskFailures, value.TaskFailures, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyCollection? v) => w.WriteCollectionValue(o, v, null)); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchMvtResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ListReindexResponse.g.cs similarity index 56% rename from src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchMvtResponse.g.cs rename to src/Elastic.Clients.Elasticsearch/_Generated/Api/ListReindexResponse.g.cs index 77c798b8090..319ee92c8b0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchMvtResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ListReindexResponse.g.cs @@ -23,16 +23,38 @@ namespace Elastic.Clients.Elasticsearch; -public sealed partial class SearchMvtResponse : Elastic.Transport.Products.Elasticsearch.ElasticsearchResponse +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.ListReindexResponseConverter))] +public sealed partial class ListReindexResponse : Elastic.Transport.Products.Elasticsearch.ElasticsearchResponse { [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public SearchMvtResponse() + public ListReindexResponse() { } [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - internal SearchMvtResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + internal ListReindexResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } + + /// + /// + /// Node-level failures that occurred while listing reindex tasks. + /// + /// + public System.Collections.Generic.IReadOnlyCollection? NodeFailures { get; set; } + + /// + /// + /// The list of currently running reindex tasks. + /// + /// + public required System.Collections.Generic.IReadOnlyCollection Reindex { get; set; } + + /// + /// + /// Task-level failures that occurred while listing reindex tasks. + /// + /// + public System.Collections.Generic.IReadOnlyCollection? TaskFailures { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs index 3487c207e6b..15e2bb2c21a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutDatafeedRequest.g.cs @@ -27,8 +27,12 @@ public sealed partial class PutDatafeedRequestParameters : Elastic.Transport.Req { /// /// - /// If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the _all - /// string or when no indices are specified. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -51,7 +55,9 @@ public sealed partial class PutDatafeedRequestParameters : Elastic.Transport.Req /// /// - /// If true, unavailable indices (missing or closed) are ignored. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -112,8 +118,12 @@ internal PutDatafeedRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// - /// If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the _all - /// string or when no indices are specified. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -136,7 +146,9 @@ internal PutDatafeedRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// - /// If true, unavailable indices (missing or closed) are ignored. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -314,8 +326,12 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutDatafeedRequestDescripto /// /// - /// If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the _all - /// string or when no indices are specified. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.MachineLearning.PutDatafeedRequestDescriptor AllowNoIndices(bool? value = true) @@ -362,7 +378,9 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutDatafeedRequestDescripto /// /// - /// If true, unavailable indices (missing or closed) are ignored. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.MachineLearning.PutDatafeedRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -929,8 +947,12 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutDatafeedRequestDescripto /// /// - /// If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the _all - /// string or when no indices are specified. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.MachineLearning.PutDatafeedRequestDescriptor AllowNoIndices(bool? value = true) @@ -977,7 +999,9 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutDatafeedRequestDescripto /// /// - /// If true, unavailable indices (missing or closed) are ignored. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.MachineLearning.PutDatafeedRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs index 0ff24028cf6..93d8dfeca6c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/PutJobRequest.g.cs @@ -27,8 +27,12 @@ public sealed partial class PutJobRequestParameters : Elastic.Transport.RequestP { /// /// - /// If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the - /// _all string or when no indices are specified. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -51,7 +55,9 @@ public sealed partial class PutJobRequestParameters : Elastic.Transport.RequestP /// /// - /// If true, unavailable indices (missing or closed) are ignored. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -109,8 +115,12 @@ internal PutJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// /// - /// If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the - /// _all string or when no indices are specified. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -133,7 +143,9 @@ internal PutJobRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// /// - /// If true, unavailable indices (missing or closed) are ignored. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -292,8 +304,12 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor Job /// /// - /// If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the - /// _all string or when no indices are specified. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor AllowNoIndices(bool? value = true) @@ -340,7 +356,9 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor Ign /// /// - /// If true, unavailable indices (missing or closed) are ignored. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -772,8 +790,12 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor /// - /// If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the - /// _all string or when no indices are specified. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor AllowNoIndices(bool? value = true) @@ -820,7 +842,9 @@ public Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor /// - /// If true, unavailable indices (missing or closed) are ignored. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.MachineLearning.PutJobRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDatafeedRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDatafeedRequest.g.cs index 98f4dffaae3..96a79d9c229 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDatafeedRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MachineLearning/UpdateDatafeedRequest.g.cs @@ -27,8 +27,12 @@ public sealed partial class UpdateDatafeedRequestParameters : Elastic.Transport. { /// /// - /// If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the - /// _all string or when no indices are specified. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -51,7 +55,9 @@ public sealed partial class UpdateDatafeedRequestParameters : Elastic.Transport. /// /// - /// If true, unavailable indices (missing or closed) are ignored. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -105,8 +111,12 @@ internal UpdateDatafeedRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// - /// If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the - /// _all string or when no indices are specified. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -129,7 +139,9 @@ internal UpdateDatafeedRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// - /// If true, unavailable indices (missing or closed) are ignored. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -296,8 +308,12 @@ public Elastic.Clients.Elasticsearch.MachineLearning.UpdateDatafeedRequestDescri /// /// - /// If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the - /// _all string or when no indices are specified. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.MachineLearning.UpdateDatafeedRequestDescriptor AllowNoIndices(bool? value = true) @@ -344,7 +360,9 @@ public Elastic.Clients.Elasticsearch.MachineLearning.UpdateDatafeedRequestDescri /// /// - /// If true, unavailable indices (missing or closed) are ignored. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.MachineLearning.UpdateDatafeedRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -889,8 +907,12 @@ public Elastic.Clients.Elasticsearch.MachineLearning.UpdateDatafeedRequestDescri /// /// - /// If true, wildcard indices expressions that resolve into no concrete indices are ignored. This includes the - /// _all string or when no indices are specified. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.MachineLearning.UpdateDatafeedRequestDescriptor AllowNoIndices(bool? value = true) @@ -937,7 +959,9 @@ public Elastic.Clients.Elasticsearch.MachineLearning.UpdateDatafeedRequestDescri /// /// - /// If true, unavailable indices (missing or closed) are ignored. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.MachineLearning.UpdateDatafeedRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchRequest.g.cs index 55cf9ac6e5a..efaac03cdb2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchRequest.g.cs @@ -27,7 +27,12 @@ public sealed partial class MultiSearchRequestParameters : Elastic.Transport.Req { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -56,7 +61,9 @@ public sealed partial class MultiSearchRequestParameters : Elastic.Transport.Req /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -207,7 +214,12 @@ internal MultiSearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -236,7 +248,9 @@ internal MultiSearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -379,7 +393,12 @@ public Elastic.Clients.Elasticsearch.MultiSearchRequestDescriptor Indices(Elasti /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.MultiSearchRequestDescriptor AllowNoIndices(bool? value = true) @@ -435,7 +454,9 @@ public Elastic.Clients.Elasticsearch.MultiSearchRequestDescriptor IgnoreThrottle /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.MultiSearchRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -684,7 +705,12 @@ public Elastic.Clients.Elasticsearch.MultiSearchRequestDescriptor Ind /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.MultiSearchRequestDescriptor AllowNoIndices(bool? value = true) @@ -740,7 +766,9 @@ public Elastic.Clients.Elasticsearch.MultiSearchRequestDescriptor Ign /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.MultiSearchRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs index f4ced2429b7..cfd0544ea9f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs @@ -45,7 +45,9 @@ public sealed partial class OpenPointInTimeRequestParameters : Elastic.Transport /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -185,7 +187,9 @@ internal OpenPointInTimeRequest(Elastic.Clients.Elasticsearch.Serialization.Json /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -369,7 +373,9 @@ public Elastic.Clients.Elasticsearch.OpenPointInTimeRequestDescriptor ExpandWild /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.OpenPointInTimeRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -657,7 +663,9 @@ public Elastic.Clients.Elasticsearch.OpenPointInTimeRequestDescriptor /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.OpenPointInTimeRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalRequest.g.cs index 4abfe242510..0afcc6c49a7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalRequest.g.cs @@ -27,7 +27,12 @@ public sealed partial class RankEvalRequestParameters : Elastic.Transport.Reques { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -41,7 +46,9 @@ public sealed partial class RankEvalRequestParameters : Elastic.Transport.Reques /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -112,7 +119,12 @@ internal RankEvalRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -126,7 +138,9 @@ internal RankEvalRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -201,7 +215,12 @@ public Elastic.Clients.Elasticsearch.RankEvalRequestDescriptor Indices(Elastic.C /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.RankEvalRequestDescriptor AllowNoIndices(bool? value = true) @@ -234,7 +253,9 @@ public Elastic.Clients.Elasticsearch.RankEvalRequestDescriptor ExpandWildcards(p /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.RankEvalRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -447,7 +468,12 @@ public Elastic.Clients.Elasticsearch.RankEvalRequestDescriptor Indice /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices. For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.RankEvalRequestDescriptor AllowNoIndices(bool? value = true) @@ -480,7 +506,9 @@ public Elastic.Clients.Elasticsearch.RankEvalRequestDescriptor Expand /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.RankEvalRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.g.cs index b13758c5b9d..ec49ffa4c3e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.g.cs @@ -144,7 +144,7 @@ public sealed partial class ReindexRequestParameters : Elastic.Transport.Request /// /// /// If reindexing from a remote cluster into a cluster using Elastic Stack, you must explicitly allow the remote host using the reindex.remote.whitelist node setting on the destination cluster. -/// If reindexing from a remote cluster into an Elastic Cloud Serverless project, only remote hosts from Elastic Cloud Hosted are allowed. +/// If reindexing from a remote cluster into an Elastic Cloud Serverless project, only remote hosts from Elastic Cloud Hosted are allowed. /// Automatic data stream creation requires a matching index template with data stream enabled. /// /// @@ -378,7 +378,7 @@ internal ReindexRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// /// /// If reindexing from a remote cluster into a cluster using Elastic Stack, you must explicitly allow the remote host using the reindex.remote.whitelist node setting on the destination cluster. -/// If reindexing from a remote cluster into an Elastic Cloud Serverless project, only remote hosts from Elastic Cloud Hosted are allowed. +/// If reindexing from a remote cluster into an Elastic Cloud Serverless project, only remote hosts from Elastic Cloud Hosted are allowed. /// Automatic data stream creation requires a matching index template with data stream enabled. /// /// @@ -788,7 +788,7 @@ public Elastic.Clients.Elasticsearch.ReindexRequestDescriptor RequestConfigurati /// /// /// If reindexing from a remote cluster into a cluster using Elastic Stack, you must explicitly allow the remote host using the reindex.remote.whitelist node setting on the destination cluster. -/// If reindexing from a remote cluster into an Elastic Cloud Serverless project, only remote hosts from Elastic Cloud Hosted are allowed. +/// If reindexing from a remote cluster into an Elastic Cloud Serverless project, only remote hosts from Elastic Cloud Hosted are allowed. /// Automatic data stream creation requires a matching index template with data stream enabled. /// /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchMvtRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchMvtRequest.g.cs index 46bfa1359d5..c199d60d189 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchMvtRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchMvtRequest.g.cs @@ -203,6 +203,10 @@ internal SearchMvtRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr internal override string OperationName => "search_mvt"; + private static readonly Elastic.Transport.IRequestConfiguration DefaultRequestConfiguration = new Elastic.Transport.RequestConfiguration { Accept = "application/vnd.mapbox-vector-tile" }; + + public override Elastic.Transport.IRequestConfiguration? RequestConfiguration { get => base.RequestConfiguration ?? DefaultRequestConfiguration; set => base.RequestConfiguration = value; } + /// /// /// A field that contains the geospatial data to return. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs index 3e985d3425e..81bd164d712 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs @@ -27,9 +27,12 @@ public sealed partial class SearchRequestParameters : Elastic.Transport.RequestP { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -120,7 +123,9 @@ public sealed partial class SearchRequestParameters : Elastic.Transport.RequestP /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -400,9 +405,12 @@ internal SearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -493,7 +501,9 @@ internal SearchRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -1066,9 +1076,12 @@ public Elastic.Clients.Elasticsearch.SearchRequestDescriptor Indices(Elastic.Cli /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.SearchRequestDescriptor AllowNoIndices(bool? value = true) @@ -1216,7 +1229,9 @@ public Elastic.Clients.Elasticsearch.SearchRequestDescriptor IgnoreThrottled(boo /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.SearchRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -2843,9 +2858,12 @@ public Elastic.Clients.Elasticsearch.SearchRequestDescriptor Indices( /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.SearchRequestDescriptor AllowNoIndices(bool? value = true) @@ -2993,7 +3011,9 @@ public Elastic.Clients.Elasticsearch.SearchRequestDescriptor IgnoreTh /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.SearchRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs index 8d72a6d3f78..f5479419698 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs @@ -27,9 +27,12 @@ public sealed partial class SearchShardsRequestParameters : Elastic.Transport.Re { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -45,7 +48,9 @@ public sealed partial class SearchShardsRequestParameters : Elastic.Transport.Re /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -131,9 +136,12 @@ internal SearchShardsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -149,7 +157,9 @@ internal SearchShardsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCon /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -237,9 +247,12 @@ public Elastic.Clients.Elasticsearch.SearchShardsRequestDescriptor Indices(Elast /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.SearchShardsRequestDescriptor AllowNoIndices(bool? value = true) @@ -276,7 +289,9 @@ public Elastic.Clients.Elasticsearch.SearchShardsRequestDescriptor ExpandWildcar /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.SearchShardsRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -444,9 +459,12 @@ public Elastic.Clients.Elasticsearch.SearchShardsRequestDescriptor In /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.SearchShardsRequestDescriptor AllowNoIndices(bool? value = true) @@ -483,7 +501,9 @@ public Elastic.Clients.Elasticsearch.SearchShardsRequestDescriptor Ex /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.SearchShardsRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs index d1d1af2ee31..1c035554afe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs @@ -27,9 +27,12 @@ public sealed partial class SearchTemplateRequestParameters : Elastic.Transport. { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -60,7 +63,9 @@ public sealed partial class SearchTemplateRequestParameters : Elastic.Transport. /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -151,9 +156,12 @@ internal SearchTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -184,7 +192,9 @@ internal SearchTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -332,9 +342,12 @@ public Elastic.Clients.Elasticsearch.SearchTemplateRequestDescriptor Indices(Ela /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.SearchTemplateRequestDescriptor AllowNoIndices(bool? value = true) @@ -394,7 +407,9 @@ public Elastic.Clients.Elasticsearch.SearchTemplateRequestDescriptor IgnoreThrot /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.SearchTemplateRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -687,9 +702,12 @@ public Elastic.Clients.Elasticsearch.SearchTemplateRequestDescriptor /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.SearchTemplateRequestDescriptor AllowNoIndices(bool? value = true) @@ -749,7 +767,9 @@ public Elastic.Clients.Elasticsearch.SearchTemplateRequestDescriptor /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.SearchTemplateRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/ClearCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/ClearCacheRequest.g.cs index 73e54b86b19..ada034a6db2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/ClearCacheRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/ClearCacheRequest.g.cs @@ -27,8 +27,12 @@ public sealed partial class ClearCacheRequestParameters : Elastic.Transport.Requ { /// /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. - /// (This includes _all string or when no indices have been specified) + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -42,7 +46,9 @@ public sealed partial class ClearCacheRequestParameters : Elastic.Transport.Requ /// /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -91,8 +97,12 @@ internal ClearCacheRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. - /// (This includes _all string or when no indices have been specified) + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -106,7 +116,9 @@ internal ClearCacheRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -157,8 +169,12 @@ public Elastic.Clients.Elasticsearch.SearchableSnapshots.ClearCacheRequestDescri /// /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. - /// (This includes _all string or when no indices have been specified) + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.SearchableSnapshots.ClearCacheRequestDescriptor AllowNoIndices(bool? value = true) @@ -191,7 +207,9 @@ public Elastic.Clients.Elasticsearch.SearchableSnapshots.ClearCacheRequestDescri /// /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.SearchableSnapshots.ClearCacheRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -306,8 +324,12 @@ public Elastic.Clients.Elasticsearch.SearchableSnapshots.ClearCacheRequestDescri /// /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. - /// (This includes _all string or when no indices have been specified) + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.SearchableSnapshots.ClearCacheRequestDescriptor AllowNoIndices(bool? value = true) @@ -340,7 +362,9 @@ public Elastic.Clients.Elasticsearch.SearchableSnapshots.ClearCacheRequestDescri /// /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.SearchableSnapshots.ClearCacheRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CloneApiKeyRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CloneApiKeyRequest.Converters.g.cs new file mode 100644 index 00000000000..ad1d44aeff5 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CloneApiKeyRequest.Converters.g.cs @@ -0,0 +1,90 @@ +// 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 System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security.Json; + +public sealed partial class CloneApiKeyRequestConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropApiKey = System.Text.Json.JsonEncodedText.Encode("api_key"u8); + private static readonly System.Text.Json.JsonEncodedText PropExpiration = System.Text.Json.JsonEncodedText.Encode("expiration"u8); + private static readonly System.Text.Json.JsonEncodedText PropMetadata = System.Text.Json.JsonEncodedText.Encode("metadata"u8); + private static readonly System.Text.Json.JsonEncodedText PropName = System.Text.Json.JsonEncodedText.Encode("name"u8); + + public override Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequest Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propApiKey = default; + LocalJsonValue propExpiration = default; + LocalJsonValue?> propMetadata = default; + LocalJsonValue propName = default; + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (propApiKey.TryReadProperty(ref reader, options, PropApiKey, null)) + { + continue; + } + + if (propExpiration.TryReadProperty(ref reader, options, PropExpiration, null)) + { + continue; + } + + if (propMetadata.TryReadProperty(ref reader, options, PropMetadata, static System.Collections.Generic.IDictionary? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadDictionaryValue(o, null, static object (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.SourceMarker))!))) + { + continue; + } + + if (propName.TryReadProperty(ref reader, options, PropName, null)) + { + continue; + } + + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) + { + reader.SafeSkip(); + continue; + } + + throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'."); + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + ApiKey = propApiKey.Value, + Expiration = propExpiration.Value, + Metadata = propMetadata.Value, + Name = propName.Value + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequest value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteProperty(options, PropApiKey, value.ApiKey, null, null); + writer.WriteProperty(options, PropExpiration, value.Expiration, null, null); + writer.WriteProperty(options, PropMetadata, value.Metadata, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IDictionary? v) => w.WriteDictionaryValue(o, v, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, object v) => w.WriteValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.SourceMarker)))); + writer.WriteProperty(options, PropName, value.Name, null, null); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CloneApiKeyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CloneApiKeyRequest.g.cs new file mode 100644 index 00000000000..9c2f3c5ebdb --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CloneApiKeyRequest.g.cs @@ -0,0 +1,295 @@ +// 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 System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +public sealed partial class CloneApiKeyRequestParameters : Elastic.Transport.RequestParameters +{ + /// + /// + /// If true (the default) then refresh the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes. + /// + /// + public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } +} + +/// +/// +/// Clone an API key. +/// +/// +/// Create a copy of an existing API key with a new ID. +/// The cloned key inherits the role descriptors of the source key. +/// This is intended for applications (such as Kibana) that need to +/// create API keys on behalf of a user using an existing API key credential, +/// since derived API keys (API keys created by API keys) are not otherwise supported. +/// +/// +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.CloneApiKeyRequestConverter))] +public sealed partial class CloneApiKeyRequest : Elastic.Clients.Elasticsearch.Requests.PlainRequest +{ + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public CloneApiKeyRequest(string apiKey) + { + ApiKey = apiKey; + } + + public CloneApiKeyRequest() + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal CloneApiKeyRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + internal override Elastic.Clients.Elasticsearch.Requests.ApiUrls ApiUrls => Elastic.Clients.Elasticsearch.Requests.ApiUrlLookup.SecurityCloneApiKey; + + protected override Elastic.Transport.HttpMethod StaticHttpMethod => Elastic.Transport.HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "security.clone_api_key"; + + /// + /// + /// If true (the default) then refresh the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes. + /// + /// + public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } + + /// + /// + /// The credentials of the API key to clone. + /// This is the secret value returned when the key was originally created. + /// + /// + public required string ApiKey { get; set; } + + /// + /// + /// The expiration time for the cloned API key. + /// By default, API keys never expire. + /// Set to null to explicitly create a key with no expiration. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? Expiration { get; set; } + + /// + /// + /// Arbitrary metadata to associate with the cloned API key. + /// It supports nested data structure. + /// Within the metadata object, keys beginning with _ are reserved for system usage. + /// + /// + public System.Collections.Generic.IDictionary? Metadata { get; set; } + + /// + /// + /// A name for the cloned API key. + /// If not provided, the name of the source key is used. + /// + /// + public Elastic.Clients.Elasticsearch.Name? Name { get; set; } +} + +/// +/// +/// Clone an API key. +/// +/// +/// Create a copy of an existing API key with a new ID. +/// The cloned key inherits the role descriptors of the source key. +/// This is intended for applications (such as Kibana) that need to +/// create API keys on behalf of a user using an existing API key credential, +/// since derived API keys (API keys created by API keys) are not otherwise supported. +/// +/// +public readonly partial struct CloneApiKeyRequestDescriptor +{ + internal Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequest Instance { get; init; } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public CloneApiKeyRequestDescriptor(Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequest instance) + { + Instance = instance; + } + + public CloneApiKeyRequestDescriptor() + { + Instance = new Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance); + } + + public static explicit operator Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequestDescriptor(Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequest instance) => new Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequestDescriptor(instance); + public static implicit operator Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequest(Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequestDescriptor descriptor) => descriptor.Instance; + + /// + /// + /// If true (the default) then refresh the affected shards to make this operation visible to search, if wait_for then wait for a refresh to make this operation visible to search, if false then do nothing with refreshes. + /// + /// + public Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequestDescriptor Refresh(Elastic.Clients.Elasticsearch.Refresh? value) + { + Instance.Refresh = value; + return this; + } + + /// + /// + /// The credentials of the API key to clone. + /// This is the secret value returned when the key was originally created. + /// + /// + public Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequestDescriptor ApiKey(string value) + { + Instance.ApiKey = value; + return this; + } + + /// + /// + /// The expiration time for the cloned API key. + /// By default, API keys never expire. + /// Set to null to explicitly create a key with no expiration. + /// + /// + public Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequestDescriptor Expiration(Elastic.Clients.Elasticsearch.Duration? value) + { + Instance.Expiration = value; + return this; + } + + /// + /// + /// Arbitrary metadata to associate with the cloned API key. + /// It supports nested data structure. + /// Within the metadata object, keys beginning with _ are reserved for system usage. + /// + /// + public Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequestDescriptor Metadata(System.Collections.Generic.IDictionary? value) + { + Instance.Metadata = value; + return this; + } + + /// + /// + /// Arbitrary metadata to associate with the cloned API key. + /// It supports nested data structure. + /// Within the metadata object, keys beginning with _ are reserved for system usage. + /// + /// + public Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequestDescriptor Metadata() + { + Instance.Metadata = Elastic.Clients.Elasticsearch.Fluent.FluentDictionaryOfStringObject.Build(null); + return this; + } + + /// + /// + /// Arbitrary metadata to associate with the cloned API key. + /// It supports nested data structure. + /// Within the metadata object, keys beginning with _ are reserved for system usage. + /// + /// + public Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequestDescriptor Metadata(System.Action? action) + { + Instance.Metadata = Elastic.Clients.Elasticsearch.Fluent.FluentDictionaryOfStringObject.Build(action); + return this; + } + + public Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequestDescriptor AddMetadatum(string key, object value) + { + Instance.Metadata ??= new System.Collections.Generic.Dictionary(); + Instance.Metadata.Add(key, value); + return this; + } + + /// + /// + /// A name for the cloned API key. + /// If not provided, the name of the source key is used. + /// + /// + public Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name? value) + { + Instance.Name = value; + return this; + } + + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + internal static Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequest Build(System.Action action) + { + var builder = new Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequestDescriptor(new Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)); + action.Invoke(builder); + return builder.Instance; + } + + public Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequestDescriptor ErrorTrace(bool? value) + { + Instance.ErrorTrace = value; + return this; + } + + [System.Diagnostics.CodeAnalysis.Experimental("ESEXP0001", UrlFormat = "https://www.elastic.co/docs/reference/elasticsearch/clients/dotnet/experimental#{0}" +#if NET10_0_OR_GREATER + , Message = "Use of response filtering can result in a response from Elasticsearch that cannot be correctly deserialized to the respective response type for the request." +#endif + )] + public Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequestDescriptor FilterPath(params string[]? value) + { + Instance.FilterPath = value; + return this; + } + + public Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequestDescriptor Human(bool? value) + { + Instance.Human = value; + return this; + } + + public Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequestDescriptor Pretty(bool? value) + { + Instance.Pretty = value; + return this; + } + + public Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequestDescriptor SourceQueryString(string? value) + { + Instance.SourceQueryString = value; + return this; + } + + public Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequestDescriptor RequestConfiguration(Elastic.Transport.IRequestConfiguration? value) + { + Instance.RequestConfiguration = value; + return this; + } + + public Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequestDescriptor RequestConfiguration(System.Func? configurationSelector) + { + Instance.RequestConfiguration = configurationSelector.Invoke(Instance.RequestConfiguration is null ? new Elastic.Transport.RequestConfigurationDescriptor() : new Elastic.Transport.RequestConfigurationDescriptor(Instance.RequestConfiguration)) ?? Instance.RequestConfiguration; + return this; + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CloneApiKeyResponse.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CloneApiKeyResponse.Converters.g.cs new file mode 100644 index 00000000000..085ab87cd5c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CloneApiKeyResponse.Converters.g.cs @@ -0,0 +1,99 @@ +// 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 System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security.Json; + +public sealed partial class CloneApiKeyResponseConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropApiKey = System.Text.Json.JsonEncodedText.Encode("api_key"u8); + private static readonly System.Text.Json.JsonEncodedText PropEncoded = System.Text.Json.JsonEncodedText.Encode("encoded"u8); + private static readonly System.Text.Json.JsonEncodedText PropExpiration = System.Text.Json.JsonEncodedText.Encode("expiration"u8); + private static readonly System.Text.Json.JsonEncodedText PropId = System.Text.Json.JsonEncodedText.Encode("id"u8); + private static readonly System.Text.Json.JsonEncodedText PropName = System.Text.Json.JsonEncodedText.Encode("name"u8); + + public override Elastic.Clients.Elasticsearch.Security.CloneApiKeyResponse Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propApiKey = default; + LocalJsonValue propEncoded = default; + LocalJsonValue propExpiration = default; + LocalJsonValue propId = default; + LocalJsonValue propName = default; + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (propApiKey.TryReadProperty(ref reader, options, PropApiKey, null)) + { + continue; + } + + if (propEncoded.TryReadProperty(ref reader, options, PropEncoded, null)) + { + continue; + } + + if (propExpiration.TryReadProperty(ref reader, options, PropExpiration, static long? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + + if (propId.TryReadProperty(ref reader, options, PropId, null)) + { + continue; + } + + if (propName.TryReadProperty(ref reader, options, PropName, null)) + { + continue; + } + + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) + { + reader.SafeSkip(); + continue; + } + + throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'."); + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.Security.CloneApiKeyResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + ApiKey = propApiKey.Value, + Encoded = propEncoded.Value, + Expiration = propExpiration.Value, + Id = propId.Value, + Name = propName.Value + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Security.CloneApiKeyResponse value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteProperty(options, PropApiKey, value.ApiKey, null, null); + writer.WriteProperty(options, PropEncoded, value.Encoded, null, null); + writer.WriteProperty(options, PropExpiration, value.Expiration, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropId, value.Id, null, null); + writer.WriteProperty(options, PropName, value.Name, null, null); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryGetResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CloneApiKeyResponse.g.cs similarity index 52% rename from src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryGetResponse.g.cs rename to src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CloneApiKeyResponse.g.cs index 1aba03b5bca..7e7d57f38ad 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryGetResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Security/CloneApiKeyResponse.g.cs @@ -21,18 +21,56 @@ using System.Linq; using Elastic.Clients.Elasticsearch.Serialization; -namespace Elastic.Clients.Elasticsearch.Esql; +namespace Elastic.Clients.Elasticsearch.Security; -public sealed partial class AsyncQueryGetResponse : Elastic.Transport.Products.Elasticsearch.ElasticsearchResponse +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.CloneApiKeyResponseConverter))] +public sealed partial class CloneApiKeyResponse : Elastic.Transport.Products.Elasticsearch.ElasticsearchResponse { [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public AsyncQueryGetResponse() + public CloneApiKeyResponse() { } [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - internal AsyncQueryGetResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + internal CloneApiKeyResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) { _ = sentinel; } + + /// + /// + /// The generated API key value for the cloned key. + /// + /// + public required string ApiKey { get; set; } + + /// + /// + /// API key credentials which is the base64-encoding of + /// the UTF-8 representation of id and api_key joined + /// by a colon (:). + /// + /// + public required string Encoded { get; set; } + + /// + /// + /// Expiration in milliseconds for the API key. + /// + /// + public long? Expiration { get; set; } + + /// + /// + /// The unique ID of the cloned API key. + /// + /// + public required string Id { get; set; } + + /// + /// + /// The name of the cloned API key. + /// + /// + public required string Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryAnalyzeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryAnalyzeRequest.g.cs index da6939ef27f..485fdde12dc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryAnalyzeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Snapshot/RepositoryAnalyzeRequest.g.cs @@ -161,6 +161,12 @@ public sealed partial class RepositoryAnalyzeRequestParameters : Elastic.Transpo /// You will need to work with the supplier of your storage system to address the incompatibilities that Elasticsearch detects. /// /// +/// The analysis may also report a failure if your repository experienced a service disruption while the analysis was running. +/// In practice, occasional service disruptions are inevitable, but the analysis cannot itself distinguish such disruptions from incorrect behavior so must report all deviations from the expected behavior as failures. +/// If you are certain that you can ascribe an analysis failure to such a service disruption, wait for your service provider to resolve the disruption and then re-run the analysis. +/// Elasticsearch will be unable to create or restore snapshots during repository service disruptions, so you must ensure that these events occur only very rarely. +/// +/// /// If the analysis is successful, the API returns details of the testing process, optionally including how long each operation took. /// You can use this information to determine the performance of your storage system. /// If any operation fails or returns an incorrect result, the API returns an error. @@ -436,6 +442,12 @@ internal RepositoryAnalyzeRequest(Elastic.Clients.Elasticsearch.Serialization.Js /// You will need to work with the supplier of your storage system to address the incompatibilities that Elasticsearch detects. /// /// +/// The analysis may also report a failure if your repository experienced a service disruption while the analysis was running. +/// In practice, occasional service disruptions are inevitable, but the analysis cannot itself distinguish such disruptions from incorrect behavior so must report all deviations from the expected behavior as failures. +/// If you are certain that you can ascribe an analysis failure to such a service disruption, wait for your service provider to resolve the disruption and then re-run the analysis. +/// Elasticsearch will be unable to create or restore snapshots during repository service disruptions, so you must ensure that these events occur only very rarely. +/// +/// /// If the analysis is successful, the API returns details of the testing process, optionally including how long each operation took. /// You can use this information to determine the performance of your storage system. /// If any operation fails or returns an incorrect result, the API returns an error. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksRequest.g.cs index f3f72c14042..3614174d061 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksRequest.g.cs @@ -25,6 +25,13 @@ namespace Elastic.Clients.Elasticsearch.Tasks; public sealed partial class GetTasksRequestParameters : Elastic.Transport.RequestParameters { + /// + /// + /// Internal use only + /// + /// + public bool? FollowRelocations { get => Q("follow_relocations"); set => Q("follow_relocations", value); } + /// /// /// The period to wait for a response. @@ -89,6 +96,13 @@ internal GetTasksRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// public required Elastic.Clients.Elasticsearch.Id TaskId { get => P("task_id"); set => PR("task_id", value); } + /// + /// + /// Internal use only + /// + /// + public bool? FollowRelocations { get => Q("follow_relocations"); set => Q("follow_relocations", value); } + /// /// /// The period to wait for a response. @@ -155,6 +169,17 @@ public Elastic.Clients.Elasticsearch.Tasks.GetTasksRequestDescriptor TaskId(Elas return this; } + /// + /// + /// Internal use only + /// + /// + public Elastic.Clients.Elasticsearch.Tasks.GetTasksRequestDescriptor FollowRelocations(bool? value = true) + { + Instance.FollowRelocations = value; + return this; + } + /// /// /// The period to wait for a response. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ScheduleNowTransformRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ScheduleNowTransformRequest.g.cs index 153db4c519a..24f9b1fdf7e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ScheduleNowTransformRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TransformManagement/ScheduleNowTransformRequest.g.cs @@ -25,6 +25,15 @@ namespace Elastic.Clients.Elasticsearch.TransformManagement; public sealed partial class ScheduleNowTransformRequestParameters : Elastic.Transport.RequestParameters { + /// + /// + /// When true, defers the scheduling by the transform's configured sync delay + /// instead of triggering immediately. The transform will process new data after + /// the delay elapses rather than right away. + /// + /// + public bool? Defer { get => Q("defer"); set => Q("defer", value); } + /// /// /// Controls the time to wait for the scheduling to take place @@ -78,6 +87,15 @@ internal ScheduleNowTransformRequest(Elastic.Clients.Elasticsearch.Serialization /// public required Elastic.Clients.Elasticsearch.Id TransformId { get => P("transform_id"); set => PR("transform_id", value); } + /// + /// + /// When true, defers the scheduling by the transform's configured sync delay + /// instead of triggering immediately. The transform will process new data after + /// the delay elapses rather than right away. + /// + /// + public bool? Defer { get => Q("defer"); set => Q("defer", value); } + /// /// /// Controls the time to wait for the scheduling to take place @@ -133,6 +151,19 @@ public Elastic.Clients.Elasticsearch.TransformManagement.ScheduleNowTransformReq return this; } + /// + /// + /// When true, defers the scheduling by the transform's configured sync delay + /// instead of triggering immediately. The transform will process new data after + /// the delay elapses rather than right away. + /// + /// + public Elastic.Clients.Elasticsearch.TransformManagement.ScheduleNowTransformRequestDescriptor Defer(bool? value = true) + { + Instance.Defer = value; + return this; + } + /// /// /// Controls the time to wait for the scheduling to take place diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs index e88ad2e360a..00de3a2879b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs @@ -27,9 +27,12 @@ public sealed partial class UpdateByQueryRequestParameters : Elastic.Transport.R { /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -84,7 +87,9 @@ public sealed partial class UpdateByQueryRequestParameters : Elastic.Transport.R /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -467,9 +472,12 @@ internal UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } @@ -524,7 +532,9 @@ internal UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonCo /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -944,9 +954,12 @@ public Elastic.Clients.Elasticsearch.UpdateByQueryRequestDescriptor Indices(Elas /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.UpdateByQueryRequestDescriptor AllowNoIndices(bool? value = true) @@ -1042,7 +1055,9 @@ public Elastic.Clients.Elasticsearch.UpdateByQueryRequestDescriptor From(long? v /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.UpdateByQueryRequestDescriptor IgnoreUnavailable(bool? value = true) @@ -1723,9 +1738,12 @@ public Elastic.Clients.Elasticsearch.UpdateByQueryRequestDescriptor I /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. - /// This behavior applies even if the request targets other open indices. - /// For example, a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.UpdateByQueryRequestDescriptor AllowNoIndices(bool? value = true) @@ -1821,7 +1839,9 @@ public Elastic.Clients.Elasticsearch.UpdateByQueryRequestDescriptor F /// /// - /// If false, the request returns an error if it targets a missing or closed index. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.UpdateByQueryRequestDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Esql.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Esql.g.cs index b01738590c5..2961135b9b9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Esql.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Esql.g.cs @@ -38,52 +38,52 @@ internal EsqlNamespacedClient(Elastic.Clients.Elasticsearch.ElasticsearchClient { } - public virtual Elastic.Clients.Elasticsearch.Esql.AsyncQueryResponse AsyncQuery(Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequest request) + public virtual Elastic.Transport.Products.Elasticsearch.ElasticsearchStreamResponse AsyncQuery(Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Esql.AsyncQueryResponse AsyncQuery(System.Action action) + public virtual Elastic.Transport.Products.Elasticsearch.ElasticsearchStreamResponse AsyncQuery(System.Action action) { var builder = new Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor(); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Esql.AsyncQueryResponse AsyncQuery(System.Action> action) + public virtual Elastic.Transport.Products.Elasticsearch.ElasticsearchStreamResponse AsyncQuery(System.Action> action) { var builder = new Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor(); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } - public virtual System.Threading.Tasks.Task AsyncQueryAsync(Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequest request, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task AsyncQueryAsync(Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequest request, System.Threading.CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task AsyncQueryAsync(System.Action action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task AsyncQueryAsync(System.Action action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor(); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task AsyncQueryAsync(System.Action> action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task AsyncQueryAsync(System.Action> action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor(); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } public virtual Elastic.Clients.Elasticsearch.Esql.AsyncQueryDeleteResponse AsyncQueryDelete(Elastic.Clients.Elasticsearch.Esql.AsyncQueryDeleteRequest request) @@ -132,96 +132,96 @@ public virtual Elastic.Clients.Elasticsearch.Esql.AsyncQueryDeleteResponse Async return DoRequestAsync(request, cancellationToken); } - public virtual Elastic.Clients.Elasticsearch.Esql.AsyncQueryGetResponse AsyncQueryGet(Elastic.Clients.Elasticsearch.Esql.AsyncQueryGetRequest request) + public virtual Elastic.Transport.Products.Elasticsearch.ElasticsearchStreamResponse AsyncQueryGet(Elastic.Clients.Elasticsearch.Esql.AsyncQueryGetRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Esql.AsyncQueryGetResponse AsyncQueryGet(Elastic.Clients.Elasticsearch.Id id) + public virtual Elastic.Transport.Products.Elasticsearch.ElasticsearchStreamResponse AsyncQueryGet(Elastic.Clients.Elasticsearch.Id id) { var builder = new Elastic.Clients.Elasticsearch.Esql.AsyncQueryGetRequestDescriptor(id); var request = builder.Instance; request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Esql.AsyncQueryGetResponse AsyncQueryGet(Elastic.Clients.Elasticsearch.Id id, System.Action action) + public virtual Elastic.Transport.Products.Elasticsearch.ElasticsearchStreamResponse AsyncQueryGet(Elastic.Clients.Elasticsearch.Id id, System.Action action) { var builder = new Elastic.Clients.Elasticsearch.Esql.AsyncQueryGetRequestDescriptor(id); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } - public virtual System.Threading.Tasks.Task AsyncQueryGetAsync(Elastic.Clients.Elasticsearch.Esql.AsyncQueryGetRequest request, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task AsyncQueryGetAsync(Elastic.Clients.Elasticsearch.Esql.AsyncQueryGetRequest request, System.Threading.CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task AsyncQueryGetAsync(Elastic.Clients.Elasticsearch.Id id, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task AsyncQueryGetAsync(Elastic.Clients.Elasticsearch.Id id, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Esql.AsyncQueryGetRequestDescriptor(id); var request = builder.Instance; request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task AsyncQueryGetAsync(Elastic.Clients.Elasticsearch.Id id, System.Action action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task AsyncQueryGetAsync(Elastic.Clients.Elasticsearch.Id id, System.Action action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Esql.AsyncQueryGetRequestDescriptor(id); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } - public virtual Elastic.Clients.Elasticsearch.Esql.AsyncQueryStopResponse AsyncQueryStop(Elastic.Clients.Elasticsearch.Esql.AsyncQueryStopRequest request) + public virtual Elastic.Transport.Products.Elasticsearch.ElasticsearchStreamResponse AsyncQueryStop(Elastic.Clients.Elasticsearch.Esql.AsyncQueryStopRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Esql.AsyncQueryStopResponse AsyncQueryStop(Elastic.Clients.Elasticsearch.Id id) + public virtual Elastic.Transport.Products.Elasticsearch.ElasticsearchStreamResponse AsyncQueryStop(Elastic.Clients.Elasticsearch.Id id) { var builder = new Elastic.Clients.Elasticsearch.Esql.AsyncQueryStopRequestDescriptor(id); var request = builder.Instance; request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Esql.AsyncQueryStopResponse AsyncQueryStop(Elastic.Clients.Elasticsearch.Id id, System.Action action) + public virtual Elastic.Transport.Products.Elasticsearch.ElasticsearchStreamResponse AsyncQueryStop(Elastic.Clients.Elasticsearch.Id id, System.Action action) { var builder = new Elastic.Clients.Elasticsearch.Esql.AsyncQueryStopRequestDescriptor(id); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } - public virtual System.Threading.Tasks.Task AsyncQueryStopAsync(Elastic.Clients.Elasticsearch.Esql.AsyncQueryStopRequest request, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task AsyncQueryStopAsync(Elastic.Clients.Elasticsearch.Esql.AsyncQueryStopRequest request, System.Threading.CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task AsyncQueryStopAsync(Elastic.Clients.Elasticsearch.Id id, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task AsyncQueryStopAsync(Elastic.Clients.Elasticsearch.Id id, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Esql.AsyncQueryStopRequestDescriptor(id); var request = builder.Instance; request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task AsyncQueryStopAsync(Elastic.Clients.Elasticsearch.Id id, System.Action action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task AsyncQueryStopAsync(Elastic.Clients.Elasticsearch.Id id, System.Action action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Esql.AsyncQueryStopRequestDescriptor(id); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } public virtual Elastic.Clients.Elasticsearch.Esql.DeleteViewResponse DeleteView(Elastic.Clients.Elasticsearch.Esql.DeleteViewRequest request) @@ -488,51 +488,51 @@ public virtual Elastic.Clients.Elasticsearch.Esql.PutViewResponse PutView(Elasti return DoRequestAsync(request, cancellationToken); } - public virtual Elastic.Clients.Elasticsearch.Esql.EsqlQueryResponse Query(Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequest request) + public virtual Elastic.Transport.Products.Elasticsearch.ElasticsearchStreamResponse Query(Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Esql.EsqlQueryResponse Query(System.Action action) + public virtual Elastic.Transport.Products.Elasticsearch.ElasticsearchStreamResponse Query(System.Action action) { var builder = new Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequestDescriptor(); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Esql.EsqlQueryResponse Query(System.Action> action) + public virtual Elastic.Transport.Products.Elasticsearch.ElasticsearchStreamResponse Query(System.Action> action) { var builder = new Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequestDescriptor(); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } - public virtual System.Threading.Tasks.Task QueryAsync(Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequest request, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task QueryAsync(Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequest request, System.Threading.CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task QueryAsync(System.Action action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task QueryAsync(System.Action action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequestDescriptor(); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task QueryAsync(System.Action> action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task QueryAsync(System.Action> action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequestDescriptor(); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs index e1eb983f7c0..61138a562c6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs @@ -38,50 +38,50 @@ internal InferenceNamespacedClient(Elastic.Clients.Elasticsearch.ElasticsearchCl { } - public virtual Elastic.Clients.Elasticsearch.Inference.ChatCompletionUnifiedResponse ChatCompletionUnified(Elastic.Clients.Elasticsearch.Inference.ChatCompletionUnifiedRequest request) + public virtual Elastic.Transport.Products.Elasticsearch.ElasticsearchStreamResponse ChatCompletionUnified(Elastic.Clients.Elasticsearch.Inference.ChatCompletionUnifiedRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Inference.ChatCompletionUnifiedResponse ChatCompletionUnified(Elastic.Clients.Elasticsearch.Id inferenceId) + public virtual Elastic.Transport.Products.Elasticsearch.ElasticsearchStreamResponse ChatCompletionUnified(Elastic.Clients.Elasticsearch.Id inferenceId) { var builder = new Elastic.Clients.Elasticsearch.Inference.ChatCompletionUnifiedRequestDescriptor(inferenceId); var request = builder.Instance; request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Inference.ChatCompletionUnifiedResponse ChatCompletionUnified(Elastic.Clients.Elasticsearch.Id inferenceId, System.Action action) + public virtual Elastic.Transport.Products.Elasticsearch.ElasticsearchStreamResponse ChatCompletionUnified(Elastic.Clients.Elasticsearch.Id inferenceId, System.Action action) { var builder = new Elastic.Clients.Elasticsearch.Inference.ChatCompletionUnifiedRequestDescriptor(inferenceId); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } - public virtual System.Threading.Tasks.Task ChatCompletionUnifiedAsync(Elastic.Clients.Elasticsearch.Inference.ChatCompletionUnifiedRequest request, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task ChatCompletionUnifiedAsync(Elastic.Clients.Elasticsearch.Inference.ChatCompletionUnifiedRequest request, System.Threading.CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task ChatCompletionUnifiedAsync(Elastic.Clients.Elasticsearch.Id inferenceId, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task ChatCompletionUnifiedAsync(Elastic.Clients.Elasticsearch.Id inferenceId, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Inference.ChatCompletionUnifiedRequestDescriptor(inferenceId); var request = builder.Instance; request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task ChatCompletionUnifiedAsync(Elastic.Clients.Elasticsearch.Id inferenceId, System.Action action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task ChatCompletionUnifiedAsync(Elastic.Clients.Elasticsearch.Id inferenceId, System.Action action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Inference.ChatCompletionUnifiedRequestDescriptor(inferenceId); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } public virtual Elastic.Clients.Elasticsearch.Inference.CompletionResponse Completion(Elastic.Clients.Elasticsearch.Inference.CompletionRequest request) @@ -1856,50 +1856,50 @@ public virtual Elastic.Clients.Elasticsearch.Inference.SparseEmbeddingResponse S return DoRequestAsync(request, cancellationToken); } - public virtual Elastic.Clients.Elasticsearch.Inference.StreamCompletionResponse StreamCompletion(Elastic.Clients.Elasticsearch.Inference.StreamCompletionRequest request) + public virtual Elastic.Transport.Products.Elasticsearch.ElasticsearchStreamResponse StreamCompletion(Elastic.Clients.Elasticsearch.Inference.StreamCompletionRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Inference.StreamCompletionResponse StreamCompletion(Elastic.Clients.Elasticsearch.Id inferenceId) + public virtual Elastic.Transport.Products.Elasticsearch.ElasticsearchStreamResponse StreamCompletion(Elastic.Clients.Elasticsearch.Id inferenceId) { var builder = new Elastic.Clients.Elasticsearch.Inference.StreamCompletionRequestDescriptor(inferenceId); var request = builder.Instance; request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.Inference.StreamCompletionResponse StreamCompletion(Elastic.Clients.Elasticsearch.Id inferenceId, System.Action action) + public virtual Elastic.Transport.Products.Elasticsearch.ElasticsearchStreamResponse StreamCompletion(Elastic.Clients.Elasticsearch.Id inferenceId, System.Action action) { var builder = new Elastic.Clients.Elasticsearch.Inference.StreamCompletionRequestDescriptor(inferenceId); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } - public virtual System.Threading.Tasks.Task StreamCompletionAsync(Elastic.Clients.Elasticsearch.Inference.StreamCompletionRequest request, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task StreamCompletionAsync(Elastic.Clients.Elasticsearch.Inference.StreamCompletionRequest request, System.Threading.CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task StreamCompletionAsync(Elastic.Clients.Elasticsearch.Id inferenceId, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task StreamCompletionAsync(Elastic.Clients.Elasticsearch.Id inferenceId, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Inference.StreamCompletionRequestDescriptor(inferenceId); var request = builder.Instance; request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task StreamCompletionAsync(Elastic.Clients.Elasticsearch.Id inferenceId, System.Action action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task StreamCompletionAsync(Elastic.Clients.Elasticsearch.Id inferenceId, System.Action action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.Inference.StreamCompletionRequestDescriptor(inferenceId); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } public virtual Elastic.Clients.Elasticsearch.Inference.TextEmbeddingResponse TextEmbedding(Elastic.Clients.Elasticsearch.Inference.TextEmbeddingRequest request) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Security.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Security.g.cs index 0dbb692e7a0..b5d19637849 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Security.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Security.g.cs @@ -550,6 +550,36 @@ public virtual Elastic.Clients.Elasticsearch.Security.ClearCachedServiceTokensRe return DoRequestAsync(request, cancellationToken); } + public virtual Elastic.Clients.Elasticsearch.Security.CloneApiKeyResponse CloneApiKey(Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.Security.CloneApiKeyResponse CloneApiKey(System.Action action) + { + var builder = new Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequestDescriptor(); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual System.Threading.Tasks.Task CloneApiKeyAsync(Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequest request, System.Threading.CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task CloneApiKeyAsync(System.Action action, System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.Security.CloneApiKeyRequestDescriptor(); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + public virtual Elastic.Clients.Elasticsearch.Security.CreateApiKeyResponse CreateApiKey(Elastic.Clients.Elasticsearch.Security.CreateApiKeyRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs index 0cb9585b763..fe21cadfa9c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs @@ -226,6 +226,52 @@ public virtual Elastic.Clients.Elasticsearch.BulkResponse Bulk(Elasti return DoRequestAsync(request, cancellationToken); } + public virtual Elastic.Clients.Elasticsearch.CancelReindexResponse CancelReindex(Elastic.Clients.Elasticsearch.CancelReindexRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.CancelReindexResponse CancelReindex(Elastic.Clients.Elasticsearch.TaskId taskId) + { + var builder = new Elastic.Clients.Elasticsearch.CancelReindexRequestDescriptor(taskId); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.CancelReindexResponse CancelReindex(Elastic.Clients.Elasticsearch.TaskId taskId, System.Action action) + { + var builder = new Elastic.Clients.Elasticsearch.CancelReindexRequestDescriptor(taskId); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual System.Threading.Tasks.Task CancelReindexAsync(Elastic.Clients.Elasticsearch.CancelReindexRequest request, System.Threading.CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task CancelReindexAsync(Elastic.Clients.Elasticsearch.TaskId taskId, System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.CancelReindexRequestDescriptor(taskId); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task CancelReindexAsync(Elastic.Clients.Elasticsearch.TaskId taskId, System.Action action, System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.CancelReindexRequestDescriptor(taskId); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + public virtual Elastic.Clients.Elasticsearch.CapabilitiesResponse Capabilities(Elastic.Clients.Elasticsearch.CapabilitiesRequest request) { request.BeforeRequest(); @@ -2084,6 +2130,52 @@ public virtual Elastic.Clients.Elasticsearch.GetResponse Get< return DoRequestAsync, Elastic.Clients.Elasticsearch.GetRequestParameters>(request, cancellationToken); } + public virtual Elastic.Clients.Elasticsearch.GetReindexResponse GetReindex(Elastic.Clients.Elasticsearch.GetReindexRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.GetReindexResponse GetReindex(Elastic.Clients.Elasticsearch.TaskId taskId) + { + var builder = new Elastic.Clients.Elasticsearch.GetReindexRequestDescriptor(taskId); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.GetReindexResponse GetReindex(Elastic.Clients.Elasticsearch.TaskId taskId, System.Action action) + { + var builder = new Elastic.Clients.Elasticsearch.GetReindexRequestDescriptor(taskId); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual System.Threading.Tasks.Task GetReindexAsync(Elastic.Clients.Elasticsearch.GetReindexRequest request, System.Threading.CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task GetReindexAsync(Elastic.Clients.Elasticsearch.TaskId taskId, System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.GetReindexRequestDescriptor(taskId); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task GetReindexAsync(Elastic.Clients.Elasticsearch.TaskId taskId, System.Action action, System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.GetReindexRequestDescriptor(taskId); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + public virtual Elastic.Clients.Elasticsearch.GetScriptResponse GetScript(Elastic.Clients.Elasticsearch.GetScriptRequest request) { request.BeforeRequest(); @@ -2746,6 +2838,52 @@ public virtual Elastic.Clients.Elasticsearch.InfoResponse Info(System.Action(request, cancellationToken); } + public virtual Elastic.Clients.Elasticsearch.ListReindexResponse ListReindex(Elastic.Clients.Elasticsearch.ListReindexRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.ListReindexResponse ListReindex() + { + var builder = new Elastic.Clients.Elasticsearch.ListReindexRequestDescriptor(); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual Elastic.Clients.Elasticsearch.ListReindexResponse ListReindex(System.Action action) + { + var builder = new Elastic.Clients.Elasticsearch.ListReindexRequestDescriptor(); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequest(request); + } + + public virtual System.Threading.Tasks.Task ListReindexAsync(Elastic.Clients.Elasticsearch.ListReindexRequest request, System.Threading.CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task ListReindexAsync(System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.ListReindexRequestDescriptor(); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + public virtual System.Threading.Tasks.Task ListReindexAsync(System.Action action, System.Threading.CancellationToken cancellationToken = default) + { + var builder = new Elastic.Clients.Elasticsearch.ListReindexRequestDescriptor(); + action.Invoke(builder); + var request = builder.Instance; + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + public virtual Elastic.Clients.Elasticsearch.MultiTermVectorsResponse Mtermvectors(Elastic.Clients.Elasticsearch.MultiTermVectorsRequest request) { request.BeforeRequest(); @@ -3946,68 +4084,68 @@ public virtual Elastic.Clients.Elasticsearch.SearchResponse S return DoRequestAsync, Elastic.Clients.Elasticsearch.SearchRequestParameters>(request, cancellationToken); } - public virtual Elastic.Clients.Elasticsearch.SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsearch.SearchMvtRequest request) + public virtual Elastic.Transport.Products.Elasticsearch.ElasticsearchStreamResponse SearchMvt(Elastic.Clients.Elasticsearch.SearchMvtRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y) + public virtual Elastic.Transport.Products.Elasticsearch.ElasticsearchStreamResponse SearchMvt(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y) { var builder = new Elastic.Clients.Elasticsearch.SearchMvtRequestDescriptor(indices, field, zoom, x, y); var request = builder.Instance; request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, System.Action action) + public virtual Elastic.Transport.Products.Elasticsearch.ElasticsearchStreamResponse SearchMvt(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, System.Action action) { var builder = new Elastic.Clients.Elasticsearch.SearchMvtRequestDescriptor(indices, field, zoom, x, y); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } - public virtual Elastic.Clients.Elasticsearch.SearchMvtResponse SearchMvt(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, System.Action> action) + public virtual Elastic.Transport.Products.Elasticsearch.ElasticsearchStreamResponse SearchMvt(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, System.Action> action) { var builder = new Elastic.Clients.Elasticsearch.SearchMvtRequestDescriptor(indices, field, zoom, x, y); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } - public virtual System.Threading.Tasks.Task SearchMvtAsync(Elastic.Clients.Elasticsearch.SearchMvtRequest request, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task SearchMvtAsync(Elastic.Clients.Elasticsearch.SearchMvtRequest request, System.Threading.CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.SearchMvtRequestDescriptor(indices, field, zoom, x, y); var request = builder.Instance; request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, System.Action action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, System.Action action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.SearchMvtRequestDescriptor(indices, field, zoom, x, y); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } - public virtual System.Threading.Tasks.Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, System.Action> action, System.Threading.CancellationToken cancellationToken = default) + public virtual System.Threading.Tasks.Task SearchMvtAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Field field, int zoom, int x, int y, System.Action> action, System.Threading.CancellationToken cancellationToken = default) { var builder = new Elastic.Clients.Elasticsearch.SearchMvtRequestDescriptor(indices, field, zoom, x, y); action.Invoke(builder); var request = builder.Instance; request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } public virtual Elastic.Clients.Elasticsearch.SearchShardsResponse SearchShards(Elastic.Clients.Elasticsearch.SearchShardsRequest request) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FieldDateMath.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FieldDateMath.Converters.g.cs index dc1bc06371b..39b255d2f65 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FieldDateMath.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FieldDateMath.Converters.g.cs @@ -31,7 +31,7 @@ public override Elastic.Clients.Elasticsearch.Aggregations.FieldDateMath Read(re return selector(ref reader, options) switch { Elastic.Clients.Elasticsearch.UnionTag.T1 => new Elastic.Clients.Elasticsearch.Aggregations.FieldDateMath(reader.ReadValue(options, null)), - Elastic.Clients.Elasticsearch.UnionTag.T2 => new Elastic.Clients.Elasticsearch.Aggregations.FieldDateMath(reader.ReadValue(options, null)), + Elastic.Clients.Elasticsearch.UnionTag.T2 => new Elastic.Clients.Elasticsearch.Aggregations.FieldDateMath(reader.ReadValue(options, null)), _ => throw new System.InvalidOperationException($"Failed to select a union variant for type '{nameof(Elastic.Clients.Elasticsearch.Aggregations.FieldDateMath)}") }; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FieldDateMath.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FieldDateMath.g.cs index b0f87f382b2..f821fb6bb29 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FieldDateMath.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/FieldDateMath.g.cs @@ -30,18 +30,18 @@ namespace Elastic.Clients.Elasticsearch.Aggregations; /// /// [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Aggregations.Json.FieldDateMathConverter))] -public sealed partial class FieldDateMath : Elastic.Clients.Elasticsearch.Union +public sealed partial class FieldDateMath : Elastic.Clients.Elasticsearch.Union { public FieldDateMath(Elastic.Clients.Elasticsearch.DateMath value) : base(value) { } - public FieldDateMath(double value) : base(value) + public FieldDateMath(long value) : base(value) { } public static implicit operator Elastic.Clients.Elasticsearch.Aggregations.FieldDateMath(Elastic.Clients.Elasticsearch.DateMath value) => new Elastic.Clients.Elasticsearch.Aggregations.FieldDateMath(value); - public static implicit operator Elastic.Clients.Elasticsearch.Aggregations.FieldDateMath(double value) => new Elastic.Clients.Elasticsearch.Aggregations.FieldDateMath(value); + public static implicit operator Elastic.Clients.Elasticsearch.Aggregations.FieldDateMath(long value) => new Elastic.Clients.Elasticsearch.Aggregations.FieldDateMath(value); } public readonly partial struct FieldDateMathFactory @@ -51,7 +51,7 @@ public Elastic.Clients.Elasticsearch.Aggregations.FieldDateMath Expr(Elastic.Cli return new Elastic.Clients.Elasticsearch.Aggregations.FieldDateMath(value); } - public Elastic.Clients.Elasticsearch.Aggregations.FieldDateMath Value(double value) + public Elastic.Clients.Elasticsearch.Aggregations.FieldDateMath Value(long value) { return new Elastic.Clients.Elasticsearch.Aggregations.FieldDateMath(value); } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CommonStatsFlag.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CommonStatsFlag.g.cs index c5490176150..84e36842970 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/CommonStatsFlag.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/CommonStatsFlag.g.cs @@ -26,48 +26,163 @@ namespace Elastic.Clients.Elasticsearch; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.CommonStatsFlagConverter))] public enum CommonStatsFlag { + /// + /// + /// Return all statistics. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "_all")] All, + /// + /// + /// Bulk operations statistics. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "bulk")] Bulk, + /// + /// + /// Completion suggester statistics. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "completion")] Completion, + /// + /// + /// Total number of dense vectors indexed. Index refreshes can affect this statistic. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "dense_vector")] DenseVector, + /// + /// + /// Number of documents and deleted docs not yet merged out. Index refreshes can affect this statistic. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "docs")] Docs, + /// + /// + /// Fielddata statistics. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "fielddata")] Fielddata, + /// + /// + /// Flush statistics. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "flush")] Flush, + /// + /// + /// Get statistics, including missing stats. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "get")] Get, + /// + /// + /// Indexing statistics. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "indexing")] Indexing, + /// + /// + /// Mapping statistics, including the total count and estimated overhead. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "mappings")] Mappings, + /// + /// + /// Merge statistics. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "merge")] Merge, + /// + /// + /// Query cache statistics. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "query_cache")] QueryCache, + /// + /// + /// Recovery statistics. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "recovery")] Recovery, + /// + /// + /// Refresh statistics. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "refresh")] Refresh, + /// + /// + /// Shard request cache statistics. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "request_cache")] RequestCache, + /// + /// + /// Search statistics including suggest statistics. + /// You can include statistics for custom groups by adding an extra groups parameter + /// (search operations can be associated with one or more groups). + /// The groups parameter accepts a comma-separated list of group names. + /// Use _all to return statistics for all groups. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "search")] Search, + /// + /// + /// Memory use of all open segments. + /// If the include_segment_file_sizes parameter is true, this metric includes the aggregated disk usage of each Lucene index file. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "segments")] Segments, + /// + /// + /// Shard statistics, including the total number of shards. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "shard_stats")] ShardStats, + /// + /// + /// Total number of sparse vectors indexed. Index refreshes can affect this statistic. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "sparse_vector")] SparseVector, + /// + /// + /// Size of the index in byte units. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "store")] Store, + /// + /// + /// Translog statistics. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "translog")] Translog, + /// + /// + /// Index warming statistics. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "warmer")] Warmer } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultisearchHeader.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultisearchHeader.g.cs index 9b7c751b82c..27c4d1b2af2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultisearchHeader.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultisearchHeader.g.cs @@ -41,11 +41,29 @@ internal MultisearchHeader(Elastic.Clients.Elasticsearch.Serialization.JsonConst _ = sentinel; } + /// + /// + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. + /// + /// public bool? AllowNoIndices { get; set; } public bool? AllowPartialSearchResults { get; set; } public bool? CcsMinimizeRoundtrips { get; set; } public System.Collections.Generic.ICollection? ExpandWildcards { get; set; } public bool? IgnoreThrottled { get; set; } + + /// + /// + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. + /// + /// public bool? IgnoreUnavailable { get; set; } public Elastic.Clients.Elasticsearch.Indices? Indices { get; set; } public string? Preference { get; set; } @@ -79,6 +97,16 @@ public MultisearchHeaderDescriptor() public static explicit operator Elastic.Clients.Elasticsearch.Core.MSearch.MultisearchHeaderDescriptor(Elastic.Clients.Elasticsearch.Core.MSearch.MultisearchHeader instance) => new Elastic.Clients.Elasticsearch.Core.MSearch.MultisearchHeaderDescriptor(instance); public static implicit operator Elastic.Clients.Elasticsearch.Core.MSearch.MultisearchHeader(Elastic.Clients.Elasticsearch.Core.MSearch.MultisearchHeaderDescriptor descriptor) => descriptor.Instance; + /// + /// + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. + /// + /// public Elastic.Clients.Elasticsearch.Core.MSearch.MultisearchHeaderDescriptor AllowNoIndices(bool? value = true) { Instance.AllowNoIndices = value; @@ -115,6 +143,13 @@ public Elastic.Clients.Elasticsearch.Core.MSearch.MultisearchHeaderDescriptor Ig return this; } + /// + /// + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. + /// + /// public Elastic.Clients.Elasticsearch.Core.MSearch.MultisearchHeaderDescriptor IgnoreUnavailable(bool? value = true) { Instance.IgnoreUnavailable = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryStage.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryStage.Converters.g.cs new file mode 100644 index 00000000000..418616319ec --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryStage.Converters.g.cs @@ -0,0 +1,137 @@ +// 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 System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement.Json; + +public sealed partial class RecoveryStageConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText MemberDone = System.Text.Json.JsonEncodedText.Encode("DONE"u8); + private static readonly System.Text.Json.JsonEncodedText MemberFinalize = System.Text.Json.JsonEncodedText.Encode("FINALIZE"u8); + private static readonly System.Text.Json.JsonEncodedText MemberIndex = System.Text.Json.JsonEncodedText.Encode("INDEX"u8); + private static readonly System.Text.Json.JsonEncodedText MemberInit = System.Text.Json.JsonEncodedText.Encode("INIT"u8); + private static readonly System.Text.Json.JsonEncodedText MemberTranslog = System.Text.Json.JsonEncodedText.Encode("TRANSLOG"u8); + private static readonly System.Text.Json.JsonEncodedText MemberVerifyIndex = System.Text.Json.JsonEncodedText.Encode("VERIFY_INDEX"u8); + + public override Elastic.Clients.Elasticsearch.IndexManagement.RecoveryStage Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + if (reader.ValueTextEquals(MemberDone)) + { + return Elastic.Clients.Elasticsearch.IndexManagement.RecoveryStage.Done; + } + + if (reader.ValueTextEquals(MemberFinalize)) + { + return Elastic.Clients.Elasticsearch.IndexManagement.RecoveryStage.Finalize; + } + + if (reader.ValueTextEquals(MemberIndex)) + { + return Elastic.Clients.Elasticsearch.IndexManagement.RecoveryStage.Index; + } + + if (reader.ValueTextEquals(MemberInit)) + { + return Elastic.Clients.Elasticsearch.IndexManagement.RecoveryStage.Init; + } + + if (reader.ValueTextEquals(MemberTranslog)) + { + return Elastic.Clients.Elasticsearch.IndexManagement.RecoveryStage.Translog; + } + + if (reader.ValueTextEquals(MemberVerifyIndex)) + { + return Elastic.Clients.Elasticsearch.IndexManagement.RecoveryStage.VerifyIndex; + } + + var value = reader.GetString()!; + if (string.Equals(value, MemberDone.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.IndexManagement.RecoveryStage.Done; + } + + if (string.Equals(value, MemberFinalize.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.IndexManagement.RecoveryStage.Finalize; + } + + if (string.Equals(value, MemberIndex.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.IndexManagement.RecoveryStage.Index; + } + + if (string.Equals(value, MemberInit.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.IndexManagement.RecoveryStage.Init; + } + + if (string.Equals(value, MemberTranslog.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.IndexManagement.RecoveryStage.Translog; + } + + if (string.Equals(value, MemberVerifyIndex.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.IndexManagement.RecoveryStage.VerifyIndex; + } + + throw new System.Text.Json.JsonException($"Unknown member '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.IndexManagement.RecoveryStage)}'."); + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.IndexManagement.RecoveryStage value, System.Text.Json.JsonSerializerOptions options) + { + switch (value) + { + case Elastic.Clients.Elasticsearch.IndexManagement.RecoveryStage.Done: + writer.WriteStringValue(MemberDone); + break; + case Elastic.Clients.Elasticsearch.IndexManagement.RecoveryStage.Finalize: + writer.WriteStringValue(MemberFinalize); + break; + case Elastic.Clients.Elasticsearch.IndexManagement.RecoveryStage.Index: + writer.WriteStringValue(MemberIndex); + break; + case Elastic.Clients.Elasticsearch.IndexManagement.RecoveryStage.Init: + writer.WriteStringValue(MemberInit); + break; + case Elastic.Clients.Elasticsearch.IndexManagement.RecoveryStage.Translog: + writer.WriteStringValue(MemberTranslog); + break; + case Elastic.Clients.Elasticsearch.IndexManagement.RecoveryStage.VerifyIndex: + writer.WriteStringValue(MemberVerifyIndex); + break; + default: + throw new System.Text.Json.JsonException($"Invalid value '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.IndexManagement.RecoveryStage)}'."); + } + } + + public override Elastic.Clients.Elasticsearch.IndexManagement.RecoveryStage ReadAsPropertyName(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + return Read(ref reader, typeToConvert, options); + } + + public override void WriteAsPropertyName(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.IndexManagement.RecoveryStage value, System.Text.Json.JsonSerializerOptions options) + { + Write(writer, value, options); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryStage.g.cs similarity index 51% rename from src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryResponse.g.cs rename to src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryStage.g.cs index b94b8cdad48..20492d12b4f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryStage.g.cs @@ -21,18 +21,51 @@ using System.Linq; using Elastic.Clients.Elasticsearch.Serialization; -namespace Elastic.Clients.Elasticsearch.Esql; +namespace Elastic.Clients.Elasticsearch.IndexManagement; -public sealed partial class AsyncQueryResponse : Elastic.Transport.Products.Elasticsearch.ElasticsearchResponse +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.RecoveryStageConverter))] +public enum RecoveryStage { - [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public AsyncQueryResponse() - { - } - - [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - internal AsyncQueryResponse(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) - { - _ = sentinel; - } + /// + /// + /// Complete. + /// + /// + [System.Runtime.Serialization.EnumMember(Value = "DONE")] + Done, + /// + /// + /// Cleanup. + /// + /// + [System.Runtime.Serialization.EnumMember(Value = "FINALIZE")] + Finalize, + /// + /// + /// Reading index metadata and copying bytes from source to destination. + /// + /// + [System.Runtime.Serialization.EnumMember(Value = "INDEX")] + Index, + /// + /// + /// Recovery has not started. + /// + /// + [System.Runtime.Serialization.EnumMember(Value = "INIT")] + Init, + /// + /// + /// Replaying the transaction log. + /// + /// + [System.Runtime.Serialization.EnumMember(Value = "TRANSLOG")] + Translog, + /// + /// + /// Verifying the integrity of the index. + /// + /// + [System.Runtime.Serialization.EnumMember(Value = "VERIFY_INDEX")] + VerifyIndex } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryType.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryType.Converters.g.cs new file mode 100644 index 00000000000..7c286247c35 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryType.Converters.g.cs @@ -0,0 +1,123 @@ +// 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 System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement.Json; + +public sealed partial class RecoveryTypeConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText MemberEmptyStore = System.Text.Json.JsonEncodedText.Encode("EMPTY_STORE"u8); + private static readonly System.Text.Json.JsonEncodedText MemberExistingStore = System.Text.Json.JsonEncodedText.Encode("EXISTING_STORE"u8); + private static readonly System.Text.Json.JsonEncodedText MemberLocalShards = System.Text.Json.JsonEncodedText.Encode("LOCAL_SHARDS"u8); + private static readonly System.Text.Json.JsonEncodedText MemberPeer = System.Text.Json.JsonEncodedText.Encode("PEER"u8); + private static readonly System.Text.Json.JsonEncodedText MemberSnapshot = System.Text.Json.JsonEncodedText.Encode("SNAPSHOT"u8); + + public override Elastic.Clients.Elasticsearch.IndexManagement.RecoveryType Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + if (reader.ValueTextEquals(MemberEmptyStore)) + { + return Elastic.Clients.Elasticsearch.IndexManagement.RecoveryType.EmptyStore; + } + + if (reader.ValueTextEquals(MemberExistingStore)) + { + return Elastic.Clients.Elasticsearch.IndexManagement.RecoveryType.ExistingStore; + } + + if (reader.ValueTextEquals(MemberLocalShards)) + { + return Elastic.Clients.Elasticsearch.IndexManagement.RecoveryType.LocalShards; + } + + if (reader.ValueTextEquals(MemberPeer)) + { + return Elastic.Clients.Elasticsearch.IndexManagement.RecoveryType.Peer; + } + + if (reader.ValueTextEquals(MemberSnapshot)) + { + return Elastic.Clients.Elasticsearch.IndexManagement.RecoveryType.Snapshot; + } + + var value = reader.GetString()!; + if (string.Equals(value, MemberEmptyStore.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.IndexManagement.RecoveryType.EmptyStore; + } + + if (string.Equals(value, MemberExistingStore.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.IndexManagement.RecoveryType.ExistingStore; + } + + if (string.Equals(value, MemberLocalShards.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.IndexManagement.RecoveryType.LocalShards; + } + + if (string.Equals(value, MemberPeer.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.IndexManagement.RecoveryType.Peer; + } + + if (string.Equals(value, MemberSnapshot.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.IndexManagement.RecoveryType.Snapshot; + } + + throw new System.Text.Json.JsonException($"Unknown member '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.IndexManagement.RecoveryType)}'."); + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.IndexManagement.RecoveryType value, System.Text.Json.JsonSerializerOptions options) + { + switch (value) + { + case Elastic.Clients.Elasticsearch.IndexManagement.RecoveryType.EmptyStore: + writer.WriteStringValue(MemberEmptyStore); + break; + case Elastic.Clients.Elasticsearch.IndexManagement.RecoveryType.ExistingStore: + writer.WriteStringValue(MemberExistingStore); + break; + case Elastic.Clients.Elasticsearch.IndexManagement.RecoveryType.LocalShards: + writer.WriteStringValue(MemberLocalShards); + break; + case Elastic.Clients.Elasticsearch.IndexManagement.RecoveryType.Peer: + writer.WriteStringValue(MemberPeer); + break; + case Elastic.Clients.Elasticsearch.IndexManagement.RecoveryType.Snapshot: + writer.WriteStringValue(MemberSnapshot); + break; + default: + throw new System.Text.Json.JsonException($"Invalid value '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.IndexManagement.RecoveryType)}'."); + } + } + + public override Elastic.Clients.Elasticsearch.IndexManagement.RecoveryType ReadAsPropertyName(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + return Read(ref reader, typeToConvert, options); + } + + public override void WriteAsPropertyName(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.IndexManagement.RecoveryType value, System.Text.Json.JsonSerializerOptions options) + { + Write(writer, value, options); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryType.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryType.g.cs new file mode 100644 index 00000000000..045852927aa --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/RecoveryType.g.cs @@ -0,0 +1,64 @@ +// 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 System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.RecoveryTypeConverter))] +public enum RecoveryType +{ + /// + /// + /// An empty store. Indicates a new primary shard or the forced allocation of an empty primary shard using the cluster reroute API. + /// + /// + [System.Runtime.Serialization.EnumMember(Value = "EMPTY_STORE")] + EmptyStore, + /// + /// + /// The store of an existing primary shard. Indicates recovery is related to node startup or the allocation of an existing primary shard. + /// + /// + [System.Runtime.Serialization.EnumMember(Value = "EXISTING_STORE")] + ExistingStore, + /// + /// + /// Shards of another index on the same node. Indicates recovery is related to a clone, shrink, or split operation. + /// + /// + [System.Runtime.Serialization.EnumMember(Value = "LOCAL_SHARDS")] + LocalShards, + /// + /// + /// A primary shard on another node. Indicates recovery is related to shard replication. + /// + /// + [System.Runtime.Serialization.EnumMember(Value = "PEER")] + Peer, + /// + /// + /// A snapshot. Indicates recovery is related to a snapshot restore operation. + /// + /// + [System.Runtime.Serialization.EnumMember(Value = "SNAPSHOT")] + Snapshot +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Segment.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Segment.g.cs index c2cd30a2f18..7cc79ea1f62 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Segment.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/Segment.g.cs @@ -50,13 +50,73 @@ internal Segment(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSent _ = sentinel; } + /// + /// + /// Contains information about whether high compression was enabled and per-field vector formats. + /// + /// public required System.Collections.Generic.IReadOnlyDictionary Attributes { get; set; } + + /// + /// + /// If true, the segment is synced to disk. Segments that are synced can survive a hard reboot. + /// If false, the data from uncommitted segments is also stored in the transaction log so that Elasticsearch is able to replay changes on the next start. + /// + /// public required bool Committed { get; set; } + + /// + /// + /// If true, Lucene merged all files from the segment into a single file to save file descriptors. + /// + /// public required bool Compound { get; set; } + + /// + /// + /// The number of deleted documents as reported by Lucene, which may be higher or lower than the number of delete operations you have performed. + /// This number excludes deletes that were performed recently and do not yet belong to a segment. + /// Deleted documents are cleaned up by the automatic merge process if it makes sense to do so. + /// Also, Elasticsearch creates extra deleted documents to internally track the recent history of operations on a shard. + /// + /// public required long DeletedDocs { get; set; } + + /// + /// + /// Generation number, such as 0. Elasticsearch increments this generation number for each segment written then uses this number to derive the segment name. + /// + /// public required int Generation { get; set; } + + /// + /// + /// The number of documents as reported by Lucene. + /// This excludes deleted documents and counts any nested documents separately from their parents. + /// It also excludes documents which were indexed recently and do not yet belong to a segment. + /// + /// public required long NumDocs { get; set; } + + /// + /// + /// If true, the segment is searchable. + /// If false, the segment has most likely been written to disk but needs a refresh to be searchable. + /// + /// public required bool Search { get; set; } + + /// + /// + /// Disk space used by the segment, in bytes. + /// + /// public required double SizeInBytes { get; set; } + + /// + /// + /// Version of Lucene used to write the segment. + /// + /// public required string Version { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardRecovery.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardRecovery.Converters.g.cs index 150731a5c1c..be0a01177d3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardRecovery.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardRecovery.Converters.g.cs @@ -49,7 +49,7 @@ public override Elastic.Clients.Elasticsearch.IndexManagement.ShardRecovery Read LocalJsonValue propIndex = default; LocalJsonValue propPrimary = default; LocalJsonValue propSource = default; - LocalJsonValue propStage = default; + LocalJsonValue propStage = default; LocalJsonValue propStart = default; LocalJsonValue propStartTime = default; LocalJsonValue propStartTimeInMillis = default; @@ -59,7 +59,7 @@ public override Elastic.Clients.Elasticsearch.IndexManagement.ShardRecovery Read LocalJsonValue propTotalTime = default; LocalJsonValue propTotalTimeInMillis = default; LocalJsonValue propTranslog = default; - LocalJsonValue propType = default; + LocalJsonValue propType = default; LocalJsonValue propVerifyIndex = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardRecovery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardRecovery.g.cs index 058d90d19ce..c91f65305bc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardRecovery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardRecovery.g.cs @@ -27,7 +27,7 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; public sealed partial class ShardRecovery { [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public ShardRecovery(long id, Elastic.Clients.Elasticsearch.IndexManagement.RecoveryIndexStatus index, bool primary, Elastic.Clients.Elasticsearch.IndexManagement.RecoveryOrigin source, string stage, System.DateTimeOffset startTimeInMillis, Elastic.Clients.Elasticsearch.IndexManagement.RecoveryOrigin target, System.TimeSpan totalTimeInMillis, Elastic.Clients.Elasticsearch.IndexManagement.TranslogStatus translog, string type, Elastic.Clients.Elasticsearch.IndexManagement.VerifyIndex verifyIndex) + public ShardRecovery(long id, Elastic.Clients.Elasticsearch.IndexManagement.RecoveryIndexStatus index, bool primary, Elastic.Clients.Elasticsearch.IndexManagement.RecoveryOrigin source, Elastic.Clients.Elasticsearch.IndexManagement.RecoveryStage stage, System.DateTimeOffset startTimeInMillis, Elastic.Clients.Elasticsearch.IndexManagement.RecoveryOrigin target, System.TimeSpan totalTimeInMillis, Elastic.Clients.Elasticsearch.IndexManagement.TranslogStatus translog, Elastic.Clients.Elasticsearch.IndexManagement.RecoveryType type, Elastic.Clients.Elasticsearch.IndexManagement.VerifyIndex verifyIndex) { Id = id; Index = index; @@ -56,7 +56,13 @@ internal ShardRecovery(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct public required Elastic.Clients.Elasticsearch.IndexManagement.RecoveryIndexStatus Index { get; set; } public required bool Primary { get; set; } public required Elastic.Clients.Elasticsearch.IndexManagement.RecoveryOrigin Source { get; set; } - public required string Stage { get; set; } + + /// + /// + /// The recovery stage. + /// + /// + public required Elastic.Clients.Elasticsearch.IndexManagement.RecoveryStage Stage { get; set; } public Elastic.Clients.Elasticsearch.IndexManagement.RecoveryStartStatus? Start { get; set; } public System.DateTimeOffset? StartTime { get; set; } public required System.DateTimeOffset StartTimeInMillis { get; set; } @@ -66,6 +72,12 @@ internal ShardRecovery(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct public Elastic.Clients.Elasticsearch.Duration? TotalTime { get; set; } public required System.TimeSpan TotalTimeInMillis { get; set; } public required Elastic.Clients.Elasticsearch.IndexManagement.TranslogStatus Translog { get; set; } - public required string Type { get; set; } + + /// + /// + /// The recovery source type. + /// + /// + public required Elastic.Clients.Elasticsearch.IndexManagement.RecoveryType Type { get; set; } public required Elastic.Clients.Elasticsearch.IndexManagement.VerifyIndex VerifyIndex { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardSegmentRouting.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardSegmentRouting.g.cs index 8245b4b622b..39d43d121be 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardSegmentRouting.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardSegmentRouting.g.cs @@ -44,7 +44,24 @@ internal ShardSegmentRouting(Elastic.Clients.Elasticsearch.Serialization.JsonCon _ = sentinel; } + /// + /// + /// The node ID of the node that holds the shard. + /// + /// public required string Node { get; set; } + + /// + /// + /// If true, the shard is a primary shard. + /// + /// public required bool Primary { get; set; } + + /// + /// + /// The state of the shard, such as STARTED or RELOCATING. + /// + /// public required string State { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStore.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStore.g.cs index 14cd1655fb2..9d0515878be 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStore.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStore.g.cs @@ -44,9 +44,26 @@ internal ShardStore(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorS _ = sentinel; } + /// + /// + /// The status of the store copy, whether it is used as a primary, replica, or not used at all. + /// + /// public required Elastic.Clients.Elasticsearch.IndexManagement.ShardStoreAllocation Allocation { get; set; } + + /// + /// + /// The allocation ID of the store copy. + /// + /// public string? AllocationId { get; set; } public required Elastic.Clients.Elasticsearch.IndexManagement.ShardStoreNode Node { get; set; } public required string NodeId { get; set; } + + /// + /// + /// Any exception encountered while opening the shard index or from an earlier engine failure. + /// + /// public Elastic.Clients.Elasticsearch.IndexManagement.ShardStoreException? StoreException { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStoreAllocation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStoreAllocation.g.cs index fc7c7f3f8dc..c4630c00ca0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStoreAllocation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/ShardStoreAllocation.g.cs @@ -26,10 +26,25 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Json.ShardStoreAllocationConverter))] public enum ShardStoreAllocation { + /// + /// + /// The store copy is used as a primary shard. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "primary")] Primary, + /// + /// + /// The store copy is used as a replica shard. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "replica")] Replica, + /// + /// + /// The store copy is not used. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "unused")] Unused } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndicesOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndicesOptions.g.cs index 54fa8c2d875..c0414bfd386 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndicesOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndicesOptions.g.cs @@ -44,9 +44,12 @@ internal IndicesOptions(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only - /// missing or closed indices. This behavior applies even if the request targets other open indices. For example, - /// a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public bool? AllowNoIndices { get; set; } @@ -69,7 +72,9 @@ internal IndicesOptions(Elastic.Clients.Elasticsearch.Serialization.JsonConstruc /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public bool? IgnoreUnavailable { get; set; } @@ -102,9 +107,12 @@ public IndicesOptionsDescriptor() /// /// - /// If false, the request returns an error if any wildcard expression, index alias, or _all value targets only - /// missing or closed indices. This behavior applies even if the request targets other open indices. For example, - /// a request targeting foo*,bar* returns an error if an index starts with foo but no index starts with bar. + /// A setting that does two separate checks on the index expression. + /// If false, the request returns an error (1) if any wildcard expression + /// (including _all and *) resolves to zero matching indices or (2) if the + /// complete set of resolved indices, aliases or data streams is empty after all + /// expressions are evaluated. If true, index expressions that resolve to no + /// indices are allowed and the request returns an empty result. /// /// public Elastic.Clients.Elasticsearch.IndicesOptionsDescriptor AllowNoIndices(bool? value = true) @@ -152,7 +160,9 @@ public Elastic.Clients.Elasticsearch.IndicesOptionsDescriptor IgnoreThrottled(bo /// /// - /// If true, missing or closed indices are not included in the response. + /// If false, the request returns an error if it targets a concrete (non-wildcarded) + /// index, alias, or data stream that is missing, closed, or otherwise unavailable. + /// If true, unavailable concrete targets are silently ignored. /// /// public Elastic.Clients.Elasticsearch.IndicesOptionsDescriptor IgnoreUnavailable(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAIServiceSettings.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAIServiceSettings.Converters.g.cs index 6c28622c688..8b141870af6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAIServiceSettings.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAIServiceSettings.Converters.g.cs @@ -27,20 +27,28 @@ public sealed partial class AzureOpenAIServiceSettingsConverter : System.Text.Js { private static readonly System.Text.Json.JsonEncodedText PropApiKey = System.Text.Json.JsonEncodedText.Encode("api_key"u8); private static readonly System.Text.Json.JsonEncodedText PropApiVersion = System.Text.Json.JsonEncodedText.Encode("api_version"u8); + private static readonly System.Text.Json.JsonEncodedText PropClientId = System.Text.Json.JsonEncodedText.Encode("client_id"u8); + private static readonly System.Text.Json.JsonEncodedText PropClientSecret = System.Text.Json.JsonEncodedText.Encode("client_secret"u8); private static readonly System.Text.Json.JsonEncodedText PropDeploymentId = System.Text.Json.JsonEncodedText.Encode("deployment_id"u8); private static readonly System.Text.Json.JsonEncodedText PropEntraId = System.Text.Json.JsonEncodedText.Encode("entra_id"u8); private static readonly System.Text.Json.JsonEncodedText PropRateLimit = System.Text.Json.JsonEncodedText.Encode("rate_limit"u8); private static readonly System.Text.Json.JsonEncodedText PropResourceName = System.Text.Json.JsonEncodedText.Encode("resource_name"u8); + private static readonly System.Text.Json.JsonEncodedText PropScopes = System.Text.Json.JsonEncodedText.Encode("scopes"u8); + private static readonly System.Text.Json.JsonEncodedText PropTenantId = System.Text.Json.JsonEncodedText.Encode("tenant_id"u8); public override Elastic.Clients.Elasticsearch.Inference.AzureOpenAIServiceSettings Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); LocalJsonValue propApiKey = default; LocalJsonValue propApiVersion = default; + LocalJsonValue propClientId = default; + LocalJsonValue propClientSecret = default; LocalJsonValue propDeploymentId = default; LocalJsonValue propEntraId = default; LocalJsonValue propRateLimit = default; LocalJsonValue propResourceName = default; + LocalJsonValue?> propScopes = default; + LocalJsonValue propTenantId = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) { if (propApiKey.TryReadProperty(ref reader, options, PropApiKey, null)) @@ -53,6 +61,16 @@ public override Elastic.Clients.Elasticsearch.Inference.AzureOpenAIServiceSettin continue; } + if (propClientId.TryReadProperty(ref reader, options, PropClientId, null)) + { + continue; + } + + if (propClientSecret.TryReadProperty(ref reader, options, PropClientSecret, null)) + { + continue; + } + if (propDeploymentId.TryReadProperty(ref reader, options, PropDeploymentId, null)) { continue; @@ -73,6 +91,16 @@ public override Elastic.Clients.Elasticsearch.Inference.AzureOpenAIServiceSettin continue; } + if (propScopes.TryReadProperty(ref reader, options, PropScopes, static System.Collections.Generic.ICollection? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadCollectionValue(o, null))) + { + continue; + } + + if (propTenantId.TryReadProperty(ref reader, options, PropTenantId, null)) + { + continue; + } + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) { reader.SafeSkip(); @@ -87,10 +115,14 @@ public override Elastic.Clients.Elasticsearch.Inference.AzureOpenAIServiceSettin { ApiKey = propApiKey.Value, ApiVersion = propApiVersion.Value, + ClientId = propClientId.Value, + ClientSecret = propClientSecret.Value, DeploymentId = propDeploymentId.Value, EntraId = propEntraId.Value, RateLimit = propRateLimit.Value, - ResourceName = propResourceName.Value + ResourceName = propResourceName.Value, + Scopes = propScopes.Value, + TenantId = propTenantId.Value }; } @@ -99,10 +131,14 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien writer.WriteStartObject(); writer.WriteProperty(options, PropApiKey, value.ApiKey, null, null); writer.WriteProperty(options, PropApiVersion, value.ApiVersion, null, null); + writer.WriteProperty(options, PropClientId, value.ClientId, null, null); + writer.WriteProperty(options, PropClientSecret, value.ClientSecret, null, null); writer.WriteProperty(options, PropDeploymentId, value.DeploymentId, null, null); writer.WriteProperty(options, PropEntraId, value.EntraId, null, null); writer.WriteProperty(options, PropRateLimit, value.RateLimit, null, null); writer.WriteProperty(options, PropResourceName, value.ResourceName, null, null); + writer.WriteProperty(options, PropScopes, value.Scopes, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection? v) => w.WriteCollectionValue(o, v, null)); + writer.WriteProperty(options, PropTenantId, value.TenantId, null, null); writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAIServiceSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAIServiceSettings.g.cs index 025c93c08c8..4ad9c13daec 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAIServiceSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/AzureOpenAIServiceSettings.g.cs @@ -47,12 +47,10 @@ internal AzureOpenAIServiceSettings(Elastic.Clients.Elasticsearch.Serialization. /// /// /// A valid API key for your Azure OpenAI account. - /// You must specify either api_key or entra_id. - /// If you do not provide either or you provide both, you will receive an error when you try to create your model. /// /// - /// IMPORTANT: You need to provide the API key only once, during the inference model creation. - /// The get inference endpoint API does not retrieve your API key. + /// IMPORTANT: You must specify either api_key, entra_id, or client_secret. + /// If you do not provide one or you provide more than one of them, you will receive an error when you try to create your endpoint. /// /// public string? ApiKey { get; set; } @@ -65,6 +63,34 @@ internal AzureOpenAIServiceSettings(Elastic.Clients.Elasticsearch.Serialization. /// public required string ApiVersion { get; set; } + /// + /// + /// For OAuth 2.0 authentication using the client credentials grant flow. + /// The application ID that's assigned to your app. + /// + /// + /// IMPORTANT: To configure OAuth 2.0, you must specify client_id, scopes, tenant_id, and client_secret together. + /// If one of the fields is missing, you will receive an error when you try to create your endpoint. + /// + /// + public string? ClientId { get; set; } + + /// + /// + /// For OAuth 2.0 authentication using the client credentials grant flow. + /// The application secret that you created in the Microsoft app registration portal for your app. + /// + /// + /// IMPORTANT: You must specify either api_key, entra_id, or client_secret. + /// If you do not provide one or you provide more than one of them, you will receive an error when you try to create your endpoint. + /// + /// + /// IMPORTANT: To configure OAuth 2.0, you must specify client_id, scopes, tenant_id, and client_secret together. + /// If one of the fields is missing, you will receive an error when you try to create your endpoint. + /// + /// + public string? ClientSecret { get; set; } + /// /// /// The deployment name of your deployed models. @@ -76,8 +102,10 @@ internal AzureOpenAIServiceSettings(Elastic.Clients.Elasticsearch.Serialization. /// /// /// A valid Microsoft Entra token. - /// You must specify either api_key or entra_id. - /// If you do not provide either or you provide both, you will receive an error when you try to create your model. + /// + /// + /// IMPORTANT: You must specify either api_key, entra_id, or client_secret. + /// If you do not provide one or you provide more than one of them, you will receive an error when you try to create your endpoint. /// /// public string? EntraId { get; set; } @@ -99,6 +127,36 @@ internal AzureOpenAIServiceSettings(Elastic.Clients.Elasticsearch.Serialization. /// /// public required string ResourceName { get; set; } + + /// + /// + /// For OAuth 2.0 authentication using the client credentials grant flow. + /// The resource identifier (application ID URI) of the resource you want, suffixed with .default + /// For example: + /// + /// + /// "scopes": [ + /// "https://cognitiveservices.azure.com/.default" + /// ] + /// + /// + /// IMPORTANT: To configure OAuth 2.0, you must specify client_id, scopes, tenant_id, and client_secret together. + /// If one of the fields is missing, you will receive an error when you try to create your endpoint. + /// + /// + public System.Collections.Generic.ICollection? Scopes { get; set; } + + /// + /// + /// For OAuth 2.0 authentication using the client credentials grant flow. + /// The directory tenant the application plans to operate against. + /// + /// + /// IMPORTANT: To configure OAuth 2.0, you must specify client_id, scopes, tenant_id, and client_secret together. + /// If one of the fields is missing, you will receive an error when you try to create your endpoint. + /// + /// + public string? TenantId { get; set; } } public readonly partial struct AzureOpenAiServiceSettingsDescriptor @@ -123,12 +181,10 @@ public AzureOpenAiServiceSettingsDescriptor() /// /// /// A valid API key for your Azure OpenAI account. - /// You must specify either api_key or entra_id. - /// If you do not provide either or you provide both, you will receive an error when you try to create your model. /// /// - /// IMPORTANT: You need to provide the API key only once, during the inference model creation. - /// The get inference endpoint API does not retrieve your API key. + /// IMPORTANT: You must specify either api_key, entra_id, or client_secret. + /// If you do not provide one or you provide more than one of them, you will receive an error when you try to create your endpoint. /// /// public Elastic.Clients.Elasticsearch.Inference.AzureOpenAiServiceSettingsDescriptor ApiKey(string? value) @@ -149,6 +205,42 @@ public Elastic.Clients.Elasticsearch.Inference.AzureOpenAiServiceSettingsDescrip return this; } + /// + /// + /// For OAuth 2.0 authentication using the client credentials grant flow. + /// The application ID that's assigned to your app. + /// + /// + /// IMPORTANT: To configure OAuth 2.0, you must specify client_id, scopes, tenant_id, and client_secret together. + /// If one of the fields is missing, you will receive an error when you try to create your endpoint. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.AzureOpenAiServiceSettingsDescriptor ClientId(string? value) + { + Instance.ClientId = value; + return this; + } + + /// + /// + /// For OAuth 2.0 authentication using the client credentials grant flow. + /// The application secret that you created in the Microsoft app registration portal for your app. + /// + /// + /// IMPORTANT: You must specify either api_key, entra_id, or client_secret. + /// If you do not provide one or you provide more than one of them, you will receive an error when you try to create your endpoint. + /// + /// + /// IMPORTANT: To configure OAuth 2.0, you must specify client_id, scopes, tenant_id, and client_secret together. + /// If one of the fields is missing, you will receive an error when you try to create your endpoint. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.AzureOpenAiServiceSettingsDescriptor ClientSecret(string? value) + { + Instance.ClientSecret = value; + return this; + } + /// /// /// The deployment name of your deployed models. @@ -164,8 +256,10 @@ public Elastic.Clients.Elasticsearch.Inference.AzureOpenAiServiceSettingsDescrip /// /// /// A valid Microsoft Entra token. - /// You must specify either api_key or entra_id. - /// If you do not provide either or you provide both, you will receive an error when you try to create your model. + /// + /// + /// IMPORTANT: You must specify either api_key, entra_id, or client_secret. + /// If you do not provide one or you provide more than one of them, you will receive an error when you try to create your endpoint. /// /// public Elastic.Clients.Elasticsearch.Inference.AzureOpenAiServiceSettingsDescriptor EntraId(string? value) @@ -228,6 +322,66 @@ public Elastic.Clients.Elasticsearch.Inference.AzureOpenAiServiceSettingsDescrip return this; } + /// + /// + /// For OAuth 2.0 authentication using the client credentials grant flow. + /// The resource identifier (application ID URI) of the resource you want, suffixed with .default + /// For example: + /// + /// + /// "scopes": [ + /// "https://cognitiveservices.azure.com/.default" + /// ] + /// + /// + /// IMPORTANT: To configure OAuth 2.0, you must specify client_id, scopes, tenant_id, and client_secret together. + /// If one of the fields is missing, you will receive an error when you try to create your endpoint. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.AzureOpenAiServiceSettingsDescriptor Scopes(System.Collections.Generic.ICollection? value) + { + Instance.Scopes = value; + return this; + } + + /// + /// + /// For OAuth 2.0 authentication using the client credentials grant flow. + /// The resource identifier (application ID URI) of the resource you want, suffixed with .default + /// For example: + /// + /// + /// "scopes": [ + /// "https://cognitiveservices.azure.com/.default" + /// ] + /// + /// + /// IMPORTANT: To configure OAuth 2.0, you must specify client_id, scopes, tenant_id, and client_secret together. + /// If one of the fields is missing, you will receive an error when you try to create your endpoint. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.AzureOpenAiServiceSettingsDescriptor Scopes(params string[] values) + { + Instance.Scopes = [.. values]; + return this; + } + + /// + /// + /// For OAuth 2.0 authentication using the client credentials grant flow. + /// The directory tenant the application plans to operate against. + /// + /// + /// IMPORTANT: To configure OAuth 2.0, you must specify client_id, scopes, tenant_id, and client_secret together. + /// If one of the fields is missing, you will receive an error when you try to create your endpoint. + /// + /// + public Elastic.Clients.Elasticsearch.Inference.AzureOpenAiServiceSettingsDescriptor TenantId(string? value) + { + Instance.TenantId = value; + return this; + } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] internal static Elastic.Clients.Elasticsearch.Inference.AzureOpenAIServiceSettings Build(System.Action action) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ContextualAITaskSettings.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ContextualAITaskSettings.Converters.g.cs index 66186a1cf01..8c8e1fb6afe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ContextualAITaskSettings.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ContextualAITaskSettings.Converters.g.cs @@ -26,14 +26,12 @@ namespace Elastic.Clients.Elasticsearch.Inference.Json; public sealed partial class ContextualAITaskSettingsConverter : System.Text.Json.Serialization.JsonConverter { private static readonly System.Text.Json.JsonEncodedText PropInstruction = System.Text.Json.JsonEncodedText.Encode("instruction"u8); - private static readonly System.Text.Json.JsonEncodedText PropReturnDocuments = System.Text.Json.JsonEncodedText.Encode("return_documents"u8); private static readonly System.Text.Json.JsonEncodedText PropTopK = System.Text.Json.JsonEncodedText.Encode("top_k"u8); public override Elastic.Clients.Elasticsearch.Inference.ContextualAITaskSettings Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); LocalJsonValue propInstruction = default; - LocalJsonValue propReturnDocuments = default; LocalJsonValue propTopK = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) { @@ -42,11 +40,6 @@ public override Elastic.Clients.Elasticsearch.Inference.ContextualAITaskSettings continue; } - if (propReturnDocuments.TryReadProperty(ref reader, options, PropReturnDocuments, static bool? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) - { - continue; - } - if (propTopK.TryReadProperty(ref reader, options, PropTopK, static int? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) { continue; @@ -65,7 +58,6 @@ public override Elastic.Clients.Elasticsearch.Inference.ContextualAITaskSettings return new Elastic.Clients.Elasticsearch.Inference.ContextualAITaskSettings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) { Instruction = propInstruction.Value, - ReturnDocuments = propReturnDocuments.Value, TopK = propTopK.Value }; } @@ -74,7 +66,6 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien { writer.WriteStartObject(); writer.WriteProperty(options, PropInstruction, value.Instruction, null, null); - writer.WriteProperty(options, PropReturnDocuments, value.ReturnDocuments, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropTopK, value.TopK, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, int? v) => w.WriteNullableValue(o, v)); writer.WriteEndObject(); } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ContextualAITaskSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ContextualAITaskSettings.g.cs index a0a2edf868f..016bb4d7be6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ContextualAITaskSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/ContextualAITaskSettings.g.cs @@ -44,14 +44,6 @@ internal ContextualAITaskSettings(Elastic.Clients.Elasticsearch.Serialization.Js /// public string? Instruction { get; set; } - /// - /// - /// Whether to return the source documents in the response. - /// Only for the rerank task type. - /// - /// - public bool? ReturnDocuments { get; set; } - /// /// /// The number of most relevant documents to return. @@ -93,18 +85,6 @@ public Elastic.Clients.Elasticsearch.Inference.ContextualAiTaskSettingsDescripto return this; } - /// - /// - /// Whether to return the source documents in the response. - /// Only for the rerank task type. - /// - /// - public Elastic.Clients.Elasticsearch.Inference.ContextualAiTaskSettingsDescriptor ReturnDocuments(bool? value = true) - { - Instance.ReturnDocuments = value; - return this; - } - /// /// /// The number of most relevant documents to return. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/EmbeddingContentObjectContents.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/EmbeddingContentObjectContents.g.cs index e03e9eaf3ea..556ef46370a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/EmbeddingContentObjectContents.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/EmbeddingContentObjectContents.g.cs @@ -50,7 +50,8 @@ internal EmbeddingContentObjectContents(Elastic.Clients.Elasticsearch.Serializat /// /// - /// The format of the input. For the text type this defaults to text. For the image type, this defaults to base64. + /// The format of the input. For the text type this must be text. For the image type, this must be base64. + /// If not specified, this will default to text for the text type and base64 for the image type. /// /// public Elastic.Clients.Elasticsearch.Inference.EmbeddingContentFormat? Format { get; set; } @@ -64,7 +65,7 @@ internal EmbeddingContentObjectContents(Elastic.Clients.Elasticsearch.Serializat /// /// - /// The value of the input to embed. + /// The value of the input to embed. For images, this must be a base64-encoded data URI, i.e. "data:content/type;base64,..." /// /// public required string Value { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/Message.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/Message.g.cs index 0f9f6e71eef..8e791038dfa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/Message.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/Message.g.cs @@ -80,7 +80,7 @@ internal Message(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSent /// "content": [ /// { /// "image_url": { - /// "url": "data:image/jpg;base64,..." + /// "url": "data:image/jpeg;base64,..." /// }, /// "type": "image_url" /// } @@ -216,7 +216,7 @@ public MessageDescriptor() /// "content": [ /// { /// "image_url": { - /// "url": "data:image/jpg;base64,..." + /// "url": "data:image/jpeg;base64,..." /// }, /// "type": "image_url" /// } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RequestEmbedding.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RequestEmbedding.g.cs index b4dd82bb1e6..ebe96d0b0c2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RequestEmbedding.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Inference/RequestEmbedding.g.cs @@ -67,7 +67,7 @@ internal RequestEmbedding(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// "content": { /// "type": "image", /// "format": "base64", - /// "value": "data:image/jpg;base64,..." + /// "value": "data:image/jpeg;base64,..." /// } /// } /// @@ -87,7 +87,7 @@ internal RequestEmbedding(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// "content": { /// "type": "image", /// "format": "base64", - /// "value": "data:image/jpg;base64,..." + /// "value": "data:image/jpeg;base64,..." /// } /// } /// ] @@ -184,7 +184,7 @@ public RequestEmbeddingDescriptor() /// "content": { /// "type": "image", /// "format": "base64", - /// "value": "data:image/jpg;base64,..." + /// "value": "data:image/jpeg;base64,..." /// } /// } /// @@ -204,7 +204,7 @@ public RequestEmbeddingDescriptor() /// "content": { /// "type": "image", /// "format": "base64", - /// "value": "data:image/jpg;base64,..." + /// "value": "data:image/jpeg;base64,..." /// } /// } /// ] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GrokProcessor.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GrokProcessor.Converters.g.cs index c7c99319343..8ba7f5a8298 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GrokProcessor.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GrokProcessor.Converters.g.cs @@ -36,6 +36,7 @@ public sealed partial class GrokProcessorConverter : System.Text.Json.Serializat private static readonly System.Text.Json.JsonEncodedText PropPatterns = System.Text.Json.JsonEncodedText.Encode("patterns"u8); private static readonly System.Text.Json.JsonEncodedText PropTag = System.Text.Json.JsonEncodedText.Encode("tag"u8); private static readonly System.Text.Json.JsonEncodedText PropTraceMatch = System.Text.Json.JsonEncodedText.Encode("trace_match"u8); + private static readonly System.Text.Json.JsonEncodedText PropValidateOnly = System.Text.Json.JsonEncodedText.Encode("validate_only"u8); public override Elastic.Clients.Elasticsearch.Ingest.GrokProcessor Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { @@ -51,6 +52,7 @@ public override Elastic.Clients.Elasticsearch.Ingest.GrokProcessor Read(ref Syst LocalJsonValue> propPatterns = default; LocalJsonValue propTag = default; LocalJsonValue propTraceMatch = default; + LocalJsonValue propValidateOnly = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) { if (propDescription.TryReadProperty(ref reader, options, PropDescription, null)) @@ -108,6 +110,11 @@ public override Elastic.Clients.Elasticsearch.Ingest.GrokProcessor Read(ref Syst continue; } + if (propValidateOnly.TryReadProperty(ref reader, options, PropValidateOnly, static bool? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) { reader.SafeSkip(); @@ -130,7 +137,8 @@ public override Elastic.Clients.Elasticsearch.Ingest.GrokProcessor Read(ref Syst PatternDefinitions = propPatternDefinitions.Value, Patterns = propPatterns.Value, Tag = propTag.Value, - TraceMatch = propTraceMatch.Value + TraceMatch = propTraceMatch.Value, + ValidateOnly = propValidateOnly.Value }; } @@ -148,6 +156,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien writer.WriteProperty(options, PropPatterns, value.Patterns, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection v) => w.WriteCollectionValue(o, v, null)); writer.WriteProperty(options, PropTag, value.Tag, null, null); writer.WriteProperty(options, PropTraceMatch, value.TraceMatch, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropValidateOnly, value.ValidateOnly, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GrokProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GrokProcessor.g.cs index 08ca9dd0189..c5f8453b5a3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GrokProcessor.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ingest/GrokProcessor.g.cs @@ -124,6 +124,13 @@ internal GrokProcessor(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// /// public bool? TraceMatch { get; set; } + + /// + /// + /// When true, the processor does matching but does not extract structured fields + /// + /// + public bool? ValidateOnly { get; set; } } public readonly partial struct GrokProcessorDescriptor @@ -375,6 +382,17 @@ public Elastic.Clients.Elasticsearch.Ingest.GrokProcessorDescriptor T return this; } + /// + /// + /// When true, the processor does matching but does not extract structured fields + /// + /// + public Elastic.Clients.Elasticsearch.Ingest.GrokProcessorDescriptor ValidateOnly(bool? value = true) + { + Instance.ValidateOnly = value; + return this; + } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] internal static Elastic.Clients.Elasticsearch.Ingest.GrokProcessor Build(System.Action> action) { @@ -650,6 +668,17 @@ public Elastic.Clients.Elasticsearch.Ingest.GrokProcessorDescriptor TraceMatch(b return this; } + /// + /// + /// When true, the processor does matching but does not extract structured fields + /// + /// + public Elastic.Clients.Elasticsearch.Ingest.GrokProcessorDescriptor ValidateOnly(bool? value = true) + { + Instance.ValidateOnly = value; + return this; + } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] internal static Elastic.Clients.Elasticsearch.Ingest.GrokProcessor Build(System.Action action) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FieldType.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FieldType.Converters.g.cs index 002994759bd..6977c1ec9dd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FieldType.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FieldType.Converters.g.cs @@ -73,6 +73,7 @@ public sealed partial class FieldTypeConverter : System.Text.Json.Serialization. private static readonly System.Text.Json.JsonEncodedText MemberText = System.Text.Json.JsonEncodedText.Encode("text"u8); private static readonly System.Text.Json.JsonEncodedText MemberTokenCount = System.Text.Json.JsonEncodedText.Encode("token_count"u8); private static readonly System.Text.Json.JsonEncodedText MemberVersion = System.Text.Json.JsonEncodedText.Encode("version"u8); + private static readonly System.Text.Json.JsonEncodedText MemberWildcard = System.Text.Json.JsonEncodedText.Encode("wildcard"u8); public override Elastic.Clients.Elasticsearch.Mapping.FieldType Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { @@ -316,6 +317,11 @@ public override Elastic.Clients.Elasticsearch.Mapping.FieldType Read(ref System. return Elastic.Clients.Elasticsearch.Mapping.FieldType.Version; } + if (reader.ValueTextEquals(MemberWildcard)) + { + return Elastic.Clients.Elasticsearch.Mapping.FieldType.Wildcard; + } + var value = reader.GetString()!; if (string.Equals(value, MemberAggregateMetricDouble.Value, System.StringComparison.OrdinalIgnoreCase)) { @@ -557,6 +563,11 @@ public override Elastic.Clients.Elasticsearch.Mapping.FieldType Read(ref System. return Elastic.Clients.Elasticsearch.Mapping.FieldType.Version; } + if (string.Equals(value, MemberWildcard.Value, System.StringComparison.OrdinalIgnoreCase)) + { + return Elastic.Clients.Elasticsearch.Mapping.FieldType.Wildcard; + } + throw new System.Text.Json.JsonException($"Unknown member '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Mapping.FieldType)}'."); } @@ -708,6 +719,9 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien case Elastic.Clients.Elasticsearch.Mapping.FieldType.Version: writer.WriteStringValue(MemberVersion); break; + case Elastic.Clients.Elasticsearch.Mapping.FieldType.Wildcard: + writer.WriteStringValue(MemberWildcard); + break; default: throw new System.Text.Json.JsonException($"Invalid value '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Mapping.FieldType)}'."); } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FieldType.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FieldType.g.cs index b7ccd41e473..c601c8ebac5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FieldType.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/FieldType.g.cs @@ -121,5 +121,7 @@ public enum FieldType [System.Runtime.Serialization.EnumMember(Value = "token_count")] TokenCount, [System.Runtime.Serialization.EnumMember(Value = "version")] - Version + Version, + [System.Runtime.Serialization.EnumMember(Value = "wildcard")] + Wildcard } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/LongNumberRangeQuery.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/LongNumberRangeQuery.Converters.g.cs new file mode 100644 index 00000000000..45329490483 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/LongNumberRangeQuery.Converters.g.cs @@ -0,0 +1,128 @@ +// 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 System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.QueryDsl.Json; + +public sealed partial class LongNumberRangeQueryConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropBoost = System.Text.Json.JsonEncodedText.Encode("boost"u8); + private static readonly System.Text.Json.JsonEncodedText PropGt = System.Text.Json.JsonEncodedText.Encode("gt"u8); + private static readonly System.Text.Json.JsonEncodedText PropGte = System.Text.Json.JsonEncodedText.Encode("gte"u8); + private static readonly System.Text.Json.JsonEncodedText PropLt = System.Text.Json.JsonEncodedText.Encode("lt"u8); + private static readonly System.Text.Json.JsonEncodedText PropLte = System.Text.Json.JsonEncodedText.Encode("lte"u8); + private static readonly System.Text.Json.JsonEncodedText PropQueryName = System.Text.Json.JsonEncodedText.Encode("_name"u8); + private static readonly System.Text.Json.JsonEncodedText PropRelation = System.Text.Json.JsonEncodedText.Encode("relation"u8); + + public override Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQuery Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propField = default; + reader.Read(); + propField.ReadPropertyName(ref reader, options, static Elastic.Clients.Elasticsearch.Field (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadPropertyName(o)); + reader.Read(); + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propBoost = default; + LocalJsonValue propGt = default; + LocalJsonValue propGte = default; + LocalJsonValue propLt = default; + LocalJsonValue propLte = default; + LocalJsonValue propQueryName = default; + LocalJsonValue propRelation = default; + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (propBoost.TryReadProperty(ref reader, options, PropBoost, static float? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + + if (propGt.TryReadProperty(ref reader, options, PropGt, static long? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + + if (propGte.TryReadProperty(ref reader, options, PropGte, static long? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + + if (propLt.TryReadProperty(ref reader, options, PropLt, static long? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + + if (propLte.TryReadProperty(ref reader, options, PropLte, static long? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + + if (propQueryName.TryReadProperty(ref reader, options, PropQueryName, null)) + { + continue; + } + + if (propRelation.TryReadProperty(ref reader, options, PropRelation, static Elastic.Clients.Elasticsearch.QueryDsl.RangeRelation? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) + { + reader.SafeSkip(); + continue; + } + + throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'."); + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + reader.Read(); + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + Boost = propBoost.Value, + Field = propField.Value, + Gt = propGt.Value, + Gte = propGte.Value, + Lt = propLt.Value, + Lte = propLte.Value, + QueryName = propQueryName.Value, + Relation = propRelation.Value + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQuery value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WritePropertyName(options, value.Field, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.Field v) => w.WritePropertyName(o, v)); + writer.WriteStartObject(); + writer.WriteProperty(options, PropBoost, value.Boost, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, float? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropGt, value.Gt, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropGte, value.Gte, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropLt, value.Lt, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropLte, value.Lte, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropQueryName, value.QueryName, null, null); + writer.WriteProperty(options, PropRelation, value.Relation, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.QueryDsl.RangeRelation? v) => w.WriteNullableValue(o, v)); + writer.WriteEndObject(); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/LongNumberRangeQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/LongNumberRangeQuery.g.cs new file mode 100644 index 00000000000..268d9e5c8e8 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/LongNumberRangeQuery.g.cs @@ -0,0 +1,323 @@ +// 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 System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.QueryDsl; + +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.QueryDsl.Json.LongNumberRangeQueryConverter))] +public sealed partial class LongNumberRangeQuery : Elastic.Clients.Elasticsearch.QueryDsl.IRangeQuery +{ + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public LongNumberRangeQuery(Elastic.Clients.Elasticsearch.Field field) + { + Field = field; + } + + public LongNumberRangeQuery() + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal LongNumberRangeQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + /// + /// + /// Floating point number used to decrease or increase the relevance scores of the query. + /// Boost values are relative to the default value of 1.0. + /// A boost value between 0 and 1.0 decreases the relevance score. + /// A value greater than 1.0 increases the relevance score. + /// + /// + public float? Boost { get; set; } + public required Elastic.Clients.Elasticsearch.Field Field { get; set; } + + /// + /// + /// Greater than. + /// + /// + public long? Gt { get; set; } + + /// + /// + /// Greater than or equal to. + /// + /// + public long? Gte { get; set; } + + /// + /// + /// Less than. + /// + /// + public long? Lt { get; set; } + + /// + /// + /// Less than or equal to. + /// + /// + public long? Lte { get; set; } + public string? QueryName { get; set; } + + /// + /// + /// Indicates how the range query matches values for range fields. + /// + /// + public Elastic.Clients.Elasticsearch.QueryDsl.RangeRelation? Relation { get; set; } + + string Elastic.Clients.Elasticsearch.QueryDsl.IRangeQuery.Type => "long_number"; +} + +public readonly partial struct LongNumberRangeQueryDescriptor +{ + internal Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQuery Instance { get; init; } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public LongNumberRangeQueryDescriptor(Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQuery instance) + { + Instance = instance; + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public LongNumberRangeQueryDescriptor() + { + Instance = new Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance); + } + + public static explicit operator Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQueryDescriptor(Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQuery instance) => new Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQueryDescriptor(instance); + public static implicit operator Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQuery(Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQueryDescriptor descriptor) => descriptor.Instance; + + /// + /// + /// Floating point number used to decrease or increase the relevance scores of the query. + /// Boost values are relative to the default value of 1.0. + /// A boost value between 0 and 1.0 decreases the relevance score. + /// A value greater than 1.0 increases the relevance score. + /// + /// + public Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQueryDescriptor Boost(float? value) + { + Instance.Boost = value; + return this; + } + + public Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQueryDescriptor Field(Elastic.Clients.Elasticsearch.Field value) + { + Instance.Field = value; + return this; + } + + public Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQueryDescriptor Field(System.Linq.Expressions.Expression> value) + { + Instance.Field = value; + return this; + } + + /// + /// + /// Greater than. + /// + /// + public Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQueryDescriptor Gt(long? value) + { + Instance.Gt = value; + return this; + } + + /// + /// + /// Greater than or equal to. + /// + /// + public Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQueryDescriptor Gte(long? value) + { + Instance.Gte = value; + return this; + } + + /// + /// + /// Less than. + /// + /// + public Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQueryDescriptor Lt(long? value) + { + Instance.Lt = value; + return this; + } + + /// + /// + /// Less than or equal to. + /// + /// + public Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQueryDescriptor Lte(long? value) + { + Instance.Lte = value; + return this; + } + + public Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQueryDescriptor QueryName(string? value) + { + Instance.QueryName = value; + return this; + } + + /// + /// + /// Indicates how the range query matches values for range fields. + /// + /// + public Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQueryDescriptor Relation(Elastic.Clients.Elasticsearch.QueryDsl.RangeRelation? value) + { + Instance.Relation = value; + return this; + } + + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + internal static Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQuery Build(System.Action> action) + { + var builder = new Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQueryDescriptor(new Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)); + action.Invoke(builder); + return builder.Instance; + } +} + +public readonly partial struct LongNumberRangeQueryDescriptor +{ + internal Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQuery Instance { get; init; } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public LongNumberRangeQueryDescriptor(Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQuery instance) + { + Instance = instance; + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public LongNumberRangeQueryDescriptor() + { + Instance = new Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance); + } + + public static explicit operator Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQueryDescriptor(Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQuery instance) => new Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQueryDescriptor(instance); + public static implicit operator Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQuery(Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQueryDescriptor descriptor) => descriptor.Instance; + + /// + /// + /// Floating point number used to decrease or increase the relevance scores of the query. + /// Boost values are relative to the default value of 1.0. + /// A boost value between 0 and 1.0 decreases the relevance score. + /// A value greater than 1.0 increases the relevance score. + /// + /// + public Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQueryDescriptor Boost(float? value) + { + Instance.Boost = value; + return this; + } + + public Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQueryDescriptor Field(Elastic.Clients.Elasticsearch.Field value) + { + Instance.Field = value; + return this; + } + + public Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQueryDescriptor Field(System.Linq.Expressions.Expression> value) + { + Instance.Field = value; + return this; + } + + /// + /// + /// Greater than. + /// + /// + public Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQueryDescriptor Gt(long? value) + { + Instance.Gt = value; + return this; + } + + /// + /// + /// Greater than or equal to. + /// + /// + public Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQueryDescriptor Gte(long? value) + { + Instance.Gte = value; + return this; + } + + /// + /// + /// Less than. + /// + /// + public Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQueryDescriptor Lt(long? value) + { + Instance.Lt = value; + return this; + } + + /// + /// + /// Less than or equal to. + /// + /// + public Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQueryDescriptor Lte(long? value) + { + Instance.Lte = value; + return this; + } + + public Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQueryDescriptor QueryName(string? value) + { + Instance.QueryName = value; + return this; + } + + /// + /// + /// Indicates how the range query matches values for range fields. + /// + /// + public Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQueryDescriptor Relation(Elastic.Clients.Elasticsearch.QueryDsl.RangeRelation? value) + { + Instance.Relation = value; + return this; + } + + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] + internal static Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQuery Build(System.Action action) + { + var builder = new Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQueryDescriptor(new Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance)); + action.Invoke(builder); + return builder.Instance; + } +} \ 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 eaf2685fe53..46c1592ea2d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Query.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/Query.g.cs @@ -504,6 +504,7 @@ internal Query(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentin public static implicit operator Elastic.Clients.Elasticsearch.QueryDsl.Query(Elastic.Clients.Elasticsearch.QueryDsl.PrefixQuery value) => new Elastic.Clients.Elasticsearch.QueryDsl.Query { Prefix = value }; public static implicit operator Elastic.Clients.Elasticsearch.QueryDsl.Query(Elastic.Clients.Elasticsearch.QueryDsl.QueryStringQuery value) => new Elastic.Clients.Elasticsearch.QueryDsl.Query { QueryString = value }; public static implicit operator Elastic.Clients.Elasticsearch.QueryDsl.Query(Elastic.Clients.Elasticsearch.QueryDsl.DateRangeQuery value) => new Elastic.Clients.Elasticsearch.QueryDsl.Query { Range = value }; + public static implicit operator Elastic.Clients.Elasticsearch.QueryDsl.Query(Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQuery value) => new Elastic.Clients.Elasticsearch.QueryDsl.Query { Range = value }; public static implicit operator Elastic.Clients.Elasticsearch.QueryDsl.Query(Elastic.Clients.Elasticsearch.QueryDsl.NumberRangeQuery value) => new Elastic.Clients.Elasticsearch.QueryDsl.Query { Range = value }; public static implicit operator Elastic.Clients.Elasticsearch.QueryDsl.Query(Elastic.Clients.Elasticsearch.QueryDsl.TermRangeQuery value) => new Elastic.Clients.Elasticsearch.QueryDsl.Query { Range = value }; public static implicit operator Elastic.Clients.Elasticsearch.QueryDsl.Query(Elastic.Clients.Elasticsearch.QueryDsl.UntypedRangeQuery value) => new Elastic.Clients.Elasticsearch.QueryDsl.Query { Range = value }; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RangeQuery.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RangeQuery.Converters.g.cs index aa885d36cbb..8bc47d3b532 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RangeQuery.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RangeQuery.Converters.g.cs @@ -37,6 +37,9 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien case Elastic.Clients.Elasticsearch.QueryDsl.DateRangeQuery v: writer.WriteValue(options, v, null); break; + case Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQuery v: + writer.WriteValue(options, v, null); + break; case Elastic.Clients.Elasticsearch.QueryDsl.NumberRangeQuery v: writer.WriteValue(options, v, null); break; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RangeQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RangeQuery.g.cs index ddaa4f5bd2f..44ad7559d74 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RangeQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/RangeQuery.g.cs @@ -41,6 +41,16 @@ public Elastic.Clients.Elasticsearch.QueryDsl.IRangeQuery Date(System.Action.Build(action); } + public Elastic.Clients.Elasticsearch.QueryDsl.IRangeQuery LongNumber(Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQuery value) + { + return value; + } + + public Elastic.Clients.Elasticsearch.QueryDsl.IRangeQuery LongNumber(System.Action> action) + { + return Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQueryDescriptor.Build(action); + } + public Elastic.Clients.Elasticsearch.QueryDsl.IRangeQuery Number(Elastic.Clients.Elasticsearch.QueryDsl.NumberRangeQuery value) { return value; @@ -96,6 +106,21 @@ public Elastic.Clients.Elasticsearch.QueryDsl.IRangeQuery Date(System.Action< return Elastic.Clients.Elasticsearch.QueryDsl.DateRangeQueryDescriptor.Build(action); } + public Elastic.Clients.Elasticsearch.QueryDsl.IRangeQuery LongNumber(Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQuery value) + { + return value; + } + + public Elastic.Clients.Elasticsearch.QueryDsl.IRangeQuery LongNumber(System.Action action) + { + return Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQueryDescriptor.Build(action); + } + + public Elastic.Clients.Elasticsearch.QueryDsl.IRangeQuery LongNumber(System.Action> action) + { + return Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQueryDescriptor.Build(action); + } + public Elastic.Clients.Elasticsearch.QueryDsl.IRangeQuery Number(Elastic.Clients.Elasticsearch.QueryDsl.NumberRangeQuery value) { return value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ReindexTaskInfo.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ReindexTaskInfo.Converters.g.cs new file mode 100644 index 00000000000..7f33867e572 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ReindexTaskInfo.Converters.g.cs @@ -0,0 +1,126 @@ +// 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 System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Json; + +public sealed partial class ReindexTaskInfoConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropCancelled = System.Text.Json.JsonEncodedText.Encode("cancelled"u8); + private static readonly System.Text.Json.JsonEncodedText PropDescription = System.Text.Json.JsonEncodedText.Encode("description"u8); + private static readonly System.Text.Json.JsonEncodedText PropId = System.Text.Json.JsonEncodedText.Encode("id"u8); + private static readonly System.Text.Json.JsonEncodedText PropRunningTime = System.Text.Json.JsonEncodedText.Encode("running_time"u8); + private static readonly System.Text.Json.JsonEncodedText PropRunningTimeInNanos = System.Text.Json.JsonEncodedText.Encode("running_time_in_nanos"u8); + private static readonly System.Text.Json.JsonEncodedText PropStartTime = System.Text.Json.JsonEncodedText.Encode("start_time"u8); + private static readonly System.Text.Json.JsonEncodedText PropStartTimeInMillis = System.Text.Json.JsonEncodedText.Encode("start_time_in_millis"u8); + private static readonly System.Text.Json.JsonEncodedText PropStatus = System.Text.Json.JsonEncodedText.Encode("status"u8); + + public override Elastic.Clients.Elasticsearch.ReindexTaskInfo Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propCancelled = default; + LocalJsonValue propDescription = default; + LocalJsonValue propId = default; + LocalJsonValue propRunningTime = default; + LocalJsonValue propRunningTimeInNanos = default; + LocalJsonValue propStartTime = default; + LocalJsonValue propStartTimeInMillis = default; + LocalJsonValue propStatus = default; + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (propCancelled.TryReadProperty(ref reader, options, PropCancelled, null)) + { + continue; + } + + if (propDescription.TryReadProperty(ref reader, options, PropDescription, null)) + { + continue; + } + + if (propId.TryReadProperty(ref reader, options, PropId, null)) + { + continue; + } + + if (propRunningTime.TryReadProperty(ref reader, options, PropRunningTime, null)) + { + continue; + } + + if (propRunningTimeInNanos.TryReadProperty(ref reader, options, PropRunningTimeInNanos, static System.TimeSpan (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.TimeSpanNanosMarker)))) + { + continue; + } + + if (propStartTime.TryReadProperty(ref reader, options, PropStartTime, null)) + { + continue; + } + + if (propStartTimeInMillis.TryReadProperty(ref reader, options, PropStartTimeInMillis, static System.DateTimeOffset (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMillisMarker)))) + { + continue; + } + + if (propStatus.TryReadProperty(ref reader, options, PropStatus, null)) + { + continue; + } + + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) + { + reader.SafeSkip(); + continue; + } + + throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'."); + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.ReindexTaskInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + Cancelled = propCancelled.Value, + Description = propDescription.Value, + Id = propId.Value, + RunningTime = propRunningTime.Value, + RunningTimeInNanos = propRunningTimeInNanos.Value, + StartTime = propStartTime.Value, + StartTimeInMillis = propStartTimeInMillis.Value, + Status = propStatus.Value + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.ReindexTaskInfo value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteProperty(options, PropCancelled, value.Cancelled, null, null); + writer.WriteProperty(options, PropDescription, value.Description, null, null); + writer.WriteProperty(options, PropId, value.Id, null, null); + writer.WriteProperty(options, PropRunningTime, value.RunningTime, null, null); + writer.WriteProperty(options, PropRunningTimeInNanos, value.RunningTimeInNanos, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.TimeSpan v) => w.WriteValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.TimeSpanNanosMarker))); + writer.WriteProperty(options, PropStartTime, value.StartTime, null, null); + writer.WriteProperty(options, PropStartTimeInMillis, value.StartTimeInMillis, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.DateTimeOffset v) => w.WriteValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.DateTimeMillisMarker))); + writer.WriteProperty(options, PropStatus, value.Status, null, null); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ReindexTaskInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ReindexTaskInfo.g.cs new file mode 100644 index 00000000000..4dda0c09d34 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ReindexTaskInfo.g.cs @@ -0,0 +1,110 @@ +// 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 System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch; + +/// +/// +/// Information about a single reindex task, as returned by the reindex management APIs. +/// +/// +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.ReindexTaskInfoConverter))] +public sealed partial class ReindexTaskInfo +{ + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public ReindexTaskInfo(bool cancelled, Elastic.Clients.Elasticsearch.TaskId id, System.TimeSpan runningTimeInNanos, System.DateTimeOffset startTimeInMillis) + { + Cancelled = cancelled; + Id = id; + RunningTimeInNanos = runningTimeInNanos; + StartTimeInMillis = startTimeInMillis; + } + + public ReindexTaskInfo() + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal ReindexTaskInfo(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + /// + /// + /// Whether the reindex task has been cancelled. + /// + /// + public required bool Cancelled { get; set; } + + /// + /// + /// A sanitized description of the reindex operation (source and destination indices, and optionally remote host info). + /// + /// + public string? Description { get; set; } + + /// + /// + /// The ID of the reindex task, in nodeId:taskNum format. + /// + /// + public required Elastic.Clients.Elasticsearch.TaskId Id { get; set; } + + /// + /// + /// The elapsed running time of the reindex task, in a human-readable format. + /// Only present when the request includes the ?human=true query parameter. + /// + /// + public Elastic.Clients.Elasticsearch.Duration? RunningTime { get; set; } + + /// + /// + /// The elapsed running time of the reindex task, in nanoseconds. + /// + /// + public required System.TimeSpan RunningTimeInNanos { get; set; } + + /// + /// + /// The time at which the reindex task started, as an ISO 8601 formatted string. + /// Only present when the request includes the ?human=true query parameter. + /// + /// + public string? StartTime { get; set; } + + /// + /// + /// The time at which the reindex task started, in milliseconds since the Unix epoch. + /// + /// + public required System.DateTimeOffset StartTimeInMillis { get; set; } + + /// + /// + /// The current progress of the reindex operation. + /// + /// + public Elastic.Clients.Elasticsearch.ReindexStatus? Status { get; set; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ReindexTaskResult.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ReindexTaskResult.Converters.g.cs new file mode 100644 index 00000000000..86cfbaabaf1 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ReindexTaskResult.Converters.g.cs @@ -0,0 +1,180 @@ +// 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 System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Json; + +public sealed partial class ReindexTaskResultConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropBatches = System.Text.Json.JsonEncodedText.Encode("batches"u8); + private static readonly System.Text.Json.JsonEncodedText PropCreated = System.Text.Json.JsonEncodedText.Encode("created"u8); + private static readonly System.Text.Json.JsonEncodedText PropDeleted = System.Text.Json.JsonEncodedText.Encode("deleted"u8); + private static readonly System.Text.Json.JsonEncodedText PropFailures = System.Text.Json.JsonEncodedText.Encode("failures"u8); + private static readonly System.Text.Json.JsonEncodedText PropNoops = System.Text.Json.JsonEncodedText.Encode("noops"u8); + private static readonly System.Text.Json.JsonEncodedText PropRequestsPerSecond = System.Text.Json.JsonEncodedText.Encode("requests_per_second"u8); + private static readonly System.Text.Json.JsonEncodedText PropRetries = System.Text.Json.JsonEncodedText.Encode("retries"u8); + private static readonly System.Text.Json.JsonEncodedText PropThrottledMillis = System.Text.Json.JsonEncodedText.Encode("throttled_millis"u8); + private static readonly System.Text.Json.JsonEncodedText PropThrottledUntilMillis = System.Text.Json.JsonEncodedText.Encode("throttled_until_millis"u8); + private static readonly System.Text.Json.JsonEncodedText PropTimedOut = System.Text.Json.JsonEncodedText.Encode("timed_out"u8); + private static readonly System.Text.Json.JsonEncodedText PropTook = System.Text.Json.JsonEncodedText.Encode("took"u8); + private static readonly System.Text.Json.JsonEncodedText PropTotal = System.Text.Json.JsonEncodedText.Encode("total"u8); + private static readonly System.Text.Json.JsonEncodedText PropUpdated = System.Text.Json.JsonEncodedText.Encode("updated"u8); + private static readonly System.Text.Json.JsonEncodedText PropVersionConflicts = System.Text.Json.JsonEncodedText.Encode("version_conflicts"u8); + + public override Elastic.Clients.Elasticsearch.ReindexTaskResult Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propBatches = default; + LocalJsonValue propCreated = default; + LocalJsonValue propDeleted = default; + LocalJsonValue?> propFailures = default; + LocalJsonValue propNoops = default; + LocalJsonValue propRequestsPerSecond = default; + LocalJsonValue propRetries = default; + LocalJsonValue propThrottledMillis = default; + LocalJsonValue propThrottledUntilMillis = default; + LocalJsonValue propTimedOut = default; + LocalJsonValue propTook = default; + LocalJsonValue propTotal = default; + LocalJsonValue propUpdated = default; + LocalJsonValue propVersionConflicts = default; + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (propBatches.TryReadProperty(ref reader, options, PropBatches, static long? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + + if (propCreated.TryReadProperty(ref reader, options, PropCreated, static long? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + + if (propDeleted.TryReadProperty(ref reader, options, PropDeleted, static long? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + + if (propFailures.TryReadProperty(ref reader, options, PropFailures, static System.Collections.Generic.IReadOnlyCollection? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadCollectionValue(o, null))) + { + continue; + } + + if (propNoops.TryReadProperty(ref reader, options, PropNoops, static long? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + + if (propRequestsPerSecond.TryReadProperty(ref reader, options, PropRequestsPerSecond, static float? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + + if (propRetries.TryReadProperty(ref reader, options, PropRetries, null)) + { + continue; + } + + if (propThrottledMillis.TryReadProperty(ref reader, options, PropThrottledMillis, static System.TimeSpan? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.TimeSpanMillisMarker)))) + { + continue; + } + + if (propThrottledUntilMillis.TryReadProperty(ref reader, options, PropThrottledUntilMillis, static System.TimeSpan? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.TimeSpanMillisMarker)))) + { + continue; + } + + if (propTimedOut.TryReadProperty(ref reader, options, PropTimedOut, static bool? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + + if (propTook.TryReadProperty(ref reader, options, PropTook, static System.TimeSpan? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.TimeSpanMillisMarker)))) + { + continue; + } + + if (propTotal.TryReadProperty(ref reader, options, PropTotal, static long? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + + if (propUpdated.TryReadProperty(ref reader, options, PropUpdated, static long? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + + if (propVersionConflicts.TryReadProperty(ref reader, options, PropVersionConflicts, static long? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) + { + reader.SafeSkip(); + continue; + } + + throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'."); + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.ReindexTaskResult(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + Batches = propBatches.Value, + Created = propCreated.Value, + Deleted = propDeleted.Value, + Failures = propFailures.Value, + Noops = propNoops.Value, + RequestsPerSecond = propRequestsPerSecond.Value, + Retries = propRetries.Value, + ThrottledMillis = propThrottledMillis.Value, + ThrottledUntilMillis = propThrottledUntilMillis.Value, + TimedOut = propTimedOut.Value, + Took = propTook.Value, + Total = propTotal.Value, + Updated = propUpdated.Value, + VersionConflicts = propVersionConflicts.Value + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.ReindexTaskResult value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteProperty(options, PropBatches, value.Batches, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropCreated, value.Created, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropDeleted, value.Deleted, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropFailures, value.Failures, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyCollection? v) => w.WriteCollectionValue(o, v, null)); + writer.WriteProperty(options, PropNoops, value.Noops, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropRequestsPerSecond, value.RequestsPerSecond, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, float? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropRetries, value.Retries, null, null); + writer.WriteProperty(options, PropThrottledMillis, value.ThrottledMillis, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.TimeSpan? v) => w.WriteNullableValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.TimeSpanMillisMarker))); + writer.WriteProperty(options, PropThrottledUntilMillis, value.ThrottledUntilMillis, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.TimeSpan? v) => w.WriteNullableValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.TimeSpanMillisMarker))); + writer.WriteProperty(options, PropTimedOut, value.TimedOut, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropTook, value.Took, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.TimeSpan? v) => w.WriteNullableValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.TimeSpanMillisMarker))); + writer.WriteProperty(options, PropTotal, value.Total, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropUpdated, value.Updated, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropVersionConflicts, value.VersionConflicts, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, long? v) => w.WriteNullableValue(o, v)); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ReindexTaskResult.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ReindexTaskResult.g.cs new file mode 100644 index 00000000000..4e7d4a12a09 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ReindexTaskResult.g.cs @@ -0,0 +1,142 @@ +// 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 System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch; + +/// +/// +/// The final result of a completed reindex operation, as stored in the task result. +/// This is the serialized form of BulkByScrollResponse. +/// +/// +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.ReindexTaskResultConverter))] +public sealed partial class ReindexTaskResult +{ + public ReindexTaskResult() + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal ReindexTaskResult(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + /// + /// + /// The number of scroll responses pulled back by the reindex. + /// + /// + public long? Batches { get; set; } + + /// + /// + /// The number of documents that were successfully created. + /// + /// + public long? Created { get; set; } + + /// + /// + /// The number of documents that were successfully deleted. + /// + /// + public long? Deleted { get; set; } + + /// + /// + /// Any failures encountered during the reindex. If non-empty, the reindex ended because of these failures. + /// + /// + public System.Collections.Generic.IReadOnlyCollection? Failures { get; set; } + + /// + /// + /// The number of documents that were ignored because the script returned a noop value for ctx.op. + /// + /// + public long? Noops { get; set; } + + /// + /// + /// The number of requests per second effectively executed during the reindex. + /// + /// + public float? RequestsPerSecond { get; set; } + + /// + /// + /// The number of retries attempted by reindex. + /// + /// + public Elastic.Clients.Elasticsearch.Retries? Retries { get; set; } + + /// + /// + /// Number of milliseconds the request slept to conform to requests_per_second. + /// + /// + public System.TimeSpan? ThrottledMillis { get; set; } + + /// + /// + /// This field should always be equal to zero in a completed reindex result. + /// + /// + public System.TimeSpan? ThrottledUntilMillis { get; set; } + + /// + /// + /// Whether any of the requests executed during the reindex timed out. + /// + /// + public bool? TimedOut { get; set; } + + /// + /// + /// The total milliseconds the entire operation took. + /// + /// + public System.TimeSpan? Took { get; set; } + + /// + /// + /// The number of documents that were successfully processed. + /// + /// + public long? Total { get; set; } + + /// + /// + /// The number of documents that were successfully updated. + /// + /// + public long? Updated { get; set; } + + /// + /// + /// The number of version conflicts that occurred. + /// + /// + public long? VersionConflicts { get; set; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKeyQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKeyQuery.g.cs index 81ba7380f30..ecd1e4df845 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKeyQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKeyQuery.g.cs @@ -127,6 +127,7 @@ internal ApiKeyQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor public static implicit operator Elastic.Clients.Elasticsearch.Security.ApiKeyQuery(Elastic.Clients.Elasticsearch.QueryDsl.MatchAllQuery value) => new Elastic.Clients.Elasticsearch.Security.ApiKeyQuery { MatchAll = value }; public static implicit operator Elastic.Clients.Elasticsearch.Security.ApiKeyQuery(Elastic.Clients.Elasticsearch.QueryDsl.PrefixQuery value) => new Elastic.Clients.Elasticsearch.Security.ApiKeyQuery { Prefix = value }; public static implicit operator Elastic.Clients.Elasticsearch.Security.ApiKeyQuery(Elastic.Clients.Elasticsearch.QueryDsl.DateRangeQuery value) => new Elastic.Clients.Elasticsearch.Security.ApiKeyQuery { Range = value }; + public static implicit operator Elastic.Clients.Elasticsearch.Security.ApiKeyQuery(Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQuery value) => new Elastic.Clients.Elasticsearch.Security.ApiKeyQuery { Range = value }; public static implicit operator Elastic.Clients.Elasticsearch.Security.ApiKeyQuery(Elastic.Clients.Elasticsearch.QueryDsl.NumberRangeQuery value) => new Elastic.Clients.Elasticsearch.Security.ApiKeyQuery { Range = value }; public static implicit operator Elastic.Clients.Elasticsearch.Security.ApiKeyQuery(Elastic.Clients.Elasticsearch.QueryDsl.TermRangeQuery value) => new Elastic.Clients.Elasticsearch.Security.ApiKeyQuery { Range = value }; public static implicit operator Elastic.Clients.Elasticsearch.Security.ApiKeyQuery(Elastic.Clients.Elasticsearch.QueryDsl.UntypedRangeQuery value) => new Elastic.Clients.Elasticsearch.Security.ApiKeyQuery { Range = value }; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticateApiKey.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticateApiKey.Converters.g.cs index adab57d330a..01e313c6f56 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticateApiKey.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticateApiKey.Converters.g.cs @@ -35,7 +35,7 @@ public override Elastic.Clients.Elasticsearch.Security.AuthenticateApiKey Read(r reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); LocalJsonValue propId = default; LocalJsonValue propInternal = default; - LocalJsonValue propManagedBy = default; + LocalJsonValue propManagedBy = default; LocalJsonValue propName = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticateApiKey.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticateApiKey.g.cs index af0b7e5225b..7616109c021 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticateApiKey.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticateApiKey.g.cs @@ -27,7 +27,7 @@ namespace Elastic.Clients.Elasticsearch.Security; public sealed partial class AuthenticateApiKey { [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public AuthenticateApiKey(string id, Elastic.Clients.Elasticsearch.Security.ApiKeyManagedBy managedBy) + public AuthenticateApiKey(string id, Elastic.Clients.Elasticsearch.Security.CredentialManagedBy managedBy) { Id = id; ManagedBy = managedBy; @@ -45,6 +45,6 @@ internal AuthenticateApiKey(Elastic.Clients.Elasticsearch.Serialization.JsonCons public required string Id { get; set; } public bool? Internal { get; set; } - public required Elastic.Clients.Elasticsearch.Security.ApiKeyManagedBy ManagedBy { get; set; } + public required Elastic.Clients.Elasticsearch.Security.CredentialManagedBy ManagedBy { get; set; } public string? Name { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticateToken.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticateToken.Converters.g.cs index 37b8ae4a204..b1a494125d5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticateToken.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticateToken.Converters.g.cs @@ -25,16 +25,23 @@ namespace Elastic.Clients.Elasticsearch.Security.Json; public sealed partial class AuthenticateTokenConverter : System.Text.Json.Serialization.JsonConverter { + private static readonly System.Text.Json.JsonEncodedText PropManagedBy = System.Text.Json.JsonEncodedText.Encode("managed_by"u8); private static readonly System.Text.Json.JsonEncodedText PropName = System.Text.Json.JsonEncodedText.Encode("name"u8); private static readonly System.Text.Json.JsonEncodedText PropType = System.Text.Json.JsonEncodedText.Encode("type"u8); public override Elastic.Clients.Elasticsearch.Security.AuthenticateToken Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); - LocalJsonValue propName = default; + LocalJsonValue propManagedBy = default; + LocalJsonValue propName = default; LocalJsonValue propType = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) { + if (propManagedBy.TryReadProperty(ref reader, options, PropManagedBy, static Elastic.Clients.Elasticsearch.Security.CredentialManagedBy? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + if (propName.TryReadProperty(ref reader, options, PropName, null)) { continue; @@ -57,6 +64,7 @@ public override Elastic.Clients.Elasticsearch.Security.AuthenticateToken Read(re reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); return new Elastic.Clients.Elasticsearch.Security.AuthenticateToken(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) { + ManagedBy = propManagedBy.Value, Name = propName.Value, Type = propType.Value }; @@ -65,6 +73,7 @@ public override Elastic.Clients.Elasticsearch.Security.AuthenticateToken Read(re public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Security.AuthenticateToken value, System.Text.Json.JsonSerializerOptions options) { writer.WriteStartObject(); + writer.WriteProperty(options, PropManagedBy, value.ManagedBy, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.Security.CredentialManagedBy? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropName, value.Name, null, null); writer.WriteProperty(options, PropType, value.Type, null, null); writer.WriteEndObject(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticateToken.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticateToken.g.cs index 06139ae1629..19914bc9231 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticateToken.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/AuthenticateToken.g.cs @@ -26,12 +26,6 @@ namespace Elastic.Clients.Elasticsearch.Security; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.AuthenticateTokenConverter))] public sealed partial class AuthenticateToken { - [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] - public AuthenticateToken(string name) - { - Name = name; - } - public AuthenticateToken() { } @@ -42,6 +36,7 @@ internal AuthenticateToken(Elastic.Clients.Elasticsearch.Serialization.JsonConst _ = sentinel; } - public required string Name { get; set; } + public Elastic.Clients.Elasticsearch.Security.CredentialManagedBy? ManagedBy { get; set; } + public string? Name { get; set; } public string? Type { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKeyManagedBy.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/CredentialManagedBy.Converters.g.cs similarity index 64% rename from src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKeyManagedBy.Converters.g.cs rename to src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/CredentialManagedBy.Converters.g.cs index bde7380bf5d..505ead62f90 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKeyManagedBy.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/CredentialManagedBy.Converters.g.cs @@ -23,58 +23,58 @@ namespace Elastic.Clients.Elasticsearch.Security.Json; -public sealed partial class ApiKeyManagedByConverter : System.Text.Json.Serialization.JsonConverter +public sealed partial class CredentialManagedByConverter : System.Text.Json.Serialization.JsonConverter { private static readonly System.Text.Json.JsonEncodedText MemberCloud = System.Text.Json.JsonEncodedText.Encode("cloud"u8); private static readonly System.Text.Json.JsonEncodedText MemberElasticsearch = System.Text.Json.JsonEncodedText.Encode("elasticsearch"u8); - public override Elastic.Clients.Elasticsearch.Security.ApiKeyManagedBy Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + public override Elastic.Clients.Elasticsearch.Security.CredentialManagedBy Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { if (reader.ValueTextEquals(MemberCloud)) { - return Elastic.Clients.Elasticsearch.Security.ApiKeyManagedBy.Cloud; + return Elastic.Clients.Elasticsearch.Security.CredentialManagedBy.Cloud; } if (reader.ValueTextEquals(MemberElasticsearch)) { - return Elastic.Clients.Elasticsearch.Security.ApiKeyManagedBy.Elasticsearch; + return Elastic.Clients.Elasticsearch.Security.CredentialManagedBy.Elasticsearch; } var value = reader.GetString()!; if (string.Equals(value, MemberCloud.Value, System.StringComparison.OrdinalIgnoreCase)) { - return Elastic.Clients.Elasticsearch.Security.ApiKeyManagedBy.Cloud; + return Elastic.Clients.Elasticsearch.Security.CredentialManagedBy.Cloud; } if (string.Equals(value, MemberElasticsearch.Value, System.StringComparison.OrdinalIgnoreCase)) { - return Elastic.Clients.Elasticsearch.Security.ApiKeyManagedBy.Elasticsearch; + return Elastic.Clients.Elasticsearch.Security.CredentialManagedBy.Elasticsearch; } - throw new System.Text.Json.JsonException($"Unknown member '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Security.ApiKeyManagedBy)}'."); + throw new System.Text.Json.JsonException($"Unknown member '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Security.CredentialManagedBy)}'."); } - public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Security.ApiKeyManagedBy value, System.Text.Json.JsonSerializerOptions options) + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Security.CredentialManagedBy value, System.Text.Json.JsonSerializerOptions options) { switch (value) { - case Elastic.Clients.Elasticsearch.Security.ApiKeyManagedBy.Cloud: + case Elastic.Clients.Elasticsearch.Security.CredentialManagedBy.Cloud: writer.WriteStringValue(MemberCloud); break; - case Elastic.Clients.Elasticsearch.Security.ApiKeyManagedBy.Elasticsearch: + case Elastic.Clients.Elasticsearch.Security.CredentialManagedBy.Elasticsearch: writer.WriteStringValue(MemberElasticsearch); break; default: - throw new System.Text.Json.JsonException($"Invalid value '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Security.ApiKeyManagedBy)}'."); + throw new System.Text.Json.JsonException($"Invalid value '{value}' for enum '{nameof(Elastic.Clients.Elasticsearch.Security.CredentialManagedBy)}'."); } } - public override Elastic.Clients.Elasticsearch.Security.ApiKeyManagedBy ReadAsPropertyName(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + public override Elastic.Clients.Elasticsearch.Security.CredentialManagedBy ReadAsPropertyName(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { return Read(ref reader, typeToConvert, options); } - public override void WriteAsPropertyName(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Security.ApiKeyManagedBy value, System.Text.Json.JsonSerializerOptions options) + public override void WriteAsPropertyName(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Security.CredentialManagedBy value, System.Text.Json.JsonSerializerOptions options) { Write(writer, value, options); } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKeyManagedBy.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/CredentialManagedBy.g.cs similarity index 94% rename from src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKeyManagedBy.g.cs rename to src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/CredentialManagedBy.g.cs index fd4c0d80156..70571170ad5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/ApiKeyManagedBy.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/CredentialManagedBy.g.cs @@ -23,8 +23,8 @@ namespace Elastic.Clients.Elasticsearch.Security; -[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.ApiKeyManagedByConverter))] -public enum ApiKeyManagedBy +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.CredentialManagedByConverter))] +public enum CredentialManagedBy { [System.Runtime.Serialization.EnumMember(Value = "cloud")] Cloud, diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleQuery.g.cs index afbe307edac..eaaa0d8dfea 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleQuery.g.cs @@ -127,6 +127,7 @@ internal RoleQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSe public static implicit operator Elastic.Clients.Elasticsearch.Security.RoleQuery(Elastic.Clients.Elasticsearch.QueryDsl.MatchAllQuery value) => new Elastic.Clients.Elasticsearch.Security.RoleQuery { MatchAll = value }; public static implicit operator Elastic.Clients.Elasticsearch.Security.RoleQuery(Elastic.Clients.Elasticsearch.QueryDsl.PrefixQuery value) => new Elastic.Clients.Elasticsearch.Security.RoleQuery { Prefix = value }; public static implicit operator Elastic.Clients.Elasticsearch.Security.RoleQuery(Elastic.Clients.Elasticsearch.QueryDsl.DateRangeQuery value) => new Elastic.Clients.Elasticsearch.Security.RoleQuery { Range = value }; + public static implicit operator Elastic.Clients.Elasticsearch.Security.RoleQuery(Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQuery value) => new Elastic.Clients.Elasticsearch.Security.RoleQuery { Range = value }; public static implicit operator Elastic.Clients.Elasticsearch.Security.RoleQuery(Elastic.Clients.Elasticsearch.QueryDsl.NumberRangeQuery value) => new Elastic.Clients.Elasticsearch.Security.RoleQuery { Range = value }; public static implicit operator Elastic.Clients.Elasticsearch.Security.RoleQuery(Elastic.Clients.Elasticsearch.QueryDsl.TermRangeQuery value) => new Elastic.Clients.Elasticsearch.Security.RoleQuery { Range = value }; public static implicit operator Elastic.Clients.Elasticsearch.Security.RoleQuery(Elastic.Clients.Elasticsearch.QueryDsl.UntypedRangeQuery value) => new Elastic.Clients.Elasticsearch.Security.RoleQuery { Range = value }; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserQuery.g.cs index 0d3ad2f37c6..0a922645e6d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserQuery.g.cs @@ -127,6 +127,7 @@ internal UserQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSe public static implicit operator Elastic.Clients.Elasticsearch.Security.UserQuery(Elastic.Clients.Elasticsearch.QueryDsl.MatchAllQuery value) => new Elastic.Clients.Elasticsearch.Security.UserQuery { MatchAll = value }; public static implicit operator Elastic.Clients.Elasticsearch.Security.UserQuery(Elastic.Clients.Elasticsearch.QueryDsl.PrefixQuery value) => new Elastic.Clients.Elasticsearch.Security.UserQuery { Prefix = value }; public static implicit operator Elastic.Clients.Elasticsearch.Security.UserQuery(Elastic.Clients.Elasticsearch.QueryDsl.DateRangeQuery value) => new Elastic.Clients.Elasticsearch.Security.UserQuery { Range = value }; + public static implicit operator Elastic.Clients.Elasticsearch.Security.UserQuery(Elastic.Clients.Elasticsearch.QueryDsl.LongNumberRangeQuery value) => new Elastic.Clients.Elasticsearch.Security.UserQuery { Range = value }; public static implicit operator Elastic.Clients.Elasticsearch.Security.UserQuery(Elastic.Clients.Elasticsearch.QueryDsl.NumberRangeQuery value) => new Elastic.Clients.Elasticsearch.Security.UserQuery { Range = value }; public static implicit operator Elastic.Clients.Elasticsearch.Security.UserQuery(Elastic.Clients.Elasticsearch.QueryDsl.TermRangeQuery value) => new Elastic.Clients.Elasticsearch.Security.UserQuery { Range = value }; public static implicit operator Elastic.Clients.Elasticsearch.Security.UserQuery(Elastic.Clients.Elasticsearch.QueryDsl.UntypedRangeQuery value) => new Elastic.Clients.Elasticsearch.Security.UserQuery { Range = value }; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ThreadType.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ThreadType.g.cs index b3d504c0ba1..1415f447987 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ThreadType.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ThreadType.g.cs @@ -26,14 +26,39 @@ namespace Elastic.Clients.Elasticsearch; [System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Json.ThreadTypeConverter))] public enum ThreadType { + /// + /// + /// Threads that have been blocked the longest. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "block")] Block, + /// + /// + /// Threads that consume the most CPU time. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "cpu")] Cpu, + /// + /// + /// Threads that consume the most GPU time. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "gpu")] Gpu, + /// + /// + /// Threads that allocate the most memory. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "mem")] Mem, + /// + /// + /// Threads that have been in a waiting state the longest. + /// + /// [System.Runtime.Serialization.EnumMember(Value = "wait")] Wait } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Settings.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Settings.Converters.g.cs index 9349c6e62fe..79cd40dd9a4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Settings.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Settings.Converters.g.cs @@ -30,6 +30,7 @@ public sealed partial class SettingsConverter : System.Text.Json.Serialization.J private static readonly System.Text.Json.JsonEncodedText PropDeduceMappings = System.Text.Json.JsonEncodedText.Encode("deduce_mappings"u8); private static readonly System.Text.Json.JsonEncodedText PropDocsPerSecond = System.Text.Json.JsonEncodedText.Encode("docs_per_second"u8); private static readonly System.Text.Json.JsonEncodedText PropMaxPageSearchSize = System.Text.Json.JsonEncodedText.Encode("max_page_search_size"u8); + private static readonly System.Text.Json.JsonEncodedText PropNumFailureRetries = System.Text.Json.JsonEncodedText.Encode("num_failure_retries"u8); private static readonly System.Text.Json.JsonEncodedText PropUnattended = System.Text.Json.JsonEncodedText.Encode("unattended"u8); private static readonly System.Text.Json.JsonEncodedText PropUsePointInTime = System.Text.Json.JsonEncodedText.Encode("use_point_in_time"u8); @@ -41,6 +42,7 @@ public override Elastic.Clients.Elasticsearch.TransformManagement.Settings Read( LocalJsonValue propDeduceMappings = default; LocalJsonValue propDocsPerSecond = default; LocalJsonValue propMaxPageSearchSize = default; + LocalJsonValue propNumFailureRetries = default; LocalJsonValue propUnattended = default; LocalJsonValue propUsePointInTime = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) @@ -70,6 +72,11 @@ public override Elastic.Clients.Elasticsearch.TransformManagement.Settings Read( continue; } + if (propNumFailureRetries.TryReadProperty(ref reader, options, PropNumFailureRetries, static int? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + if (propUnattended.TryReadProperty(ref reader, options, PropUnattended, static bool? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) { continue; @@ -97,6 +104,7 @@ public override Elastic.Clients.Elasticsearch.TransformManagement.Settings Read( DeduceMappings = propDeduceMappings.Value, DocsPerSecond = propDocsPerSecond.Value, MaxPageSearchSize = propMaxPageSearchSize.Value, + NumFailureRetries = propNumFailureRetries.Value, Unattended = propUnattended.Value, UsePointInTime = propUsePointInTime.Value }; @@ -110,6 +118,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien writer.WriteProperty(options, PropDeduceMappings, value.DeduceMappings, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropDocsPerSecond, value.DocsPerSecond, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, float? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropMaxPageSearchSize, value.MaxPageSearchSize, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, int? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropNumFailureRetries, value.NumFailureRetries, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, int? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropUnattended, value.Unattended, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropUsePointInTime, value.UsePointInTime, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); writer.WriteEndObject(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Settings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Settings.g.cs index 49cca59d898..912e1233fbe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Settings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/TransformManagement/Settings.g.cs @@ -83,6 +83,19 @@ internal Settings(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSen /// public int? MaxPageSearchSize { get; set; } + /// + /// + /// Defines the number of retries on a recoverable failure before the transform task is marked as failed. + /// The minimum value is 0 and the maximum is 100, where -1 indicates that the transform retries indefinitely. + /// If unset, the cluster-level setting num_transform_failure_retries is used. + /// + /// + /// This setting cannot be specified when unattended is true, because unattended transforms always retry + /// indefinitely. + /// + /// + public int? NumFailureRetries { get; set; } + /// /// /// If true, the transform runs in unattended mode. In unattended mode, the transform retries indefinitely in case @@ -190,6 +203,23 @@ public Elastic.Clients.Elasticsearch.TransformManagement.SettingsDescriptor MaxP return this; } + /// + /// + /// Defines the number of retries on a recoverable failure before the transform task is marked as failed. + /// The minimum value is 0 and the maximum is 100, where -1 indicates that the transform retries indefinitely. + /// If unset, the cluster-level setting num_transform_failure_retries is used. + /// + /// + /// This setting cannot be specified when unattended is true, because unattended transforms always retry + /// indefinitely. + /// + /// + public Elastic.Clients.Elasticsearch.TransformManagement.SettingsDescriptor NumFailureRetries(int? value) + { + Instance.NumFailureRetries = value; + return this; + } + /// /// /// If true, the transform runs in unattended mode. In unattended mode, the transform retries indefinitely in case From 027158a72ab80e2d0e2efc2f2f8c8423a777eb59 Mon Sep 17 00:00:00 2001 From: Florian Bernd Date: Tue, 21 Apr 2026 15:32:13 +0200 Subject: [PATCH 2/2] Bump Elastic.Transport to 0.16.0 and adapt EsqlToObject to ElasticsearchStreamResponse --- .../Elastic.Clients.Elasticsearch.csproj | 2 +- .../_Shared/Client/ElasticsearchClient.Esql.cs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj b/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj index 9ce1e25113f..3010bacf06c 100644 --- a/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj +++ b/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj @@ -32,7 +32,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchClient.Esql.cs b/src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchClient.Esql.cs index 8ad44918bb0..743ffba4465 100644 --- a/src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchClient.Esql.cs +++ b/src/Elastic.Clients.Elasticsearch/_Shared/Client/ElasticsearchClient.Esql.cs @@ -17,6 +17,7 @@ using Elastic.Esql.Extensions; using Elastic.Transport; using Elastic.Transport.Extensions; +using Elastic.Transport.Products.Elasticsearch; namespace Elastic.Clients.Elasticsearch.Esql; @@ -243,10 +244,10 @@ void Configure(EsqlQueryRequestDescriptor descriptor) } [Obsolete("Use CreateQuery() for LINQ-based ES|QL queries.")] - private static IEnumerable EsqlToObject(ElasticsearchClient client, EsqlQueryResponse response) + private static IEnumerable EsqlToObject(ElasticsearchClient client, ElasticsearchStreamResponse response) { #pragma warning disable IL2026, IL3050 - using var doc = JsonSerializer.Deserialize(response.Data, EsqlJsonSerializerOptions) ?? throw new JsonException(); + using var doc = JsonSerializer.Deserialize(response.Body, EsqlJsonSerializerOptions) ?? throw new JsonException(); #pragma warning restore IL2026, IL3050 if (!doc.RootElement.TryGetProperty("columns"u8, out var columns) || (columns.ValueKind is not JsonValueKind.Array))