From 7507edb3bd86e327c07dea4e021b6ff72c30e8b5 Mon Sep 17 00:00:00 2001 From: Florian Bernd Date: Fri, 10 Nov 2023 10:22:22 +0100 Subject: [PATCH] Regenerate client for 8.11 --- .../_Generated/Api/ApiUrlLookup.g.cs | 23 +- .../_Generated/Api/BulkRequest.g.cs | 42 +- .../_Generated/Api/ClearScrollRequest.g.cs | 10 +- .../Api/ClosePointInTimeRequest.g.cs | 10 +- .../_Generated/Api/CountRequest.g.cs | 66 +- .../_Generated/Api/CreateRequest.g.cs | 34 +- .../_Generated/Api/DeleteByQueryRequest.g.cs | 144 +-- .../Api/DeleteByQueryRethrottleRequest.g.cs | 98 ++ .../Api/DeleteByQueryRethrottleResponse.g.cs | 46 + .../_Generated/Api/DeleteRequest.g.cs | 38 +- .../_Generated/Api/DeleteScriptRequest.g.cs | 14 +- .../_Generated/Api/Eql/EqlDeleteRequest.g.cs | 120 +++ .../EqlDeleteResponse.g.cs} | 4 +- .../_Generated/Api/Eql/EqlGetRequest.g.cs | 147 +++ .../_Generated/Api/Eql/EqlGetResponse.g.cs | 65 ++ .../_Generated/Api/Eql/EqlSearchRequest.g.cs | 921 ++++++++++++++++++ .../_Generated/Api/Eql/EqlSearchResponse.g.cs | 65 ++ .../Api/Eql/GetEqlStatusRequest.g.cs | 120 +++ .../Api/Eql/GetEqlStatusResponse.g.cs | 65 ++ .../_Generated/Api/ExistsRequest.g.cs | 46 +- .../_Generated/Api/ExistsSourceRequest.g.cs | 42 +- .../_Generated/Api/ExplainRequest.g.cs | 413 ++++++++ .../_Generated/Api/ExplainResponse.g.cs | 40 + .../_Generated/Api/GetRequest.g.cs | 8 +- .../_Generated/Api/GetScriptRequest.g.cs | 6 +- .../DeleteDataLifecycleRequest.g.cs | 6 +- .../DeleteDataLifecycleResponse.g.cs | 3 - .../ExistsTemplateRequest.g.cs | 122 --- .../ExplainDataLifecycleRequest.g.cs | 9 +- .../ExplainDataLifecycleResponse.g.cs | 7 +- .../Api/IndexManagement/FlushRequest.g.cs | 182 ++++ ...mplateResponse.g.cs => FlushResponse.g.cs} | 8 +- .../IndexManagement/ForcemergeRequest.g.cs | 208 ++++ .../IndexManagement/ForcemergeResponse.g.cs | 38 + .../GetDataLifecycleRequest.g.cs | 6 +- .../GetDataLifecycleResponse.g.cs | 5 +- .../IndexManagement/GetTemplateRequest.g.cs | 122 --- .../PutDataLifecycleRequest.g.cs | 54 +- .../PutDataLifecycleResponse.g.cs | 3 - .../Api/IndexManagement/RefreshRequest.g.cs | 156 +++ ...lateResponse.g.cs => RefreshResponse.g.cs} | 11 +- .../_Generated/Api/IndexRequest.g.cs | 48 +- .../Api/MultiSearchTemplateRequest.g.cs | 20 +- .../Api/MultiTermVectorsRequest.g.cs | 64 +- .../Api/OpenPointInTimeRequest.g.cs | 20 +- .../_Generated/Api/PutScriptRequest.g.cs | 24 +- .../_Generated/Api/ReindexRequest.g.cs | 545 +++++++++++ .../_Generated/Api/ReindexResponse.g.cs | 62 ++ .../Api/ReindexRethrottleRequest.g.cs | 98 ++ .../Api/ReindexRethrottleResponse.g.cs | 32 + .../Api/RenderSearchTemplateRequest.g.cs | 26 +- .../_Generated/Api/SearchTemplateRequest.g.cs | 64 +- .../Api/Sql/ClearCursorRequest.g.cs | 93 ++ .../Api/Sql/ClearCursorResponse.g.cs | 32 + .../Api/Sql/DeleteAsyncRequest.g.cs | 120 +++ .../Api/Sql/DeleteAsyncResponse.g.cs | 35 + .../_Generated/Api/Sql/GetAsyncRequest.g.cs | 173 ++++ .../_Generated/Api/Sql/GetAsyncResponse.g.cs | 59 ++ .../Api/Sql/GetAsyncStatusRequest.g.cs | 120 +++ .../Api/Sql/GetAsyncStatusResponse.g.cs | 65 ++ .../_Generated/Api/Sql/QueryRequest.g.cs | 770 +++++++++++++++ .../_Generated/Api/Sql/QueryResponse.g.cs | 59 ++ .../_Generated/Api/Tasks/CancelRequest.g.cs | 136 +++ .../_Generated/Api/Tasks/CancelResponse.g.cs | 49 + .../GetTasksRequest.g.cs} | 58 +- .../Api/Tasks/GetTasksResponse.g.cs | 39 + .../_Generated/Api/Tasks/ListRequest.g.cs | 170 ++++ .../_Generated/Api/Tasks/ListResponse.g.cs | 49 + .../_Generated/Api/TermVectorsRequest.g.cs | 65 +- .../_Generated/Api/UpdateByQueryRequest.g.cs | 160 +-- .../Api/UpdateByQueryRethrottleRequest.g.cs | 98 ++ .../Api/UpdateByQueryRethrottleResponse.g.cs | 32 + .../ElasticsearchClient.AsyncSearch.g.cs | 80 +- .../Client/ElasticsearchClient.Cluster.g.cs | 88 +- .../Client/ElasticsearchClient.Enrich.g.cs | 36 +- .../Client/ElasticsearchClient.Eql.g.cs | 470 +++++++++ .../Client/ElasticsearchClient.Graph.g.cs | 24 +- .../Client/ElasticsearchClient.Indices.g.cs | 860 ++++++++-------- .../Client/ElasticsearchClient.Ingest.g.cs | 52 +- .../Client/ElasticsearchClient.Sql.g.cs | 622 ++++++++++++ .../Client/ElasticsearchClient.Tasks.g.cs | 320 ++++++ .../Client/ElasticsearchClient.g.cs | 582 ++++++++++- .../_Generated/Types/ClusterStatistics.g.cs | 6 + .../Types/Core/Bulk/ResponseItem.g.cs | 35 + .../Core/MSearchTemplate/TemplateConfig.g.cs | 20 + .../MultiTermVectorsOperation.g.cs | 129 +++ .../Types/Core/Reindex/Destination.g.cs | 153 +++ .../Types/Core/Reindex/RemoteSource.g.cs | 175 ++++ .../_Generated/Types/Core/Reindex/Source.g.cs | 631 ++++++++++++ .../ReindexRethrottle/ReindexNode.g.cs} | 31 +- .../Core/ReindexRethrottle/ReindexStatus.g.cs | 101 ++ .../Core/ReindexRethrottle/ReindexTask.g.cs | 52 + .../Types/Core/Search/CompletionContext.g.cs | 34 + .../Core/Search/CompletionSuggester.g.cs | 40 + .../Types/Core/Search/DirectGenerator.g.cs | 118 +++ .../Types/Core/Search/FieldSuggester.g.cs | 29 + .../Core/Search/LaplaceSmoothingModel.g.cs | 6 + .../Core/Search/PhraseSuggestCollate.g.cs | 20 + .../Search/PhraseSuggestCollateQuery.g.cs | 13 + .../Core/Search/PhraseSuggestHighlight.g.cs | 13 + .../Types/Core/Search/PhraseSuggester.g.cs | 110 +++ .../Types/Core/Search/RegexOptions.g.cs | 13 + .../Search/StupidBackoffSmoothingModel.g.cs | 6 + .../Types/Core/Search/SuggestFuzziness.g.cs | 34 + .../Types/Core/Search/TermSuggester.g.cs | 110 +++ .../Types/Core/TermVectors/Filter.g.cs | 48 + .../UpdateByQueryRethrottleNode.g.cs | 46 + .../Types/Enums/Enums.Core.Search.g.cs | 21 + .../_Generated/Types/Enums/Enums.Eql.g.cs | 76 ++ .../_Generated/Types/Enums/Enums.Mapping.g.cs | 7 + .../Types/Enums/Enums.NoNamespace.g.cs | 149 +++ .../_Generated/Types/Enums/Enums.Tasks.g.cs | 86 ++ .../_Generated/Types/Eql/EqlHits.g.cs | 49 + .../_Generated/Types/Eql/HitsEvent.g.cs | 52 + .../_Generated/Types/Eql/HitsSequence.g.cs | 43 + .../Types/IndexManagement/DataStream.g.cs | 2 +- .../IndexManagement/DataStreamLifecycle.g.cs | 86 +- .../DataStreamLifecycleDownsampling.g.cs | 127 +++ ...n.g.cs => DataStreamLifecycleExplain.g.cs} | 8 +- ...ataStreamLifecycleRolloverConditions.g.cs} | 2 +- ...s => DataStreamLifecycleWithRollover.g.cs} | 10 +- .../DataStreamWithLifecycle.g.cs | 36 + ...taLifecycle.g.cs => DownsampleConfig.g.cs} | 38 +- .../IndexManagement/DownsamplingRound.g.cs | 117 +++ .../Types/IndexManagement/IndexState.g.cs | 30 +- .../IndexManagement/IndexTemplateMapping.g.cs | 30 +- .../IndexManagement/IndexTemplateSummary.g.cs | 2 +- .../_Generated/Types/Sql/Column.g.cs | 36 + .../_Generated/Types/TaskFailure.g.cs | 40 + .../_Generated/Types/Tasks/NodeTasks.g.cs | 46 + .../Types/Tasks/ParentTaskInfo.g.cs | 60 ++ .../_Generated/Types/Tasks/TaskInfos.g.cs | 42 + .../IndexManagement/GetTemplateResponse.cs | 4 - .../Elastic.Clients.Elasticsearch.csproj | 3 + .../_Generated/Api/BulkRequest.g.cs | 42 +- .../_Generated/Api/ClearScrollRequest.g.cs | 10 +- .../Api/ClosePointInTimeRequest.g.cs | 10 +- .../_Generated/Api/CountRequest.g.cs | 66 +- .../_Generated/Api/CreateRequest.g.cs | 34 +- .../_Generated/Api/DeleteByQueryRequest.g.cs | 144 +-- .../Api/DeleteByQueryRethrottleRequest.g.cs | 4 +- .../_Generated/Api/DeleteRequest.g.cs | 38 +- .../_Generated/Api/DeleteScriptRequest.g.cs | 14 +- .../_Generated/Api/ExistsRequest.g.cs | 46 +- .../_Generated/Api/ExistsSourceRequest.g.cs | 42 +- .../_Generated/Api/ExplainRequest.g.cs | 64 +- .../_Generated/Api/GetRequest.g.cs | 8 +- .../_Generated/Api/GetScriptRequest.g.cs | 6 +- .../DeleteDataLifecycleRequest.g.cs | 6 +- .../DeleteDataLifecycleResponse.g.cs | 3 - .../ExplainDataLifecycleRequest.g.cs | 9 +- .../ExplainDataLifecycleResponse.g.cs | 7 +- .../GetDataLifecycleRequest.g.cs | 6 +- .../GetDataLifecycleResponse.g.cs | 5 +- .../PutDataLifecycleRequest.g.cs | 54 +- .../PutDataLifecycleResponse.g.cs | 3 - .../_Generated/Api/IndexRequest.g.cs | 48 +- .../Api/MultiSearchTemplateRequest.g.cs | 20 +- .../Api/MultiTermVectorsRequest.g.cs | 64 +- .../Api/OpenPointInTimeRequest.g.cs | 20 +- .../_Generated/Api/PutScriptRequest.g.cs | 24 +- .../_Generated/Api/ReindexRequest.g.cs | 86 +- .../Api/ReindexRethrottleRequest.g.cs | 8 +- .../Api/RenderSearchTemplateRequest.g.cs | 26 +- .../_Generated/Api/SearchShardsRequest.g.cs | 24 +- .../_Generated/Api/SearchTemplateRequest.g.cs | 64 +- .../Api/Sql/ClearCursorRequest.g.cs | 6 + .../_Generated/Api/Sql/QueryRequest.g.cs | 28 +- .../_Generated/Api/Tasks/CancelRequest.g.cs | 12 +- .../_Generated/Api/Tasks/GetTasksRequest.g.cs | 8 +- .../_Generated/Api/TermVectorsRequest.g.cs | 65 +- .../_Generated/Api/UpdateByQueryRequest.g.cs | 160 +-- .../Api/UpdateByQueryRethrottleRequest.g.cs | 4 +- .../ElasticsearchClient.AsyncSearch.g.cs | 80 +- .../Client/ElasticsearchClient.Cluster.g.cs | 88 +- .../Client/ElasticsearchClient.Enrich.g.cs | 36 +- .../Client/ElasticsearchClient.Eql.g.cs | 40 +- .../Client/ElasticsearchClient.Graph.g.cs | 24 +- .../Client/ElasticsearchClient.Indices.g.cs | 340 +++---- .../Client/ElasticsearchClient.Ingest.g.cs | 52 +- .../Client/ElasticsearchClient.Tasks.g.cs | 48 +- .../Client/ElasticsearchClient.g.cs | 76 +- .../_Generated/Types/ClusterStatistics.g.cs | 6 + .../Types/Core/Bulk/ResponseItem.g.cs | 35 + .../Core/MSearchTemplate/TemplateConfig.g.cs | 20 + .../MultiTermVectorsOperation.g.cs | 129 +++ .../Types/Core/Reindex/Destination.g.cs | 34 + .../Types/Core/Reindex/RemoteSource.g.cs | 41 + .../_Generated/Types/Core/Reindex/Source.g.cs | 59 ++ .../Core/ReindexRethrottle/ReindexStatus.g.cs | 43 + .../Types/Core/Search/CompletionContext.g.cs | 34 + .../Core/Search/CompletionSuggester.g.cs | 40 + .../Types/Core/Search/DirectGenerator.g.cs | 118 +++ .../Types/Core/Search/FieldSuggester.g.cs | 29 + .../Core/Search/LaplaceSmoothingModel.g.cs | 6 + .../Core/Search/PhraseSuggestCollate.g.cs | 20 + .../Search/PhraseSuggestCollateQuery.g.cs | 13 + .../Core/Search/PhraseSuggestHighlight.g.cs | 13 + .../Types/Core/Search/PhraseSuggester.g.cs | 110 +++ .../Types/Core/Search/RegexOptions.g.cs | 13 + .../Search/StupidBackoffSmoothingModel.g.cs | 6 + .../Types/Core/Search/SuggestFuzziness.g.cs | 34 + .../Types/Core/Search/TermSuggester.g.cs | 110 +++ .../Types/Core/TermVectors/Filter.g.cs | 48 + .../Types/Enums/Enums.Core.Search.g.cs | 21 + .../_Generated/Types/Enums/Enums.Mapping.g.cs | 7 + .../Types/Enums/Enums.NoNamespace.g.cs | 24 + .../Types/IndexManagement/DataStream.g.cs | 2 +- .../IndexManagement/DataStreamLifecycle.g.cs | 86 +- .../DataStreamLifecycleDownsampling.g.cs | 127 +++ ...n.g.cs => DataStreamLifecycleExplain.g.cs} | 8 +- ...ataStreamLifecycleRolloverConditions.g.cs} | 2 +- ...s => DataStreamLifecycleWithRollover.g.cs} | 10 +- .../DataStreamWithLifecycle.g.cs | 36 + ...taLifecycle.g.cs => DownsampleConfig.g.cs} | 38 +- .../IndexManagement/DownsamplingRound.g.cs | 117 +++ .../Types/IndexManagement/IndexState.g.cs | 30 +- .../IndexManagement/IndexTemplateMapping.g.cs | 30 +- .../IndexManagement/IndexTemplateSummary.g.cs | 2 +- 219 files changed, 14494 insertions(+), 2300 deletions(-) create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlDeleteRequest.g.cs rename src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/{IndexManagement/DeleteTemplateResponse.g.cs => Eql/EqlDeleteResponse.g.cs} (92%) create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlGetRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlGetResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/GetEqlStatusRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/GetEqlStatusResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExplainRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExplainResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsTemplateRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/FlushRequest.g.cs rename src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/{ExistsTemplateResponse.g.cs => FlushResponse.g.cs} (88%) create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ForcemergeResponse.g.cs delete mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetTemplateRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RefreshRequest.g.cs rename src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/{GetTemplateResponse.g.cs => RefreshResponse.g.cs} (80%) create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRethrottleRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRethrottleResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/ClearCursorRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/ClearCursorResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/DeleteAsyncRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/DeleteAsyncResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncStatusRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncStatusResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/QueryRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/QueryResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Tasks/CancelRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Tasks/CancelResponse.g.cs rename src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/{IndexManagement/DeleteTemplateRequest.g.cs => Tasks/GetTasksRequest.g.cs} (51%) create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Tasks/GetTasksResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Tasks/ListRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Tasks/ListResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRethrottleResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Eql.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Sql.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Tasks.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Reindex/Destination.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Reindex/RemoteSource.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Reindex/Source.g.cs rename src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/{IndexManagement/TemplateMapping.g.cs => Core/ReindexRethrottle/ReindexNode.g.cs} (64%) create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/ReindexRethrottle/ReindexStatus.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/ReindexRethrottle/ReindexTask.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/UpdateByQueryRethrottle/UpdateByQueryRethrottleNode.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Eql.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Tasks.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Eql/EqlHits.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Eql/HitsEvent.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Eql/HitsSequence.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleDownsampling.g.cs rename src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/{DataLifecycleExplain.g.cs => DataStreamLifecycleExplain.g.cs} (91%) rename src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/{DlmRolloverConditions.g.cs => DataStreamLifecycleRolloverConditions.g.cs} (97%) rename src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/{DataLifecycleWithRollover.g.cs => DataStreamLifecycleWithRollover.g.cs} (85%) create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs rename src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/{DataLifecycle.g.cs => DownsampleConfig.g.cs} (60%) create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DownsamplingRound.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Sql/Column.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TaskFailure.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/NodeTasks.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/ParentTaskInfo.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/TaskInfos.g.cs rename src/{Elastic.Clients.Elasticsearch.Shared => Elastic.Clients.Elasticsearch}/Api/IndexManagement/GetTemplateResponse.cs (81%) create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleDownsampling.g.cs rename src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/{DataLifecycleExplain.g.cs => DataStreamLifecycleExplain.g.cs} (89%) rename src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/{DlmRolloverConditions.g.cs => DataStreamLifecycleRolloverConditions.g.cs} (97%) rename src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/{DataLifecycleWithRollover.g.cs => DataStreamLifecycleWithRollover.g.cs} (83%) create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs rename src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/{DataLifecycle.g.cs => DownsampleConfig.g.cs} (61%) create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DownsamplingRound.g.cs diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs index d2b24366f4c..4d7c69eba2d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ApiUrlLookup.g.cs @@ -36,6 +36,7 @@ internal static class ApiUrlLookup internal static ApiUrls NoNamespaceCount = new ApiUrls(new[] { "_count", "{index}/_count" }); internal static ApiUrls NoNamespaceCreate = new ApiUrls(new[] { "{index}/_create/{id}" }); internal static ApiUrls NoNamespaceDeleteByQuery = new ApiUrls(new[] { "{index}/_delete_by_query" }); + internal static ApiUrls NoNamespaceDeleteByQueryRethrottle = new ApiUrls(new[] { "_delete_by_query/{task_id}/_rethrottle" }); internal static ApiUrls NoNamespaceDelete = new ApiUrls(new[] { "{index}/_doc/{id}" }); internal static ApiUrls NoNamespaceDeleteScript = new ApiUrls(new[] { "_scripts/{id}" }); internal static ApiUrls EnrichDeletePolicy = new ApiUrls(new[] { "_enrich/policy/{name}" }); @@ -43,8 +44,13 @@ internal static class ApiUrlLookup internal static ApiUrls EnrichExecutePolicy = new ApiUrls(new[] { "_enrich/policy/{name}/_execute" }); internal static ApiUrls EnrichGetPolicy = new ApiUrls(new[] { "_enrich/policy/{name}", "_enrich/policy" }); internal static ApiUrls EnrichPutPolicy = new ApiUrls(new[] { "_enrich/policy/{name}" }); + internal static ApiUrls EqlDelete = new ApiUrls(new[] { "_eql/search/{id}" }); + internal static ApiUrls EqlGet = new ApiUrls(new[] { "_eql/search/{id}" }); + internal static ApiUrls EqlSearch = new ApiUrls(new[] { "{index}/_eql/search" }); + internal static ApiUrls EqlGetStatus = new ApiUrls(new[] { "_eql/search/status/{id}" }); internal static ApiUrls NoNamespaceExists = new ApiUrls(new[] { "{index}/_doc/{id}" }); internal static ApiUrls NoNamespaceExistsSource = new ApiUrls(new[] { "{index}/_source/{id}" }); + 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 NoNamespaceGetScript = new ApiUrls(new[] { "_scripts/{id}" }); @@ -58,19 +64,18 @@ internal static class ApiUrlLookup internal static ApiUrls IndexManagementDeleteDataStream = new ApiUrls(new[] { "_data_stream/{name}" }); internal static ApiUrls IndexManagementDelete = new ApiUrls(new[] { "{index}" }); internal static ApiUrls IndexManagementDeleteIndexTemplate = new ApiUrls(new[] { "_index_template/{name}" }); - internal static ApiUrls IndexManagementDeleteTemplate = new ApiUrls(new[] { "_template/{name}" }); internal static ApiUrls IndexManagementExistsAlias = new ApiUrls(new[] { "_alias/{name}", "{index}/_alias/{name}" }); internal static ApiUrls IndexManagementExistsIndexTemplate = new ApiUrls(new[] { "_index_template/{name}" }); internal static ApiUrls IndexManagementExists = new ApiUrls(new[] { "{index}" }); - internal static ApiUrls IndexManagementExistsTemplate = new ApiUrls(new[] { "_template/{name}" }); internal static ApiUrls IndexManagementExplainDataLifecycle = new ApiUrls(new[] { "{index}/_lifecycle/explain" }); + internal static ApiUrls IndexManagementFlush = new ApiUrls(new[] { "_flush", "{index}/_flush" }); + internal static ApiUrls IndexManagementForcemerge = new ApiUrls(new[] { "_forcemerge", "{index}/_forcemerge" }); internal static ApiUrls IndexManagementGetAlias = new ApiUrls(new[] { "_alias", "_alias/{name}", "{index}/_alias/{name}", "{index}/_alias" }); internal static ApiUrls IndexManagementGetDataLifecycle = new ApiUrls(new[] { "_data_stream/{name}/_lifecycle" }); internal static ApiUrls IndexManagementGetDataStream = new ApiUrls(new[] { "_data_stream", "_data_stream/{name}" }); internal static ApiUrls IndexManagementGet = new ApiUrls(new[] { "{index}" }); internal static ApiUrls IndexManagementGetIndexTemplate = new ApiUrls(new[] { "_index_template", "_index_template/{name}" }); internal static ApiUrls IndexManagementGetMapping = new ApiUrls(new[] { "_mapping", "{index}/_mapping" }); - internal static ApiUrls IndexManagementGetTemplate = new ApiUrls(new[] { "_template", "_template/{name}" }); internal static ApiUrls IndexManagementStats = new ApiUrls(new[] { "_stats", "_stats/{metric}", "{index}/_stats", "{index}/_stats/{metric}" }); internal static ApiUrls IndexManagementMigrateToDataStream = new ApiUrls(new[] { "_data_stream/_migrate/{name}" }); internal static ApiUrls IndexManagementOpen = new ApiUrls(new[] { "{index}/_open" }); @@ -79,6 +84,7 @@ internal static class ApiUrlLookup internal static ApiUrls IndexManagementPutIndexTemplate = new ApiUrls(new[] { "_index_template/{name}" }); internal static ApiUrls IndexManagementPutMapping = new ApiUrls(new[] { "{index}/_mapping" }); internal static ApiUrls IndexManagementPutTemplate = new ApiUrls(new[] { "_template/{name}" }); + internal static ApiUrls IndexManagementRefresh = new ApiUrls(new[] { "_refresh", "{index}/_refresh" }); internal static ApiUrls IndexManagementRollover = new ApiUrls(new[] { "{alias}/_rollover", "{alias}/_rollover/{new_index}" }); internal static ApiUrls IndexManagementSimulateIndexTemplate = new ApiUrls(new[] { "_index_template/_simulate_index/{name}" }); internal static ApiUrls IndexManagementSimulateTemplate = new ApiUrls(new[] { "_index_template/_simulate", "_index_template/_simulate/{name}" }); @@ -99,12 +105,23 @@ internal static class ApiUrlLookup internal static ApiUrls NoNamespacePing = new ApiUrls(new[] { "" }); internal static ApiUrls NoNamespacePutScript = new ApiUrls(new[] { "_scripts/{id}", "_scripts/{id}/{context}" }); internal static ApiUrls NoNamespaceRankEval = new ApiUrls(new[] { "_rank_eval", "{index}/_rank_eval" }); + internal static ApiUrls NoNamespaceReindex = new ApiUrls(new[] { "_reindex" }); + internal static ApiUrls NoNamespaceReindexRethrottle = new ApiUrls(new[] { "_reindex/{task_id}/_rethrottle" }); internal static ApiUrls NoNamespaceRenderSearchTemplate = new ApiUrls(new[] { "_render/template", "_render/template/{id}" }); internal static ApiUrls NoNamespaceScroll = new ApiUrls(new[] { "_search/scroll" }); internal static ApiUrls NoNamespaceSearch = new ApiUrls(new[] { "_search", "{index}/_search" }); internal static ApiUrls NoNamespaceSearchTemplate = new ApiUrls(new[] { "_search/template", "{index}/_search/template" }); + internal static ApiUrls SqlClearCursor = new ApiUrls(new[] { "_sql/close" }); + internal static ApiUrls SqlDeleteAsync = new ApiUrls(new[] { "_sql/async/delete/{id}" }); + internal static ApiUrls SqlGetAsync = new ApiUrls(new[] { "_sql/async/{id}" }); + internal static ApiUrls SqlGetAsyncStatus = new ApiUrls(new[] { "_sql/async/status/{id}" }); + internal static ApiUrls SqlQuery = new ApiUrls(new[] { "_sql" }); + internal static ApiUrls TasksCancel = new ApiUrls(new[] { "_tasks/_cancel", "_tasks/{task_id}/_cancel" }); + internal static ApiUrls TasksGet = new ApiUrls(new[] { "_tasks/{task_id}" }); + internal static ApiUrls TasksList = new ApiUrls(new[] { "_tasks" }); internal static ApiUrls NoNamespaceTermsEnum = new ApiUrls(new[] { "{index}/_terms_enum" }); internal static ApiUrls NoNamespaceTermvectors = new ApiUrls(new[] { "{index}/_termvectors/{id}", "{index}/_termvectors" }); internal static ApiUrls NoNamespaceUpdateByQuery = new ApiUrls(new[] { "{index}/_update_by_query" }); + internal static ApiUrls NoNamespaceUpdateByQueryRethrottle = new ApiUrls(new[] { "_update_by_query/{task_id}/_rethrottle" }); internal static ApiUrls NoNamespaceUpdate = new ApiUrls(new[] { "{index}/_update/{id}" }); } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/BulkRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/BulkRequest.g.cs index 98072bac216..d78c9ef5e29 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/BulkRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/BulkRequest.g.cs @@ -32,53 +32,53 @@ namespace Elastic.Clients.Elasticsearch.Serverless; public sealed class BulkRequestParameters : RequestParameters { /// - /// The pipeline id to preprocess incoming documents with + /// ID of the pipeline to use to preprocess incoming documents.
If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request.
If a final pipeline is configured it will always run, regardless of the value of this parameter.
///
public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } /// - /// If `true` 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` (the default) then do nothing with refreshes. + /// If `true`, Elasticsearch refreshes 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` do nothing with refreshes.
Valid values: `true`, `false`, `wait_for`.
///
public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specific routing value + /// Custom value used to route operations to a specific shard. /// public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// True or false to return the _source field or not, or default list of fields to return, can be overridden on each sub-request + /// `true` or `false` to return the `_source` field or not, or a list of fields to return. /// public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } /// - /// Default list of fields to exclude from the returned _source field, can be overridden on each sub-request + /// A comma-separated list of source fields to exclude from the response. /// public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } /// - /// Default list of fields to extract and return from the _source field, can be overridden on each sub-request + /// A comma-separated list of source fields to include in the response. /// public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } /// - /// Explicit operation timeout + /// Period each action waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. /// public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Sets the number of shard copies that must be active before proceeding with the bulk operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// The number of shard copies that must be active before proceeding with the operation.
Set to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } /// - /// Sets require_alias for all incoming documents. Defaults to unset (false) + /// If `true`, the request’s actions must target an index alias. /// public bool? RequireAlias { get => Q("require_alias"); set => Q("require_alias", value); } } /// -/// Allows to perform multiple index/update/delete operations in a single request. +/// Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
///
public sealed partial class BulkRequest : PlainRequest { @@ -99,62 +99,62 @@ public BulkRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) : internal override string OperationName => "bulk"; /// - /// The pipeline id to preprocess incoming documents with + /// ID of the pipeline to use to preprocess incoming documents.
If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request.
If a final pipeline is configured it will always run, regardless of the value of this parameter.
///
[JsonIgnore] public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } /// - /// If `true` 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` (the default) then do nothing with refreshes. + /// If `true`, Elasticsearch refreshes 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` do nothing with refreshes.
Valid values: `true`, `false`, `wait_for`.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specific routing value + /// Custom value used to route operations to a specific shard. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// True or false to return the _source field or not, or default list of fields to return, can be overridden on each sub-request + /// `true` or `false` to return the `_source` field or not, or a list of fields to return. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } /// - /// Default list of fields to exclude from the returned _source field, can be overridden on each sub-request + /// A comma-separated list of source fields to exclude from the response. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } /// - /// Default list of fields to extract and return from the _source field, can be overridden on each sub-request + /// A comma-separated list of source fields to include in the response. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } /// - /// Explicit operation timeout + /// Period each action waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Sets the number of shard copies that must be active before proceeding with the bulk operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// The number of shard copies that must be active before proceeding with the operation.
Set to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } /// - /// Sets require_alias for all incoming documents. Defaults to unset (false) + /// If `true`, the request’s actions must target an index alias. /// [JsonIgnore] public bool? RequireAlias { get => Q("require_alias"); set => Q("require_alias", value); } } /// -/// Allows to perform multiple index/update/delete operations in a single request. +/// Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
///
public sealed partial class BulkRequestDescriptor : RequestDescriptor, BulkRequestParameters> { @@ -194,7 +194,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Allows to perform multiple index/update/delete operations in a single request. +/// Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
///
public sealed partial class BulkRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClearScrollRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClearScrollRequest.g.cs index 5546255a367..f8eae2bc7aa 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClearScrollRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClearScrollRequest.g.cs @@ -34,7 +34,7 @@ public sealed class ClearScrollRequestParameters : RequestParameters } /// -/// Explicitly clears the search context for a scroll. +/// Clears the search context and results for a scrolling search. /// public sealed partial class ClearScrollRequest : PlainRequest { @@ -46,12 +46,15 @@ public sealed partial class ClearScrollRequest : PlainRequest "clear_scroll"; + /// + /// Scroll IDs to clear.
To clear all scroll IDs, use `_all`.
+ ///
[JsonInclude, JsonPropertyName("scroll_id")] public Elastic.Clients.Elasticsearch.Serverless.ScrollIds? ScrollId { get; set; } } /// -/// Explicitly clears the search context for a scroll. +/// Clears the search context and results for a scrolling search. /// public sealed partial class ClearScrollRequestDescriptor : RequestDescriptor { @@ -71,6 +74,9 @@ public ClearScrollRequestDescriptor() private Elastic.Clients.Elasticsearch.Serverless.ScrollIds? ScrollIdValue { get; set; } + /// + /// Scroll IDs to clear.
To clear all scroll IDs, use `_all`.
+ ///
public ClearScrollRequestDescriptor ScrollId(Elastic.Clients.Elasticsearch.Serverless.ScrollIds? scrollId) { ScrollIdValue = scrollId; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClosePointInTimeRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClosePointInTimeRequest.g.cs index 29127cd766f..6d990a5d10f 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClosePointInTimeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ClosePointInTimeRequest.g.cs @@ -34,7 +34,7 @@ public sealed class ClosePointInTimeRequestParameters : RequestParameters } /// -/// Close a point in time +/// Closes a point-in-time. /// public sealed partial class ClosePointInTimeRequest : PlainRequest { @@ -46,12 +46,15 @@ public sealed partial class ClosePointInTimeRequest : PlainRequest "close_point_in_time"; + /// + /// The ID of the point-in-time. + /// [JsonInclude, JsonPropertyName("id")] public Elastic.Clients.Elasticsearch.Serverless.Id Id { get; set; } } /// -/// Close a point in time +/// Closes a point-in-time. /// public sealed partial class ClosePointInTimeRequestDescriptor : RequestDescriptor { @@ -71,6 +74,9 @@ public ClosePointInTimeRequestDescriptor() private Elastic.Clients.Elasticsearch.Serverless.Id IdValue { get; set; } + /// + /// The ID of the point-in-time. + /// public ClosePointInTimeRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) { IdValue = id; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CountRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CountRequest.g.cs index 6a07cd81e8a..9f7368a5a2e 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CountRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CountRequest.g.cs @@ -32,72 +32,72 @@ namespace Elastic.Clients.Elasticsearch.Serverless; public sealed class CountRequestParameters : RequestParameters { /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) + /// 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.
///
public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } /// - /// The analyzer to use for the query string + /// Analyzer to use for the query string.
This parameter can only be used when the `q` query string parameter is specified.
///
public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } /// - /// Specify whether wildcard and prefix queries should be analyzed (default: false) + /// If `true`, wildcard and prefix queries are analyzed.
This parameter can only be used when the `q` query string parameter is specified.
///
public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } /// - /// The default operator for query string query (AND or OR) + /// The default operator for query string query: `AND` or `OR`.
This parameter can only be used when the `q` query string parameter is specified.
///
public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } /// - /// The field to use as default where no field prefix is given in the query string + /// Field to use as default where no field prefix is given in the query string.
This parameter can only be used when the `q` query string parameter is specified.
///
public string? Df { get => Q("df"); set => Q("df", value); } /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. + /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`.
///
public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } /// - /// Whether specified concrete, expanded or aliased indices should be ignored when throttled + /// If `true`, concrete, expanded or aliased indices are ignored when frozen. /// public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If `false`, the request returns an error if it targets a missing or closed index. /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } /// - /// Specify whether format-based query failures (such as providing text to a numeric field) should be ignored + /// If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. /// public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } /// - /// Include only documents with a specific `_score` value in the result + /// Sets the minimum `_score` value that documents must have to be included in the result. /// public double? MinScore { get => Q("min_score"); set => Q("min_score", value); } /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// A comma-separated list of specific routing values + /// Custom value used to route operations to a specific shard. /// public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// The maximum count for each shard, upon reaching which the query execution will terminate early + /// Maximum number of documents to collect for each shard.
If a query reaches this limit, Elasticsearch terminates the query early.
Elasticsearch collects documents before sorting.
///
public long? TerminateAfter { get => Q("terminate_after"); set => Q("terminate_after", value); } /// - /// Query in the Lucene query string syntax + /// Query in the Lucene query string syntax. /// public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } } @@ -124,88 +124,92 @@ public CountRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : internal override string OperationName => "count"; /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) + /// 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.
///
[JsonIgnore] public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } /// - /// The analyzer to use for the query string + /// Analyzer to use for the query string.
This parameter can only be used when the `q` query string parameter is specified.
///
[JsonIgnore] public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } /// - /// Specify whether wildcard and prefix queries should be analyzed (default: false) + /// If `true`, wildcard and prefix queries are analyzed.
This parameter can only be used when the `q` query string parameter is specified.
///
[JsonIgnore] public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } /// - /// The default operator for query string query (AND or OR) + /// The default operator for query string query: `AND` or `OR`.
This parameter can only be used when the `q` query string parameter is specified.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } /// - /// The field to use as default where no field prefix is given in the query string + /// Field to use as default where no field prefix is given in the query string.
This parameter can only be used when the `q` query string parameter is specified.
///
[JsonIgnore] public string? Df { get => Q("df"); set => Q("df", value); } /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. + /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`.
///
[JsonIgnore] public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } /// - /// Whether specified concrete, expanded or aliased indices should be ignored when throttled + /// If `true`, concrete, expanded or aliased indices are ignored when frozen. /// [JsonIgnore] public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If `false`, the request returns an error if it targets a missing or closed index. /// [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } /// - /// Specify whether format-based query failures (such as providing text to a numeric field) should be ignored + /// If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. /// [JsonIgnore] public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } /// - /// Include only documents with a specific `_score` value in the result + /// Sets the minimum `_score` value that documents must have to be included in the result. /// [JsonIgnore] public double? MinScore { get => Q("min_score"); set => Q("min_score", value); } /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
[JsonIgnore] public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// A comma-separated list of specific routing values + /// Custom value used to route operations to a specific shard. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// The maximum count for each shard, upon reaching which the query execution will terminate early + /// Maximum number of documents to collect for each shard.
If a query reaches this limit, Elasticsearch terminates the query early.
Elasticsearch collects documents before sorting.
///
[JsonIgnore] public long? TerminateAfter { get => Q("terminate_after"); set => Q("terminate_after", value); } /// - /// Query in the Lucene query string syntax + /// Query in the Lucene query string syntax. /// [JsonIgnore] public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } + + /// + /// Defines the search definition using the Query DSL. + /// [JsonInclude, JsonPropertyName("query")] public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; } } @@ -258,6 +262,9 @@ public CountRequestDescriptor Indices(Elastic.Clients.Elasticsearch.S private QueryDsl.QueryDescriptor QueryDescriptor { get; set; } private Action> QueryDescriptorAction { get; set; } + /// + /// Defines the search definition using the Query DSL. + /// public CountRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) { QueryDescriptor = null; @@ -353,6 +360,9 @@ public CountRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.I private QueryDsl.QueryDescriptor QueryDescriptor { get; set; } private Action QueryDescriptorAction { get; set; } + /// + /// Defines the search definition using the Query DSL. + /// public CountRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) { QueryDescriptor = null; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CreateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CreateRequest.g.cs index b17552ddfa4..9f21d8c8336 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CreateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/CreateRequest.g.cs @@ -32,44 +32,43 @@ namespace Elastic.Clients.Elasticsearch.Serverless; public sealed class CreateRequestParameters : RequestParameters { /// - /// The pipeline id to preprocess incoming documents with + /// ID of the pipeline to use to preprocess incoming documents.
If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request.
If a final pipeline is configured it will always run, regardless of the value of this parameter.
///
public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } /// - /// If `true` 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` (the default) then do nothing with refreshes. + /// If `true`, Elasticsearch refreshes 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` do nothing with refreshes.
Valid values: `true`, `false`, `wait_for`.
///
public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specific routing value + /// Custom value used to route operations to a specific shard. /// public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Explicit operation timeout + /// Period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. /// public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Explicit version number for concurrency control + /// Explicit version number for concurrency control.
The specified version must match the current version of the document for the request to succeed.
///
public long? Version { get => Q("version"); set => Q("version", value); } /// - /// Specific version type + /// Specific version type: `external`, `external_gte`. /// public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } /// - /// Sets the number of shard copies that must be active before proceeding with the index operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// The number of shard copies that must be active before proceeding with the operation.
Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } } /// -/// Creates a new document in the index. -/// Returns a 409 response when a document with a same ID already exists in the index. +/// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
///
public sealed partial class CreateRequest : PlainRequest { @@ -89,51 +88,50 @@ public CreateRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index, E public TDocument Document { get; set; } /// - /// The pipeline id to preprocess incoming documents with + /// ID of the pipeline to use to preprocess incoming documents.
If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request.
If a final pipeline is configured it will always run, regardless of the value of this parameter.
///
[JsonIgnore] public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } /// - /// If `true` 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` (the default) then do nothing with refreshes. + /// If `true`, Elasticsearch refreshes 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` do nothing with refreshes.
Valid values: `true`, `false`, `wait_for`.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specific routing value + /// Custom value used to route operations to a specific shard. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Explicit operation timeout + /// Period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Explicit version number for concurrency control + /// Explicit version number for concurrency control.
The specified version must match the current version of the document for the request to succeed.
///
[JsonIgnore] public long? Version { get => Q("version"); set => Q("version", value); } /// - /// Specific version type + /// Specific version type: `external`, `external_gte`. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } /// - /// Sets the number of shard copies that must be active before proceeding with the index operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// The number of shard copies that must be active before proceeding with the operation.
Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } } /// -/// Creates a new document in the index. -/// Returns a 409 response when a document with a same ID already exists in the index. +/// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
///
public sealed partial class CreateRequestDescriptor : RequestDescriptor, CreateRequestParameters> { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRequest.g.cs index 836b7e08810..01c1a3486b5 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRequest.g.cs @@ -32,37 +32,37 @@ namespace Elastic.Clients.Elasticsearch.Serverless; public sealed class DeleteByQueryRequestParameters : RequestParameters { /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) + /// 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`.
///
public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } /// - /// The analyzer to use for the query string + /// Analyzer to use for the query string. /// public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } /// - /// Specify whether wildcard and prefix queries should be analyzed (default: false) + /// If `true`, wildcard and prefix queries are analyzed. /// public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } /// - /// What to do when the delete by query hits version conflicts? + /// What to do if delete by query hits version conflicts: `abort` or `proceed`. /// public Elastic.Clients.Elasticsearch.Serverless.Conflicts? Conflicts { get => Q("conflicts"); set => Q("conflicts", value); } /// - /// The default operator for query string query (AND or OR) + /// The default operator for query string query: `AND` or `OR`. /// public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } /// - /// The field to use as default where no field prefix is given in the query string + /// Field to use as default where no field prefix is given in the query string. /// public string? Df { get => Q("df"); set => Q("df", value); } /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. + /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
///
public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } @@ -72,108 +72,108 @@ public sealed class DeleteByQueryRequestParameters : RequestParameters public long? From { get => Q("from"); set => Q("from", value); } /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If `false`, the request returns an error if it targets a missing or closed index. /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } /// - /// Specify whether format-based query failures (such as providing text to a numeric field) should be ignored + /// If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. /// public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Should the affected indexes be refreshed? + /// If `true`, Elasticsearch refreshes all shards involved in the delete by query after the request completes. /// public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specify if request cache should be used for this request or not, defaults to index level setting + /// If `true`, the request cache is used for this request.
Defaults to the index-level setting.
///
public bool? RequestCache { get => Q("request_cache"); set => Q("request_cache", value); } /// - /// The throttle for this request in sub-requests per second. -1 means no throttle. + /// The throttle for this request in sub-requests per second. /// public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } /// - /// A comma-separated list of specific routing values + /// Custom value used to route operations to a specific shard. /// public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Query in the Lucene query string syntax + /// Query in the Lucene query string syntax. /// public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } /// - /// Specify how long a consistent view of the index should be maintained for scrolled search + /// Period to retain the search context for scrolling. /// public Elastic.Clients.Elasticsearch.Serverless.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); } /// - /// Size on the scroll request powering the delete by query + /// Size of the scroll request that powers the operation. /// public long? ScrollSize { get => Q("scroll_size"); set => Q("scroll_size", value); } /// - /// Explicit timeout for each search request. Defaults to no timeout. + /// Explicit timeout for each search request.
Defaults to no timeout.
///
public Elastic.Clients.Elasticsearch.Serverless.Duration? SearchTimeout { get => Q("search_timeout"); set => Q("search_timeout", value); } /// - /// Search operation type + /// The type of the search operation.
Available options: `query_then_fetch`, `dfs_query_then_fetch`.
///
public Elastic.Clients.Elasticsearch.Serverless.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } /// - /// The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be set to `auto`. + /// The number of slices this task should be divided into. /// public Elastic.Clients.Elasticsearch.Serverless.Slices? Slices { get => Q("slices"); set => Q("slices", value); } /// - /// A comma-separated list of : pairs + /// A comma-separated list of : pairs. /// public ICollection? Sort { get => Q?>("sort"); set => Q("sort", value); } /// - /// Specific 'tag' of the request for logging and statistical purposes + /// Specific `tag` of the request for logging and statistical purposes. /// public ICollection? Stats { get => Q?>("stats"); set => Q("stats", value); } /// - /// The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early. + /// Maximum number of documents to collect for each shard.
If a query reaches this limit, Elasticsearch terminates the query early.
Elasticsearch collects documents before sorting.
Use with caution.
Elasticsearch applies this parameter to each shard handling the request.
When possible, let Elasticsearch perform early termination automatically.
Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers.
///
public long? TerminateAfter { get => Q("terminate_after"); set => Q("terminate_after", value); } /// - /// Time each individual bulk request should wait for shards that are unavailable. + /// Period each deletion request waits for active shards. /// public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Specify whether to return document version as part of a hit + /// If `true`, returns the document version as part of a hit. /// public bool? Version { get => Q("version"); set => Q("version", value); } /// - /// Sets the number of shard copies that must be active before proceeding with the delete by query operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// The number of shard copies that must be active before proceeding with the operation.
Set to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } /// - /// Should the request should block until the delete by query is complete. + /// If `true`, the request blocks until the operation is complete. /// public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } } /// -/// Deletes documents matching the provided query. +/// Deletes documents that match the specified query. /// public sealed partial class DeleteByQueryRequest : PlainRequest { @@ -190,43 +190,43 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Serverless.Indices ind internal override string OperationName => "delete_by_query"; /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) + /// 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`.
///
[JsonIgnore] public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } /// - /// The analyzer to use for the query string + /// Analyzer to use for the query string. /// [JsonIgnore] public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } /// - /// Specify whether wildcard and prefix queries should be analyzed (default: false) + /// If `true`, wildcard and prefix queries are analyzed. /// [JsonIgnore] public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } /// - /// What to do when the delete by query hits version conflicts? + /// What to do if delete by query hits version conflicts: `abort` or `proceed`. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Conflicts? Conflicts { get => Q("conflicts"); set => Q("conflicts", value); } /// - /// The default operator for query string query (AND or OR) + /// The default operator for query string query: `AND` or `OR`. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } /// - /// The field to use as default where no field prefix is given in the query string + /// Field to use as default where no field prefix is given in the query string. /// [JsonIgnore] public string? Df { get => Q("df"); set => Q("df", value); } /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. + /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
///
[JsonIgnore] public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } @@ -238,134 +238,146 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Serverless.Indices ind public long? From { get => Q("from"); set => Q("from", value); } /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If `false`, the request returns an error if it targets a missing or closed index. /// [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } /// - /// Specify whether format-based query failures (such as providing text to a numeric field) should be ignored + /// If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. /// [JsonIgnore] public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
[JsonIgnore] public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Should the affected indexes be refreshed? + /// If `true`, Elasticsearch refreshes all shards involved in the delete by query after the request completes. /// [JsonIgnore] public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specify if request cache should be used for this request or not, defaults to index level setting + /// If `true`, the request cache is used for this request.
Defaults to the index-level setting.
///
[JsonIgnore] public bool? RequestCache { get => Q("request_cache"); set => Q("request_cache", value); } /// - /// The throttle for this request in sub-requests per second. -1 means no throttle. + /// The throttle for this request in sub-requests per second. /// [JsonIgnore] public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } /// - /// A comma-separated list of specific routing values + /// Custom value used to route operations to a specific shard. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Query in the Lucene query string syntax + /// Query in the Lucene query string syntax. /// [JsonIgnore] public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } /// - /// Specify how long a consistent view of the index should be maintained for scrolled search + /// Period to retain the search context for scrolling. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); } /// - /// Size on the scroll request powering the delete by query + /// Size of the scroll request that powers the operation. /// [JsonIgnore] public long? ScrollSize { get => Q("scroll_size"); set => Q("scroll_size", value); } /// - /// Explicit timeout for each search request. Defaults to no timeout. + /// Explicit timeout for each search request.
Defaults to no timeout.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Duration? SearchTimeout { get => Q("search_timeout"); set => Q("search_timeout", value); } /// - /// Search operation type + /// The type of the search operation.
Available options: `query_then_fetch`, `dfs_query_then_fetch`.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } /// - /// The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be set to `auto`. + /// The number of slices this task should be divided into. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Slices? Slices { get => Q("slices"); set => Q("slices", value); } /// - /// A comma-separated list of : pairs + /// A comma-separated list of : pairs. /// [JsonIgnore] public ICollection? Sort { get => Q?>("sort"); set => Q("sort", value); } /// - /// Specific 'tag' of the request for logging and statistical purposes + /// Specific `tag` of the request for logging and statistical purposes. /// [JsonIgnore] public ICollection? Stats { get => Q?>("stats"); set => Q("stats", value); } /// - /// The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early. + /// Maximum number of documents to collect for each shard.
If a query reaches this limit, Elasticsearch terminates the query early.
Elasticsearch collects documents before sorting.
Use with caution.
Elasticsearch applies this parameter to each shard handling the request.
When possible, let Elasticsearch perform early termination automatically.
Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers.
///
[JsonIgnore] public long? TerminateAfter { get => Q("terminate_after"); set => Q("terminate_after", value); } /// - /// Time each individual bulk request should wait for shards that are unavailable. + /// Period each deletion request waits for active shards. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Specify whether to return document version as part of a hit + /// If `true`, returns the document version as part of a hit. /// [JsonIgnore] public bool? Version { get => Q("version"); set => Q("version", value); } /// - /// Sets the number of shard copies that must be active before proceeding with the delete by query operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// The number of shard copies that must be active before proceeding with the operation.
Set to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } /// - /// Should the request should block until the delete by query is complete. + /// If `true`, the request blocks until the operation is complete. /// [JsonIgnore] public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } + + /// + /// The maximum number of documents to delete. + /// [JsonInclude, JsonPropertyName("max_docs")] public long? MaxDocs { get; set; } + + /// + /// Specifies the documents to delete using the Query DSL. + /// [JsonInclude, JsonPropertyName("query")] public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; } + + /// + /// Slice the request manually using the provided slice ID and total number of slices. + /// [JsonInclude, JsonPropertyName("slice")] public Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? Slice { get; set; } } /// -/// Deletes documents matching the provided query. +/// Deletes documents that match the specified query. /// public sealed partial class DeleteByQueryRequestDescriptor : RequestDescriptor, DeleteByQueryRequestParameters> { @@ -430,6 +442,9 @@ public DeleteByQueryRequestDescriptor Indices(Elastic.Clients.Elastic private Action> SliceDescriptorAction { get; set; } private long? MaxDocsValue { get; set; } + /// + /// Specifies the documents to delete using the Query DSL. + /// public DeleteByQueryRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) { QueryDescriptor = null; @@ -454,6 +469,9 @@ public DeleteByQueryRequestDescriptor Query(Action + /// Slice the request manually using the provided slice ID and total number of slices. + /// public DeleteByQueryRequestDescriptor Slice(Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? slice) { SliceDescriptor = null; @@ -478,6 +496,9 @@ public DeleteByQueryRequestDescriptor Slice(Action + /// The maximum number of documents to delete. + /// public DeleteByQueryRequestDescriptor MaxDocs(long? maxDocs) { MaxDocsValue = maxDocs; @@ -530,7 +551,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Deletes documents matching the provided query. +/// Deletes documents that match the specified query. /// public sealed partial class DeleteByQueryRequestDescriptor : RequestDescriptor { @@ -595,6 +616,9 @@ public DeleteByQueryRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serv private Action SliceDescriptorAction { get; set; } private long? MaxDocsValue { get; set; } + /// + /// Specifies the documents to delete using the Query DSL. + /// public DeleteByQueryRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) { QueryDescriptor = null; @@ -619,6 +643,9 @@ public DeleteByQueryRequestDescriptor Query(Action con return Self; } + /// + /// Slice the request manually using the provided slice ID and total number of slices. + /// public DeleteByQueryRequestDescriptor Slice(Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? slice) { SliceDescriptor = null; @@ -643,6 +670,9 @@ public DeleteByQueryRequestDescriptor Slice(Action confi return Self; } + /// + /// The maximum number of documents to delete. + /// public DeleteByQueryRequestDescriptor MaxDocs(long? maxDocs) { MaxDocsValue = maxDocs; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs new file mode 100644 index 00000000000..03cb3874620 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs @@ -0,0 +1,98 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Requests; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless; + +public sealed class DeleteByQueryRethrottleRequestParameters : RequestParameters +{ + /// + /// The throttle for this request in sub-requests per second. + /// + public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } +} + +/// +/// Changes the number of requests per second for a particular Delete By Query operation. +/// +public sealed partial class DeleteByQueryRethrottleRequest : PlainRequest +{ + public DeleteByQueryRethrottleRequest(Elastic.Clients.Elasticsearch.Serverless.TaskId task_id) : base(r => r.Required("task_id", task_id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceDeleteByQueryRethrottle; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => false; + + internal override string OperationName => "delete_by_query_rethrottle"; + + /// + /// The throttle for this request in sub-requests per second. + /// + [JsonIgnore] + public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } +} + +/// +/// Changes the number of requests per second for a particular Delete By Query operation. +/// +public sealed partial class DeleteByQueryRethrottleRequestDescriptor : RequestDescriptor +{ + internal DeleteByQueryRethrottleRequestDescriptor(Action configure) => configure.Invoke(this); + + public DeleteByQueryRethrottleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.TaskId task_id) : base(r => r.Required("task_id", task_id)) + { + } + + internal DeleteByQueryRethrottleRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceDeleteByQueryRethrottle; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => false; + + internal override string OperationName => "delete_by_query_rethrottle"; + + public DeleteByQueryRethrottleRequestDescriptor RequestsPerSecond(float? requestsPerSecond) => Qs("requests_per_second", requestsPerSecond); + + public DeleteByQueryRethrottleRequestDescriptor TaskId(Elastic.Clients.Elasticsearch.Serverless.TaskId task_id) + { + RouteValues.Required("task_id", task_id); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleResponse.g.cs new file mode 100644 index 00000000000..a9911ab7330 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteByQueryRethrottleResponse.g.cs @@ -0,0 +1,46 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless; + +public sealed partial class DeleteByQueryRethrottleResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("node_failures")] + public IReadOnlyCollection? NodeFailures { get; init; } + + /// + /// Task information grouped by node, if `group_by` was set to `node` (the default). + /// + [JsonInclude, JsonPropertyName("nodes")] + public IReadOnlyDictionary? Nodes { get; init; } + [JsonInclude, JsonPropertyName("task_failures")] + public IReadOnlyCollection? TaskFailures { get; init; } + + /// + /// Either a flat list of tasks if `group_by` was set to `none`, or grouped by parents if
`group_by` was set to `parents`.
+ ///
+ [JsonInclude, JsonPropertyName("tasks")] + public Elastic.Clients.Elasticsearch.Serverless.Tasks.TaskInfos? Tasks { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteRequest.g.cs index 616feba89a5..ea464e9da2e 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteRequest.g.cs @@ -32,48 +32,48 @@ namespace Elastic.Clients.Elasticsearch.Serverless; public sealed class DeleteRequestParameters : RequestParameters { /// - /// only perform the delete operation if the last operation that has changed the document has the specified primary term + /// Only perform the operation if the document has this primary term. /// public long? IfPrimaryTerm { get => Q("if_primary_term"); set => Q("if_primary_term", value); } /// - /// only perform the delete operation if the last operation that has changed the document has the specified sequence number + /// Only perform the operation if the document has this sequence number. /// public long? IfSeqNo { get => Q("if_seq_no"); set => Q("if_seq_no", value); } /// - /// If `true` 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` (the default) then do nothing with refreshes. + /// If `true`, Elasticsearch refreshes 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` do nothing with refreshes.
Valid values: `true`, `false`, `wait_for`.
///
public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specific routing value + /// Custom value used to route operations to a specific shard. /// public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Explicit operation timeout + /// Period to wait for active shards. /// public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Explicit version number for concurrency control + /// Explicit version number for concurrency control.
The specified version must match the current version of the document for the request to succeed.
///
public long? Version { get => Q("version"); set => Q("version", value); } /// - /// Specific version type + /// Specific version type: `external`, `external_gte`. /// public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } /// - /// Sets the number of shard copies that must be active before proceeding with the delete operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// The number of shard copies that must be active before proceeding with the operation.
Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } } /// -/// Removes a document from the index. +/// Removes a JSON document from the specified index. /// public partial class DeleteRequest : PlainRequest { @@ -90,56 +90,56 @@ public DeleteRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index, E internal override string OperationName => "delete"; /// - /// only perform the delete operation if the last operation that has changed the document has the specified primary term + /// Only perform the operation if the document has this primary term. /// [JsonIgnore] public long? IfPrimaryTerm { get => Q("if_primary_term"); set => Q("if_primary_term", value); } /// - /// only perform the delete operation if the last operation that has changed the document has the specified sequence number + /// Only perform the operation if the document has this sequence number. /// [JsonIgnore] public long? IfSeqNo { get => Q("if_seq_no"); set => Q("if_seq_no", value); } /// - /// If `true` 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` (the default) then do nothing with refreshes. + /// If `true`, Elasticsearch refreshes 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` do nothing with refreshes.
Valid values: `true`, `false`, `wait_for`.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specific routing value + /// Custom value used to route operations to a specific shard. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Explicit operation timeout + /// Period to wait for active shards. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Explicit version number for concurrency control + /// Explicit version number for concurrency control.
The specified version must match the current version of the document for the request to succeed.
///
[JsonIgnore] public long? Version { get => Q("version"); set => Q("version", value); } /// - /// Specific version type + /// Specific version type: `external`, `external_gte`. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } /// - /// Sets the number of shard copies that must be active before proceeding with the delete operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// The number of shard copies that must be active before proceeding with the operation.
Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } } /// -/// Removes a document from the index. +/// Removes a JSON document from the specified index. /// public sealed partial class DeleteRequestDescriptor : RequestDescriptor, DeleteRequestParameters> { @@ -208,7 +208,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Removes a document from the index. +/// Removes a JSON document from the specified index. /// public sealed partial class DeleteRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteScriptRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteScriptRequest.g.cs index ad5786488be..45659bd3a4c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteScriptRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/DeleteScriptRequest.g.cs @@ -32,18 +32,18 @@ namespace Elastic.Clients.Elasticsearch.Serverless; public sealed class DeleteScriptRequestParameters : RequestParameters { /// - /// Specify timeout for connection to master + /// Period to wait for a connection to the master node.
If no response is received before the timeout expires, the request fails and returns an error.
///
public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } /// - /// Explicit operation timeout + /// Period to wait for a response.
If no response is received before the timeout expires, the request fails and returns an error.
///
public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// -/// Deletes a script. +/// Deletes a stored script or search template. /// public sealed partial class DeleteScriptRequest : PlainRequest { @@ -60,20 +60,20 @@ public DeleteScriptRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : bas internal override string OperationName => "delete_script"; /// - /// Specify timeout for connection to master + /// Period to wait for a connection to the master node.
If no response is received before the timeout expires, the request fails and returns an error.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } /// - /// Explicit operation timeout + /// Period to wait for a response.
If no response is received before the timeout expires, the request fails and returns an error.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// -/// Deletes a script. +/// Deletes a stored script or search template. /// public sealed partial class DeleteScriptRequestDescriptor : RequestDescriptor, DeleteScriptRequestParameters> { @@ -110,7 +110,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Deletes a script. +/// Deletes a stored script or search template. /// public sealed partial class DeleteScriptRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlDeleteRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlDeleteRequest.g.cs new file mode 100644 index 00000000000..2f1de560e97 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlDeleteRequest.g.cs @@ -0,0 +1,120 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Requests; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Eql; + +public sealed class EqlDeleteRequestParameters : RequestParameters +{ +} + +/// +/// Deletes an async EQL search or a stored synchronous EQL search.
The API also deletes results for the search.
+///
+public sealed partial class EqlDeleteRequest : PlainRequest +{ + public EqlDeleteRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EqlDelete; + + protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; + + internal override bool SupportsBody => false; + + internal override string OperationName => "eql.delete"; +} + +/// +/// Deletes an async EQL search or a stored synchronous EQL search.
The API also deletes results for the search.
+///
+public sealed partial class EqlDeleteRequestDescriptor : RequestDescriptor, EqlDeleteRequestParameters> +{ + internal EqlDeleteRequestDescriptor(Action> configure) => configure.Invoke(this); + + public EqlDeleteRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) + { + } + + internal EqlDeleteRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EqlDelete; + + protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; + + internal override bool SupportsBody => false; + + internal override string OperationName => "eql.delete"; + + public EqlDeleteRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) + { + RouteValues.Required("id", id); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} + +/// +/// Deletes an async EQL search or a stored synchronous EQL search.
The API also deletes results for the search.
+///
+public sealed partial class EqlDeleteRequestDescriptor : RequestDescriptor +{ + internal EqlDeleteRequestDescriptor(Action configure) => configure.Invoke(this); + + public EqlDeleteRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) + { + } + + internal EqlDeleteRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EqlDelete; + + protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; + + internal override bool SupportsBody => false; + + internal override string OperationName => "eql.delete"; + + public EqlDeleteRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) + { + RouteValues.Required("id", id); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlDeleteResponse.g.cs similarity index 92% rename from src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteTemplateResponse.g.cs rename to src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlDeleteResponse.g.cs index 019344012a7..e7a5948b4ff 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteTemplateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlDeleteResponse.g.cs @@ -23,9 +23,9 @@ using System.Collections.Generic; using System.Text.Json.Serialization; -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; +namespace Elastic.Clients.Elasticsearch.Serverless.Eql; -public sealed partial class DeleteTemplateResponse : ElasticsearchResponse +public sealed partial class EqlDeleteResponse : ElasticsearchResponse { /// /// For a successful response, this value is always true. On failure, an exception is returned instead. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlGetRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlGetRequest.g.cs new file mode 100644 index 00000000000..2b1e1adaa37 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlGetRequest.g.cs @@ -0,0 +1,147 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Requests; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Eql; + +public sealed class EqlGetRequestParameters : RequestParameters +{ + /// + /// Period for which the search and its results are stored on the cluster.
Defaults to the keep_alive value set by the search’s EQL search API request.
+ ///
+ public Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } + + /// + /// Timeout duration to wait for the request to finish.
Defaults to no timeout, meaning the request waits for complete search results.
+ ///
+ public Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeout { get => Q("wait_for_completion_timeout"); set => Q("wait_for_completion_timeout", value); } +} + +/// +/// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. +/// +public sealed partial class EqlGetRequest : PlainRequest +{ + public EqlGetRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EqlGet; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "eql.get"; + + /// + /// Period for which the search and its results are stored on the cluster.
Defaults to the keep_alive value set by the search’s EQL search API request.
+ ///
+ [JsonIgnore] + public Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } + + /// + /// Timeout duration to wait for the request to finish.
Defaults to no timeout, meaning the request waits for complete search results.
+ ///
+ [JsonIgnore] + public Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeout { get => Q("wait_for_completion_timeout"); set => Q("wait_for_completion_timeout", value); } +} + +/// +/// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. +/// +public sealed partial class EqlGetRequestDescriptor : RequestDescriptor, EqlGetRequestParameters> +{ + internal EqlGetRequestDescriptor(Action> configure) => configure.Invoke(this); + + public EqlGetRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) + { + } + + internal EqlGetRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EqlGet; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "eql.get"; + + public EqlGetRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) => Qs("keep_alive", keepAlive); + public EqlGetRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? waitForCompletionTimeout) => Qs("wait_for_completion_timeout", waitForCompletionTimeout); + + public EqlGetRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) + { + RouteValues.Required("id", id); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} + +/// +/// Returns the current status and available results for an async EQL search or a stored synchronous EQL search. +/// +public sealed partial class EqlGetRequestDescriptor : RequestDescriptor +{ + internal EqlGetRequestDescriptor(Action configure) => configure.Invoke(this); + + public EqlGetRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) + { + } + + internal EqlGetRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EqlGet; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "eql.get"; + + public EqlGetRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) => Qs("keep_alive", keepAlive); + public EqlGetRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? waitForCompletionTimeout) => Qs("wait_for_completion_timeout", waitForCompletionTimeout); + + public EqlGetRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) + { + RouteValues.Required("id", id); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlGetResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlGetResponse.g.cs new file mode 100644 index 00000000000..fb2096cfade --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlGetResponse.g.cs @@ -0,0 +1,65 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Eql; + +public sealed partial class EqlGetResponse : ElasticsearchResponse +{ + /// + /// Contains matching events and sequences. Also contains related metadata. + /// + [JsonInclude, JsonPropertyName("hits")] + public Elastic.Clients.Elasticsearch.Serverless.Eql.EqlHits Hits { get; init; } + + /// + /// Identifier for the search. + /// + [JsonInclude, JsonPropertyName("id")] + public string? Id { get; init; } + + /// + /// If true, the response does not contain complete search results. + /// + [JsonInclude, JsonPropertyName("is_partial")] + public bool? IsPartial { get; init; } + + /// + /// If true, the search request is still executing. + /// + [JsonInclude, JsonPropertyName("is_running")] + public bool? IsRunning { get; init; } + + /// + /// If true, the request timed out before completion. + /// + [JsonInclude, JsonPropertyName("timed_out")] + public bool? TimedOut { get; init; } + + /// + /// Milliseconds it took Elasticsearch to execute the request. + /// + [JsonInclude, JsonPropertyName("took")] + public long? Took { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchRequest.g.cs new file mode 100644 index 00000000000..89eb39e8df3 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchRequest.g.cs @@ -0,0 +1,921 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Requests; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Eql; + +public sealed class EqlSearchRequestParameters : RequestParameters +{ + public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + + /// + /// If true, missing or closed indices are not included in the response. + /// + public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } +} + +/// +/// Returns results matching a query expressed in Event Query Language (EQL) +/// +public sealed partial class EqlSearchRequest : PlainRequest +{ + public EqlSearchRequest(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EqlSearch; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "eql.search"; + + [JsonIgnore] + public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } + [JsonIgnore] + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + + /// + /// If true, missing or closed indices are not included in the response. + /// + [JsonIgnore] + public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } + + /// + /// EQL query you wish to run. + /// + [JsonInclude, JsonPropertyName("query")] + public string Query { get; set; } + [JsonInclude, JsonPropertyName("case_sensitive")] + public bool? CaseSensitive { get; set; } + + /// + /// Field containing the event classification, such as process, file, or network. + /// + [JsonInclude, JsonPropertyName("event_category_field")] + public Elastic.Clients.Elasticsearch.Serverless.Field? EventCategoryField { get; set; } + + /// + /// Field used to sort hits with the same timestamp in ascending order + /// + [JsonInclude, JsonPropertyName("tiebreaker_field")] + public Elastic.Clients.Elasticsearch.Serverless.Field? TiebreakerField { get; set; } + + /// + /// Field containing event timestamp. Default "@timestamp" + /// + [JsonInclude, JsonPropertyName("timestamp_field")] + public Elastic.Clients.Elasticsearch.Serverless.Field? TimestampField { get; set; } + + /// + /// Maximum number of events to search at a time for sequence queries. + /// + [JsonInclude, JsonPropertyName("fetch_size")] + public int? FetchSize { get; set; } + + /// + /// Query, written in Query DSL, used to filter the events on which the EQL query runs. + /// + [JsonInclude, JsonPropertyName("filter"), SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query))] + public ICollection? Filter { get; set; } + [JsonInclude, JsonPropertyName("keep_alive")] + public Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAlive { get; set; } + [JsonInclude, JsonPropertyName("keep_on_completion")] + public bool? KeepOnCompletion { get; set; } + [JsonInclude, JsonPropertyName("wait_for_completion_timeout")] + public Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeout { get; set; } + + /// + /// For basic queries, the maximum number of matching events to return. Defaults to 10 + /// + [JsonInclude, JsonPropertyName("size")] + public int? Size { get; set; } + + /// + /// Array of wildcard (*) patterns. The response returns values for field names matching these patterns in the fields property of each hit. + /// + [JsonInclude, JsonPropertyName("fields"), SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.FieldAndFormat))] + public ICollection? Fields { get; set; } + [JsonInclude, JsonPropertyName("result_position")] + public Elastic.Clients.Elasticsearch.Serverless.Eql.ResultPosition? ResultPosition { get; set; } + [JsonInclude, JsonPropertyName("runtime_mappings")] + public IDictionary? RuntimeMappings { get; set; } +} + +/// +/// Returns results matching a query expressed in Event Query Language (EQL) +/// +public sealed partial class EqlSearchRequestDescriptor : RequestDescriptor, EqlSearchRequestParameters> +{ + internal EqlSearchRequestDescriptor(Action> configure) => configure.Invoke(this); + + public EqlSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) + { + } + + internal EqlSearchRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EqlSearch; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "eql.search"; + + public EqlSearchRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); + public EqlSearchRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public EqlSearchRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); + + public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) + { + RouteValues.Required("index", indices); + return Self; + } + + private ICollection? FieldsValue { get; set; } + private QueryDsl.FieldAndFormatDescriptor FieldsDescriptor { get; set; } + private Action> FieldsDescriptorAction { get; set; } + private Action>[] FieldsDescriptorActions { get; set; } + private ICollection? FilterValue { get; set; } + private QueryDsl.QueryDescriptor FilterDescriptor { get; set; } + private Action> FilterDescriptorAction { get; set; } + private Action>[] FilterDescriptorActions { get; set; } + private bool? CaseSensitiveValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? EventCategoryFieldValue { get; set; } + private int? FetchSizeValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAliveValue { get; set; } + private bool? KeepOnCompletionValue { get; set; } + private string QueryValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Eql.ResultPosition? ResultPositionValue { get; set; } + private IDictionary? RuntimeMappingsValue { get; set; } + private int? SizeValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? TiebreakerFieldValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? TimestampFieldValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeoutValue { get; set; } + + /// + /// Array of wildcard (*) patterns. The response returns values for field names matching these patterns in the fields property of each hit. + /// + public EqlSearchRequestDescriptor Fields(ICollection? fields) + { + FieldsDescriptor = null; + FieldsDescriptorAction = null; + FieldsDescriptorActions = null; + FieldsValue = fields; + return Self; + } + + public EqlSearchRequestDescriptor Fields(QueryDsl.FieldAndFormatDescriptor descriptor) + { + FieldsValue = null; + FieldsDescriptorAction = null; + FieldsDescriptorActions = null; + FieldsDescriptor = descriptor; + return Self; + } + + public EqlSearchRequestDescriptor Fields(Action> configure) + { + FieldsValue = null; + FieldsDescriptor = null; + FieldsDescriptorActions = null; + FieldsDescriptorAction = configure; + return Self; + } + + public EqlSearchRequestDescriptor Fields(params Action>[] configure) + { + FieldsValue = null; + FieldsDescriptor = null; + FieldsDescriptorAction = null; + FieldsDescriptorActions = configure; + return Self; + } + + /// + /// Query, written in Query DSL, used to filter the events on which the EQL query runs. + /// + public EqlSearchRequestDescriptor Filter(ICollection? filter) + { + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterDescriptorActions = null; + FilterValue = filter; + return Self; + } + + public EqlSearchRequestDescriptor Filter(QueryDsl.QueryDescriptor descriptor) + { + FilterValue = null; + FilterDescriptorAction = null; + FilterDescriptorActions = null; + FilterDescriptor = descriptor; + return Self; + } + + public EqlSearchRequestDescriptor Filter(Action> configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorActions = null; + FilterDescriptorAction = configure; + return Self; + } + + public EqlSearchRequestDescriptor Filter(params Action>[] configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterDescriptorActions = configure; + return Self; + } + + public EqlSearchRequestDescriptor CaseSensitive(bool? caseSensitive = true) + { + CaseSensitiveValue = caseSensitive; + return Self; + } + + /// + /// Field containing the event classification, such as process, file, or network. + /// + public EqlSearchRequestDescriptor EventCategoryField(Elastic.Clients.Elasticsearch.Serverless.Field? eventCategoryField) + { + EventCategoryFieldValue = eventCategoryField; + return Self; + } + + /// + /// Field containing the event classification, such as process, file, or network. + /// + public EqlSearchRequestDescriptor EventCategoryField(Expression> eventCategoryField) + { + EventCategoryFieldValue = eventCategoryField; + return Self; + } + + /// + /// Maximum number of events to search at a time for sequence queries. + /// + public EqlSearchRequestDescriptor FetchSize(int? fetchSize) + { + FetchSizeValue = fetchSize; + return Self; + } + + public EqlSearchRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) + { + KeepAliveValue = keepAlive; + return Self; + } + + public EqlSearchRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true) + { + KeepOnCompletionValue = keepOnCompletion; + return Self; + } + + /// + /// EQL query you wish to run. + /// + public EqlSearchRequestDescriptor Query(string query) + { + QueryValue = query; + return Self; + } + + public EqlSearchRequestDescriptor ResultPosition(Elastic.Clients.Elasticsearch.Serverless.Eql.ResultPosition? resultPosition) + { + ResultPositionValue = resultPosition; + return Self; + } + + public EqlSearchRequestDescriptor RuntimeMappings(Func, FluentDictionary> selector) + { + RuntimeMappingsValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + /// + /// For basic queries, the maximum number of matching events to return. Defaults to 10 + /// + public EqlSearchRequestDescriptor Size(int? size) + { + SizeValue = size; + return Self; + } + + /// + /// Field used to sort hits with the same timestamp in ascending order + /// + public EqlSearchRequestDescriptor TiebreakerField(Elastic.Clients.Elasticsearch.Serverless.Field? tiebreakerField) + { + TiebreakerFieldValue = tiebreakerField; + return Self; + } + + /// + /// Field used to sort hits with the same timestamp in ascending order + /// + public EqlSearchRequestDescriptor TiebreakerField(Expression> tiebreakerField) + { + TiebreakerFieldValue = tiebreakerField; + return Self; + } + + /// + /// Field containing event timestamp. Default "@timestamp" + /// + public EqlSearchRequestDescriptor TimestampField(Elastic.Clients.Elasticsearch.Serverless.Field? timestampField) + { + TimestampFieldValue = timestampField; + return Self; + } + + /// + /// Field containing event timestamp. Default "@timestamp" + /// + public EqlSearchRequestDescriptor TimestampField(Expression> timestampField) + { + TimestampFieldValue = timestampField; + return Self; + } + + public EqlSearchRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? waitForCompletionTimeout) + { + WaitForCompletionTimeoutValue = waitForCompletionTimeout; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (FieldsDescriptor is not null) + { + writer.WritePropertyName("fields"); + JsonSerializer.Serialize(writer, FieldsDescriptor, options); + } + else if (FieldsDescriptorAction is not null) + { + writer.WritePropertyName("fields"); + JsonSerializer.Serialize(writer, new QueryDsl.FieldAndFormatDescriptor(FieldsDescriptorAction), options); + } + else if (FieldsDescriptorActions is not null) + { + writer.WritePropertyName("fields"); + if (FieldsDescriptorActions.Length > 1) + writer.WriteStartArray(); + foreach (var action in FieldsDescriptorActions) + { + JsonSerializer.Serialize(writer, new QueryDsl.FieldAndFormatDescriptor(action), options); + } + + if (FieldsDescriptorActions.Length > 1) + writer.WriteEndArray(); + } + else if (FieldsValue is not null) + { + writer.WritePropertyName("fields"); + SingleOrManySerializationHelper.Serialize(FieldsValue, writer, options); + } + + if (FilterDescriptor is not null) + { + writer.WritePropertyName("filter"); + JsonSerializer.Serialize(writer, FilterDescriptor, options); + } + else if (FilterDescriptorAction is not null) + { + writer.WritePropertyName("filter"); + JsonSerializer.Serialize(writer, new QueryDsl.QueryDescriptor(FilterDescriptorAction), options); + } + else if (FilterDescriptorActions is not null) + { + writer.WritePropertyName("filter"); + if (FilterDescriptorActions.Length > 1) + writer.WriteStartArray(); + foreach (var action in FilterDescriptorActions) + { + JsonSerializer.Serialize(writer, new QueryDsl.QueryDescriptor(action), options); + } + + if (FilterDescriptorActions.Length > 1) + writer.WriteEndArray(); + } + else if (FilterValue is not null) + { + writer.WritePropertyName("filter"); + SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); + } + + if (CaseSensitiveValue.HasValue) + { + writer.WritePropertyName("case_sensitive"); + writer.WriteBooleanValue(CaseSensitiveValue.Value); + } + + if (EventCategoryFieldValue is not null) + { + writer.WritePropertyName("event_category_field"); + JsonSerializer.Serialize(writer, EventCategoryFieldValue, options); + } + + if (FetchSizeValue.HasValue) + { + writer.WritePropertyName("fetch_size"); + writer.WriteNumberValue(FetchSizeValue.Value); + } + + if (KeepAliveValue is not null) + { + writer.WritePropertyName("keep_alive"); + JsonSerializer.Serialize(writer, KeepAliveValue, options); + } + + if (KeepOnCompletionValue.HasValue) + { + writer.WritePropertyName("keep_on_completion"); + writer.WriteBooleanValue(KeepOnCompletionValue.Value); + } + + writer.WritePropertyName("query"); + writer.WriteStringValue(QueryValue); + if (ResultPositionValue is not null) + { + writer.WritePropertyName("result_position"); + JsonSerializer.Serialize(writer, ResultPositionValue, options); + } + + if (RuntimeMappingsValue is not null) + { + writer.WritePropertyName("runtime_mappings"); + JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); + } + + if (SizeValue.HasValue) + { + writer.WritePropertyName("size"); + writer.WriteNumberValue(SizeValue.Value); + } + + if (TiebreakerFieldValue is not null) + { + writer.WritePropertyName("tiebreaker_field"); + JsonSerializer.Serialize(writer, TiebreakerFieldValue, options); + } + + if (TimestampFieldValue is not null) + { + writer.WritePropertyName("timestamp_field"); + JsonSerializer.Serialize(writer, TimestampFieldValue, options); + } + + if (WaitForCompletionTimeoutValue is not null) + { + writer.WritePropertyName("wait_for_completion_timeout"); + JsonSerializer.Serialize(writer, WaitForCompletionTimeoutValue, options); + } + + writer.WriteEndObject(); + } +} + +/// +/// Returns results matching a query expressed in Event Query Language (EQL) +/// +public sealed partial class EqlSearchRequestDescriptor : RequestDescriptor +{ + internal EqlSearchRequestDescriptor(Action configure) => configure.Invoke(this); + + public EqlSearchRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Indices indices) : base(r => r.Required("index", indices)) + { + } + + internal EqlSearchRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EqlSearch; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "eql.search"; + + public EqlSearchRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); + public EqlSearchRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public EqlSearchRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); + + public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices indices) + { + RouteValues.Required("index", indices); + return Self; + } + + private ICollection? FieldsValue { get; set; } + private QueryDsl.FieldAndFormatDescriptor FieldsDescriptor { get; set; } + private Action FieldsDescriptorAction { get; set; } + private Action[] FieldsDescriptorActions { get; set; } + private ICollection? FilterValue { get; set; } + private QueryDsl.QueryDescriptor FilterDescriptor { get; set; } + private Action FilterDescriptorAction { get; set; } + private Action[] FilterDescriptorActions { get; set; } + private bool? CaseSensitiveValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? EventCategoryFieldValue { get; set; } + private int? FetchSizeValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAliveValue { get; set; } + private bool? KeepOnCompletionValue { get; set; } + private string QueryValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Eql.ResultPosition? ResultPositionValue { get; set; } + private IDictionary? RuntimeMappingsValue { get; set; } + private int? SizeValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? TiebreakerFieldValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Field? TimestampFieldValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeoutValue { get; set; } + + /// + /// Array of wildcard (*) patterns. The response returns values for field names matching these patterns in the fields property of each hit. + /// + public EqlSearchRequestDescriptor Fields(ICollection? fields) + { + FieldsDescriptor = null; + FieldsDescriptorAction = null; + FieldsDescriptorActions = null; + FieldsValue = fields; + return Self; + } + + public EqlSearchRequestDescriptor Fields(QueryDsl.FieldAndFormatDescriptor descriptor) + { + FieldsValue = null; + FieldsDescriptorAction = null; + FieldsDescriptorActions = null; + FieldsDescriptor = descriptor; + return Self; + } + + public EqlSearchRequestDescriptor Fields(Action configure) + { + FieldsValue = null; + FieldsDescriptor = null; + FieldsDescriptorActions = null; + FieldsDescriptorAction = configure; + return Self; + } + + public EqlSearchRequestDescriptor Fields(params Action[] configure) + { + FieldsValue = null; + FieldsDescriptor = null; + FieldsDescriptorAction = null; + FieldsDescriptorActions = configure; + return Self; + } + + /// + /// Query, written in Query DSL, used to filter the events on which the EQL query runs. + /// + public EqlSearchRequestDescriptor Filter(ICollection? filter) + { + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterDescriptorActions = null; + FilterValue = filter; + return Self; + } + + public EqlSearchRequestDescriptor Filter(QueryDsl.QueryDescriptor descriptor) + { + FilterValue = null; + FilterDescriptorAction = null; + FilterDescriptorActions = null; + FilterDescriptor = descriptor; + return Self; + } + + public EqlSearchRequestDescriptor Filter(Action configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorActions = null; + FilterDescriptorAction = configure; + return Self; + } + + public EqlSearchRequestDescriptor Filter(params Action[] configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterDescriptorActions = configure; + return Self; + } + + public EqlSearchRequestDescriptor CaseSensitive(bool? caseSensitive = true) + { + CaseSensitiveValue = caseSensitive; + return Self; + } + + /// + /// Field containing the event classification, such as process, file, or network. + /// + public EqlSearchRequestDescriptor EventCategoryField(Elastic.Clients.Elasticsearch.Serverless.Field? eventCategoryField) + { + EventCategoryFieldValue = eventCategoryField; + return Self; + } + + /// + /// Field containing the event classification, such as process, file, or network. + /// + public EqlSearchRequestDescriptor EventCategoryField(Expression> eventCategoryField) + { + EventCategoryFieldValue = eventCategoryField; + return Self; + } + + /// + /// Field containing the event classification, such as process, file, or network. + /// + public EqlSearchRequestDescriptor EventCategoryField(Expression> eventCategoryField) + { + EventCategoryFieldValue = eventCategoryField; + return Self; + } + + /// + /// Maximum number of events to search at a time for sequence queries. + /// + public EqlSearchRequestDescriptor FetchSize(int? fetchSize) + { + FetchSizeValue = fetchSize; + return Self; + } + + public EqlSearchRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) + { + KeepAliveValue = keepAlive; + return Self; + } + + public EqlSearchRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true) + { + KeepOnCompletionValue = keepOnCompletion; + return Self; + } + + /// + /// EQL query you wish to run. + /// + public EqlSearchRequestDescriptor Query(string query) + { + QueryValue = query; + return Self; + } + + public EqlSearchRequestDescriptor ResultPosition(Elastic.Clients.Elasticsearch.Serverless.Eql.ResultPosition? resultPosition) + { + ResultPositionValue = resultPosition; + return Self; + } + + public EqlSearchRequestDescriptor RuntimeMappings(Func, FluentDictionary> selector) + { + RuntimeMappingsValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + /// + /// For basic queries, the maximum number of matching events to return. Defaults to 10 + /// + public EqlSearchRequestDescriptor Size(int? size) + { + SizeValue = size; + return Self; + } + + /// + /// Field used to sort hits with the same timestamp in ascending order + /// + public EqlSearchRequestDescriptor TiebreakerField(Elastic.Clients.Elasticsearch.Serverless.Field? tiebreakerField) + { + TiebreakerFieldValue = tiebreakerField; + return Self; + } + + /// + /// Field used to sort hits with the same timestamp in ascending order + /// + public EqlSearchRequestDescriptor TiebreakerField(Expression> tiebreakerField) + { + TiebreakerFieldValue = tiebreakerField; + return Self; + } + + /// + /// Field used to sort hits with the same timestamp in ascending order + /// + public EqlSearchRequestDescriptor TiebreakerField(Expression> tiebreakerField) + { + TiebreakerFieldValue = tiebreakerField; + return Self; + } + + /// + /// Field containing event timestamp. Default "@timestamp" + /// + public EqlSearchRequestDescriptor TimestampField(Elastic.Clients.Elasticsearch.Serverless.Field? timestampField) + { + TimestampFieldValue = timestampField; + return Self; + } + + /// + /// Field containing event timestamp. Default "@timestamp" + /// + public EqlSearchRequestDescriptor TimestampField(Expression> timestampField) + { + TimestampFieldValue = timestampField; + return Self; + } + + /// + /// Field containing event timestamp. Default "@timestamp" + /// + public EqlSearchRequestDescriptor TimestampField(Expression> timestampField) + { + TimestampFieldValue = timestampField; + return Self; + } + + public EqlSearchRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? waitForCompletionTimeout) + { + WaitForCompletionTimeoutValue = waitForCompletionTimeout; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (FieldsDescriptor is not null) + { + writer.WritePropertyName("fields"); + JsonSerializer.Serialize(writer, FieldsDescriptor, options); + } + else if (FieldsDescriptorAction is not null) + { + writer.WritePropertyName("fields"); + JsonSerializer.Serialize(writer, new QueryDsl.FieldAndFormatDescriptor(FieldsDescriptorAction), options); + } + else if (FieldsDescriptorActions is not null) + { + writer.WritePropertyName("fields"); + if (FieldsDescriptorActions.Length > 1) + writer.WriteStartArray(); + foreach (var action in FieldsDescriptorActions) + { + JsonSerializer.Serialize(writer, new QueryDsl.FieldAndFormatDescriptor(action), options); + } + + if (FieldsDescriptorActions.Length > 1) + writer.WriteEndArray(); + } + else if (FieldsValue is not null) + { + writer.WritePropertyName("fields"); + SingleOrManySerializationHelper.Serialize(FieldsValue, writer, options); + } + + if (FilterDescriptor is not null) + { + writer.WritePropertyName("filter"); + JsonSerializer.Serialize(writer, FilterDescriptor, options); + } + else if (FilterDescriptorAction is not null) + { + writer.WritePropertyName("filter"); + JsonSerializer.Serialize(writer, new QueryDsl.QueryDescriptor(FilterDescriptorAction), options); + } + else if (FilterDescriptorActions is not null) + { + writer.WritePropertyName("filter"); + if (FilterDescriptorActions.Length > 1) + writer.WriteStartArray(); + foreach (var action in FilterDescriptorActions) + { + JsonSerializer.Serialize(writer, new QueryDsl.QueryDescriptor(action), options); + } + + if (FilterDescriptorActions.Length > 1) + writer.WriteEndArray(); + } + else if (FilterValue is not null) + { + writer.WritePropertyName("filter"); + SingleOrManySerializationHelper.Serialize(FilterValue, writer, options); + } + + if (CaseSensitiveValue.HasValue) + { + writer.WritePropertyName("case_sensitive"); + writer.WriteBooleanValue(CaseSensitiveValue.Value); + } + + if (EventCategoryFieldValue is not null) + { + writer.WritePropertyName("event_category_field"); + JsonSerializer.Serialize(writer, EventCategoryFieldValue, options); + } + + if (FetchSizeValue.HasValue) + { + writer.WritePropertyName("fetch_size"); + writer.WriteNumberValue(FetchSizeValue.Value); + } + + if (KeepAliveValue is not null) + { + writer.WritePropertyName("keep_alive"); + JsonSerializer.Serialize(writer, KeepAliveValue, options); + } + + if (KeepOnCompletionValue.HasValue) + { + writer.WritePropertyName("keep_on_completion"); + writer.WriteBooleanValue(KeepOnCompletionValue.Value); + } + + writer.WritePropertyName("query"); + writer.WriteStringValue(QueryValue); + if (ResultPositionValue is not null) + { + writer.WritePropertyName("result_position"); + JsonSerializer.Serialize(writer, ResultPositionValue, options); + } + + if (RuntimeMappingsValue is not null) + { + writer.WritePropertyName("runtime_mappings"); + JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); + } + + if (SizeValue.HasValue) + { + writer.WritePropertyName("size"); + writer.WriteNumberValue(SizeValue.Value); + } + + if (TiebreakerFieldValue is not null) + { + writer.WritePropertyName("tiebreaker_field"); + JsonSerializer.Serialize(writer, TiebreakerFieldValue, options); + } + + if (TimestampFieldValue is not null) + { + writer.WritePropertyName("timestamp_field"); + JsonSerializer.Serialize(writer, TimestampFieldValue, options); + } + + if (WaitForCompletionTimeoutValue is not null) + { + writer.WritePropertyName("wait_for_completion_timeout"); + JsonSerializer.Serialize(writer, WaitForCompletionTimeoutValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchResponse.g.cs new file mode 100644 index 00000000000..0122d30e0bf --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/EqlSearchResponse.g.cs @@ -0,0 +1,65 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Eql; + +public sealed partial class EqlSearchResponse : ElasticsearchResponse +{ + /// + /// Contains matching events and sequences. Also contains related metadata. + /// + [JsonInclude, JsonPropertyName("hits")] + public Elastic.Clients.Elasticsearch.Serverless.Eql.EqlHits Hits { get; init; } + + /// + /// Identifier for the search. + /// + [JsonInclude, JsonPropertyName("id")] + public string? Id { get; init; } + + /// + /// If true, the response does not contain complete search results. + /// + [JsonInclude, JsonPropertyName("is_partial")] + public bool? IsPartial { get; init; } + + /// + /// If true, the search request is still executing. + /// + [JsonInclude, JsonPropertyName("is_running")] + public bool? IsRunning { get; init; } + + /// + /// If true, the request timed out before completion. + /// + [JsonInclude, JsonPropertyName("timed_out")] + public bool? TimedOut { get; init; } + + /// + /// Milliseconds it took Elasticsearch to execute the request. + /// + [JsonInclude, JsonPropertyName("took")] + public long? Took { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/GetEqlStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/GetEqlStatusRequest.g.cs new file mode 100644 index 00000000000..fcbf3078ab2 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/GetEqlStatusRequest.g.cs @@ -0,0 +1,120 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Requests; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Eql; + +public sealed class GetEqlStatusRequestParameters : RequestParameters +{ +} + +/// +/// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. +/// +public sealed partial class GetEqlStatusRequest : PlainRequest +{ + public GetEqlStatusRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EqlGetStatus; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "eql.get_status"; +} + +/// +/// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. +/// +public sealed partial class GetEqlStatusRequestDescriptor : RequestDescriptor, GetEqlStatusRequestParameters> +{ + internal GetEqlStatusRequestDescriptor(Action> configure) => configure.Invoke(this); + + public GetEqlStatusRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) + { + } + + internal GetEqlStatusRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EqlGetStatus; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "eql.get_status"; + + public GetEqlStatusRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) + { + RouteValues.Required("id", id); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} + +/// +/// Returns the current status for an async EQL search or a stored synchronous EQL search without returning results. +/// +public sealed partial class GetEqlStatusRequestDescriptor : RequestDescriptor +{ + internal GetEqlStatusRequestDescriptor(Action configure) => configure.Invoke(this); + + public GetEqlStatusRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) + { + } + + internal GetEqlStatusRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EqlGetStatus; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "eql.get_status"; + + public GetEqlStatusRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) + { + RouteValues.Required("id", id); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/GetEqlStatusResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/GetEqlStatusResponse.g.cs new file mode 100644 index 00000000000..d21cfe05b74 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Eql/GetEqlStatusResponse.g.cs @@ -0,0 +1,65 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Eql; + +public sealed partial class GetEqlStatusResponse : ElasticsearchResponse +{ + /// + /// For a completed search shows the http status code of the completed search. + /// + [JsonInclude, JsonPropertyName("completion_status")] + public int? CompletionStatus { get; init; } + + /// + /// Shows a timestamp when the eql search will be expired, in milliseconds since the Unix epoch. When this time is reached, the search and its results are deleted, even if the search is still ongoing. + /// + [JsonInclude, JsonPropertyName("expiration_time_in_millis")] + public long? ExpirationTimeInMillis { get; init; } + + /// + /// Identifier for the search. + /// + [JsonInclude, JsonPropertyName("id")] + public string Id { get; init; } + + /// + /// If true, the search request is still executing. If false, the search is completed. + /// + [JsonInclude, JsonPropertyName("is_partial")] + public bool IsPartial { get; init; } + + /// + /// If true, the response does not contain complete search results. This could be because either the search is still running (is_running status is false), or because it is already completed (is_running status is true) and results are partial due to failures or timeouts. + /// + [JsonInclude, JsonPropertyName("is_running")] + public bool IsRunning { get; init; } + + /// + /// For a running search shows a timestamp when the eql search started, in milliseconds since the Unix epoch. + /// + [JsonInclude, JsonPropertyName("start_time_in_millis")] + public long? StartTimeInMillis { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsRequest.g.cs index 4e5d1732628..ff56111b146 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsRequest.g.cs @@ -32,58 +32,58 @@ namespace Elastic.Clients.Elasticsearch.Serverless; public sealed class ExistsRequestParameters : RequestParameters { /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Specify whether to perform the operation in realtime or search mode + /// If `true`, the request is real-time as opposed to near-real-time. /// public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } /// - /// Refresh the shard containing the document before performing the operation + /// If `true`, Elasticsearch refreshes all shards involved in the delete by query after the request completes. /// public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specific routing value + /// Target the specified primary shard. /// public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// True or false to return the _source field or not, or a list of fields to return + /// `true` or `false` to return the `_source` field or not, or a list of fields to return. /// public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } /// - /// A list of fields to exclude from the returned _source field + /// A comma-separated list of source fields to exclude in the response. /// public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } /// - /// A list of fields to extract and return from the _source field + /// A comma-separated list of source fields to include in the response. /// public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } /// - /// A comma-separated list of stored fields to return in the response + /// List of stored fields to return as part of a hit.
If no fields are specified, no stored fields are included in the response.
If this field is specified, the `_source` parameter defaults to false.
///
public Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFields { get => Q("stored_fields"); set => Q("stored_fields", value); } /// - /// Explicit version number for concurrency control + /// Explicit version number for concurrency control.
The specified version must match the current version of the document for the request to succeed.
///
public long? Version { get => Q("version"); set => Q("version", value); } /// - /// Specific version type + /// Specific version type: `external`, `external_gte`. /// public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } } /// -/// Returns information about whether a document exists in an index. +/// Checks if a document in an index exists. /// public sealed partial class ExistsRequest : PlainRequest { @@ -100,68 +100,68 @@ public ExistsRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index, E internal override string OperationName => "exists"; /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
[JsonIgnore] public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Specify whether to perform the operation in realtime or search mode + /// If `true`, the request is real-time as opposed to near-real-time. /// [JsonIgnore] public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } /// - /// Refresh the shard containing the document before performing the operation + /// If `true`, Elasticsearch refreshes all shards involved in the delete by query after the request completes. /// [JsonIgnore] public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specific routing value + /// Target the specified primary shard. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// True or false to return the _source field or not, or a list of fields to return + /// `true` or `false` to return the `_source` field or not, or a list of fields to return. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } /// - /// A list of fields to exclude from the returned _source field + /// A comma-separated list of source fields to exclude in the response. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } /// - /// A list of fields to extract and return from the _source field + /// A comma-separated list of source fields to include in the response. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } /// - /// A comma-separated list of stored fields to return in the response + /// List of stored fields to return as part of a hit.
If no fields are specified, no stored fields are included in the response.
If this field is specified, the `_source` parameter defaults to false.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFields { get => Q("stored_fields"); set => Q("stored_fields", value); } /// - /// Explicit version number for concurrency control + /// Explicit version number for concurrency control.
The specified version must match the current version of the document for the request to succeed.
///
[JsonIgnore] public long? Version { get => Q("version"); set => Q("version", value); } /// - /// Specific version type + /// Specific version type: `external`, `external_gte`. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } } /// -/// Returns information about whether a document exists in an index. +/// Checks if a document in an index exists. /// public sealed partial class ExistsRequestDescriptor : RequestDescriptor, ExistsRequestParameters> { @@ -232,7 +232,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Returns information about whether a document exists in an index. +/// Checks if a document in an index exists. /// public sealed partial class ExistsRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsSourceRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsSourceRequest.g.cs index 37a304b082c..9b94433576b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsSourceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExistsSourceRequest.g.cs @@ -32,53 +32,53 @@ namespace Elastic.Clients.Elasticsearch.Serverless; public sealed class ExistsSourceRequestParameters : RequestParameters { /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Specify whether to perform the operation in realtime or search mode + /// If true, the request is real-time as opposed to near-real-time. /// public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } /// - /// Refresh the shard containing the document before performing the operation + /// If `true`, Elasticsearch refreshes all shards involved in the delete by query after the request completes. /// public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specific routing value + /// Target the specified primary shard. /// public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// True or false to return the _source field or not, or a list of fields to return + /// `true` or `false` to return the `_source` field or not, or a list of fields to return. /// public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } /// - /// A list of fields to exclude from the returned _source field + /// A comma-separated list of source fields to exclude in the response. /// public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } /// - /// A list of fields to extract and return from the _source field + /// A comma-separated list of source fields to include in the response. /// public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } /// - /// Explicit version number for concurrency control + /// Explicit version number for concurrency control.
The specified version must match the current version of the document for the request to succeed.
///
public long? Version { get => Q("version"); set => Q("version", value); } /// - /// Specific version type + /// Specific version type: `external`, `external_gte`. /// public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } } /// -/// Returns information about whether a document source exists in an index. +/// Checks if a document's `_source` is stored. /// public sealed partial class ExistsSourceRequest : PlainRequest { @@ -95,62 +95,62 @@ public ExistsSourceRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName in internal override string OperationName => "exists_source"; /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
[JsonIgnore] public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Specify whether to perform the operation in realtime or search mode + /// If true, the request is real-time as opposed to near-real-time. /// [JsonIgnore] public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } /// - /// Refresh the shard containing the document before performing the operation + /// If `true`, Elasticsearch refreshes all shards involved in the delete by query after the request completes. /// [JsonIgnore] public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specific routing value + /// Target the specified primary shard. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// True or false to return the _source field or not, or a list of fields to return + /// `true` or `false` to return the `_source` field or not, or a list of fields to return. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } /// - /// A list of fields to exclude from the returned _source field + /// A comma-separated list of source fields to exclude in the response. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } /// - /// A list of fields to extract and return from the _source field + /// A comma-separated list of source fields to include in the response. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } /// - /// Explicit version number for concurrency control + /// Explicit version number for concurrency control.
The specified version must match the current version of the document for the request to succeed.
///
[JsonIgnore] public long? Version { get => Q("version"); set => Q("version", value); } /// - /// Specific version type + /// Specific version type: `external`, `external_gte`. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } } /// -/// Returns information about whether a document source exists in an index. +/// Checks if a document's `_source` is stored. /// public sealed partial class ExistsSourceRequestDescriptor : RequestDescriptor, ExistsSourceRequestParameters> { @@ -220,7 +220,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Returns information about whether a document source exists in an index. +/// Checks if a document's `_source` is stored. /// public sealed partial class ExistsSourceRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExplainRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExplainRequest.g.cs new file mode 100644 index 00000000000..eebda6f373e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExplainRequest.g.cs @@ -0,0 +1,413 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Requests; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless; + +public sealed class ExplainRequestParameters : RequestParameters +{ + /// + /// Analyzer to use for the query string.
This parameter can only be used when the `q` query string parameter is specified.
+ ///
+ public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } + + /// + /// If `true`, wildcard and prefix queries are analyzed. + /// + public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } + + /// + /// The default operator for query string query: `AND` or `OR`. + /// + public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } + + /// + /// Field to use as default where no field prefix is given in the query string. + /// + public string? Df { get => Q("df"); set => Q("df", value); } + + /// + /// If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. + /// + public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } + + /// + /// Specifies the node or shard the operation should be performed on.
Random by default.
+ ///
+ public string? Preference { get => Q("preference"); set => Q("preference", value); } + + /// + /// Custom value used to route operations to a specific shard. + /// + public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } + + /// + /// True or false to return the `_source` field or not, or a list of fields to return. + /// + public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } + + /// + /// A comma-separated list of source fields to exclude from the response. + /// + public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } + + /// + /// A comma-separated list of source fields to include in the response. + /// + public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } + + /// + /// A comma-separated list of stored fields to return in the response. + /// + public Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFields { get => Q("stored_fields"); set => Q("stored_fields", value); } + + /// + /// Query in the Lucene query string syntax. + /// + public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } +} + +/// +/// Returns information about why a specific document matches (or doesn’t match) a query. +/// +public sealed partial class ExplainRequest : PlainRequest +{ + public ExplainRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("index", index).Required("id", id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceExplain; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "explain"; + + /// + /// Analyzer to use for the query string.
This parameter can only be used when the `q` query string parameter is specified.
+ ///
+ [JsonIgnore] + public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } + + /// + /// If `true`, wildcard and prefix queries are analyzed. + /// + [JsonIgnore] + public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } + + /// + /// The default operator for query string query: `AND` or `OR`. + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } + + /// + /// Field to use as default where no field prefix is given in the query string. + /// + [JsonIgnore] + public string? Df { get => Q("df"); set => Q("df", value); } + + /// + /// If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. + /// + [JsonIgnore] + public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } + + /// + /// Specifies the node or shard the operation should be performed on.
Random by default.
+ ///
+ [JsonIgnore] + public string? Preference { get => Q("preference"); set => Q("preference", value); } + + /// + /// Custom value used to route operations to a specific shard. + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } + + /// + /// True or false to return the `_source` field or not, or a list of fields to return. + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } + + /// + /// A comma-separated list of source fields to exclude from the response. + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } + + /// + /// A comma-separated list of source fields to include in the response. + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } + + /// + /// A comma-separated list of stored fields to return in the response. + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFields { get => Q("stored_fields"); set => Q("stored_fields", value); } + + /// + /// Query in the Lucene query string syntax. + /// + [JsonIgnore] + public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } + + /// + /// Defines the search definition using the Query DSL. + /// + [JsonInclude, JsonPropertyName("query")] + public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; } +} + +/// +/// Returns information about why a specific document matches (or doesn’t match) a query. +/// +public sealed partial class ExplainRequestDescriptor : RequestDescriptor, ExplainRequestParameters> +{ + internal ExplainRequestDescriptor(Action> configure) => configure.Invoke(this); + + public ExplainRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("index", index).Required("id", id)) + { + } + + public ExplainRequestDescriptor(TDocument document) : this(typeof(TDocument), Serverless.Id.From(document)) + { + } + + public ExplainRequestDescriptor(TDocument document, IndexName index, Id id) : this(index, id) + { + } + + public ExplainRequestDescriptor(TDocument document, IndexName index) : this(index, Serverless.Id.From(document)) + { + } + + public ExplainRequestDescriptor(TDocument document, Id id) : this(typeof(TDocument), id) + { + } + + public ExplainRequestDescriptor(Id id) : this(typeof(TDocument), id) + { + } + + internal ExplainRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceExplain; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "explain"; + + public ExplainRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? source) => Qs("_source", source); + public ExplainRequestDescriptor SourceExcludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes); + public ExplainRequestDescriptor SourceIncludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceIncludes) => Qs("_source_includes", sourceIncludes); + public ExplainRequestDescriptor AnalyzeWildcard(bool? analyzeWildcard = true) => Qs("analyze_wildcard", analyzeWildcard); + public ExplainRequestDescriptor Analyzer(string? analyzer) => Qs("analyzer", analyzer); + public ExplainRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); + public ExplainRequestDescriptor Df(string? df) => Qs("df", df); + public ExplainRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); + public ExplainRequestDescriptor Preference(string? preference) => Qs("preference", preference); + public ExplainRequestDescriptor QueryLuceneSyntax(string? q) => Qs("q", q); + public ExplainRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); + public ExplainRequestDescriptor StoredFields(Elastic.Clients.Elasticsearch.Serverless.Fields? storedFields) => Qs("stored_fields", storedFields); + + public ExplainRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) + { + RouteValues.Required("id", id); + return Self; + } + + public ExplainRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) + { + RouteValues.Required("index", index); + return Self; + } + + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } + private QueryDsl.QueryDescriptor QueryDescriptor { get; set; } + private Action> QueryDescriptorAction { get; set; } + + /// + /// Defines the search definition using the Query DSL. + /// + public ExplainRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) + { + QueryDescriptor = null; + QueryDescriptorAction = null; + QueryValue = query; + return Self; + } + + public ExplainRequestDescriptor Query(QueryDsl.QueryDescriptor descriptor) + { + QueryValue = null; + QueryDescriptorAction = null; + QueryDescriptor = descriptor; + return Self; + } + + public ExplainRequestDescriptor Query(Action> configure) + { + QueryValue = null; + QueryDescriptor = null; + QueryDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (QueryDescriptor is not null) + { + writer.WritePropertyName("query"); + JsonSerializer.Serialize(writer, QueryDescriptor, options); + } + else if (QueryDescriptorAction is not null) + { + writer.WritePropertyName("query"); + JsonSerializer.Serialize(writer, new QueryDsl.QueryDescriptor(QueryDescriptorAction), options); + } + else if (QueryValue is not null) + { + writer.WritePropertyName("query"); + JsonSerializer.Serialize(writer, QueryValue, options); + } + + writer.WriteEndObject(); + } +} + +/// +/// Returns information about why a specific document matches (or doesn’t match) a query. +/// +public sealed partial class ExplainRequestDescriptor : RequestDescriptor +{ + internal ExplainRequestDescriptor(Action configure) => configure.Invoke(this); + + public ExplainRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("index", index).Required("id", id)) + { + } + + internal ExplainRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceExplain; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "explain"; + + public ExplainRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SourceConfigParam? source) => Qs("_source", source); + public ExplainRequestDescriptor SourceExcludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceExcludes) => Qs("_source_excludes", sourceExcludes); + public ExplainRequestDescriptor SourceIncludes(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceIncludes) => Qs("_source_includes", sourceIncludes); + public ExplainRequestDescriptor AnalyzeWildcard(bool? analyzeWildcard = true) => Qs("analyze_wildcard", analyzeWildcard); + public ExplainRequestDescriptor Analyzer(string? analyzer) => Qs("analyzer", analyzer); + public ExplainRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); + public ExplainRequestDescriptor Df(string? df) => Qs("df", df); + public ExplainRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); + public ExplainRequestDescriptor Preference(string? preference) => Qs("preference", preference); + public ExplainRequestDescriptor QueryLuceneSyntax(string? q) => Qs("q", q); + public ExplainRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) => Qs("routing", routing); + public ExplainRequestDescriptor StoredFields(Elastic.Clients.Elasticsearch.Serverless.Fields? storedFields) => Qs("stored_fields", storedFields); + + public ExplainRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) + { + RouteValues.Required("id", id); + return Self; + } + + public ExplainRequestDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) + { + RouteValues.Required("index", index); + return Self; + } + + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } + private QueryDsl.QueryDescriptor QueryDescriptor { get; set; } + private Action QueryDescriptorAction { get; set; } + + /// + /// Defines the search definition using the Query DSL. + /// + public ExplainRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) + { + QueryDescriptor = null; + QueryDescriptorAction = null; + QueryValue = query; + return Self; + } + + public ExplainRequestDescriptor Query(QueryDsl.QueryDescriptor descriptor) + { + QueryValue = null; + QueryDescriptorAction = null; + QueryDescriptor = descriptor; + return Self; + } + + public ExplainRequestDescriptor Query(Action configure) + { + QueryValue = null; + QueryDescriptor = null; + QueryDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (QueryDescriptor is not null) + { + writer.WritePropertyName("query"); + JsonSerializer.Serialize(writer, QueryDescriptor, options); + } + else if (QueryDescriptorAction is not null) + { + writer.WritePropertyName("query"); + JsonSerializer.Serialize(writer, new QueryDsl.QueryDescriptor(QueryDescriptorAction), options); + } + else if (QueryValue is not null) + { + writer.WritePropertyName("query"); + JsonSerializer.Serialize(writer, QueryValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExplainResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExplainResponse.g.cs new file mode 100644 index 00000000000..eadb4c450b5 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ExplainResponse.g.cs @@ -0,0 +1,40 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless; + +public sealed partial class ExplainResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("explanation")] + public Elastic.Clients.Elasticsearch.Serverless.Core.Explain.ExplanationDetail? Explanation { get; init; } + [JsonInclude, JsonPropertyName("get")] + public Elastic.Clients.Elasticsearch.Serverless.InlineGet? Get { get; init; } + [JsonInclude, JsonPropertyName("_id")] + public string Id { get; init; } + [JsonInclude, JsonPropertyName("_index")] + public string Index { get; init; } + [JsonInclude, JsonPropertyName("matched")] + public bool Matched { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetRequest.g.cs index 9915e2dcb99..2c7b194f8f7 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetRequest.g.cs @@ -37,7 +37,7 @@ public sealed class GetRequestParameters : RequestParameters public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Boolean) If true, the request is real-time as opposed to near-real-time. + /// If `true`, the request is real-time as opposed to near-real-time. /// public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } @@ -67,7 +67,7 @@ public sealed class GetRequestParameters : RequestParameters public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } /// - /// A comma-separated list of stored fields to return in the response + /// List of stored fields to return as part of a hit.
If no fields are specified, no stored fields are included in the response.
If this field is specified, the `_source` parameter defaults to false.
///
public Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFields { get => Q("stored_fields"); set => Q("stored_fields", value); } @@ -106,7 +106,7 @@ public GetRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elas public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Boolean) If true, the request is real-time as opposed to near-real-time. + /// If `true`, the request is real-time as opposed to near-real-time. /// [JsonIgnore] public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } @@ -142,7 +142,7 @@ public GetRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elas public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } /// - /// A comma-separated list of stored fields to return in the response + /// List of stored fields to return as part of a hit.
If no fields are specified, no stored fields are included in the response.
If this field is specified, the `_source` parameter defaults to false.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Fields? StoredFields { get => Q("stored_fields"); set => Q("stored_fields", value); } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetScriptRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetScriptRequest.g.cs index b58efb8ad6a..f15d3841d3d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetScriptRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/GetScriptRequest.g.cs @@ -38,7 +38,7 @@ public sealed class GetScriptRequestParameters : RequestParameters } /// -/// Returns a script. +/// Retrieves a stored script or search template. /// public sealed partial class GetScriptRequest : PlainRequest { @@ -62,7 +62,7 @@ public GetScriptRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r } /// -/// Returns a script. +/// Retrieves a stored script or search template. /// public sealed partial class GetScriptRequestDescriptor : RequestDescriptor, GetScriptRequestParameters> { @@ -98,7 +98,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Returns a script. +/// Retrieves a stored script or search template. /// public sealed partial class GetScriptRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataLifecycleRequest.g.cs index bb1c5f25d97..67435f2a5ff 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataLifecycleRequest.g.cs @@ -48,8 +48,7 @@ public sealed class DeleteDataLifecycleRequestParameters : RequestParameters } /// -/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. -/// Removes the data lifecycle from a data stream rendering it not managed by DLM +/// Removes the data lifecycle from a data stream rendering it not managed by the data stream lifecycle /// public sealed partial class DeleteDataLifecycleRequest : PlainRequest { @@ -85,8 +84,7 @@ public DeleteDataLifecycleRequest(Elastic.Clients.Elasticsearch.Serverless.DataS } /// -/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. -/// Removes the data lifecycle from a data stream rendering it not managed by DLM +/// Removes the data lifecycle from a data stream rendering it not managed by the data stream lifecycle /// public sealed partial class DeleteDataLifecycleRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataLifecycleResponse.g.cs index 6cb3ef23d85..261ac7bacd7 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataLifecycleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteDataLifecycleResponse.g.cs @@ -25,9 +25,6 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; -/// -/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. -/// public sealed partial class DeleteDataLifecycleResponse : ElasticsearchResponse { /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsTemplateRequest.g.cs deleted file mode 100644 index 68971a28f39..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsTemplateRequest.g.cs +++ /dev/null @@ -1,122 +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 Elastic.Clients.Elasticsearch.Serverless.Fluent; -using Elastic.Clients.Elasticsearch.Serverless.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed class ExistsTemplateRequestParameters : RequestParameters -{ - /// - /// Return settings in flat format (default: false) - /// - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - /// - /// Return local information, do not retrieve the state from master node (default: false) - /// - public bool? Local { get => Q("local"); set => Q("local", value); } - - /// - /// Explicit operation timeout for connection to master node - /// - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// Returns information about whether a particular index template exists. -/// -public sealed partial class ExistsTemplateRequest : PlainRequest -{ - public ExistsTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Names name) : base(r => r.Required("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementExistsTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.HEAD; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.exists_template"; - - /// - /// Return settings in flat format (default: false) - /// - [JsonIgnore] - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - /// - /// Return local information, do not retrieve the state from master node (default: false) - /// - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } - - /// - /// Explicit operation timeout for connection to master node - /// - [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// Returns information about whether a particular index template exists. -/// -public sealed partial class ExistsTemplateRequestDescriptor : RequestDescriptor -{ - internal ExistsTemplateRequestDescriptor(Action configure) => configure.Invoke(this); - - public ExistsTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Names name) : base(r => r.Required("name", name)) - { - } - - internal ExistsTemplateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementExistsTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.HEAD; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.exists_template"; - - public ExistsTemplateRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); - public ExistsTemplateRequestDescriptor Local(bool? local = true) => Qs("local", local); - public ExistsTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public ExistsTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Names name) - { - RouteValues.Required("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs index 1eaf1c14e11..68a5a4a2062 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs @@ -43,8 +43,7 @@ public sealed class ExplainDataLifecycleRequestParameters : RequestParameters } /// -/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. -/// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. +/// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. /// public sealed partial class ExplainDataLifecycleRequest : PlainRequest { @@ -74,8 +73,7 @@ public ExplainDataLifecycleRequest(Elastic.Clients.Elasticsearch.Serverless.Indi } /// -/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. -/// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. +/// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. /// public sealed partial class ExplainDataLifecycleRequestDescriptor : RequestDescriptor, ExplainDataLifecycleRequestParameters> { @@ -112,8 +110,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. -/// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. +/// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. /// public sealed partial class ExplainDataLifecycleRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExplainDataLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExplainDataLifecycleResponse.g.cs index 23245c157ae..8a06c17ca2c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExplainDataLifecycleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExplainDataLifecycleResponse.g.cs @@ -25,12 +25,9 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; -/// -/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. -/// public sealed partial class ExplainDataLifecycleResponse : ElasticsearchResponse { [JsonInclude, JsonPropertyName("indices")] - [ReadOnlyIndexNameDictionaryConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataLifecycleExplain))] - public IReadOnlyDictionary Indices { get; init; } + [ReadOnlyIndexNameDictionaryConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleExplain))] + public IReadOnlyDictionary Indices { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/FlushRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/FlushRequest.g.cs new file mode 100644 index 00000000000..3ea670f9135 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/FlushRequest.g.cs @@ -0,0 +1,182 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Requests; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; + +public sealed class FlushRequestParameters : RequestParameters +{ + /// + /// 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.
+ ///
+ public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } + + /// + /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`.
Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
+ ///
+ public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + + /// + /// If `true`, the request forces a flush even if there are no changes to commit to the index. + /// + public bool? Force { get => Q("force"); set => Q("force", value); } + + /// + /// If `false`, the request returns an error if it targets a missing or closed index. + /// + public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } + + /// + /// If `true`, the flush operation blocks until execution when another flush operation is running.
If `false`, Elasticsearch returns an error if you request a flush when another flush operation is running.
+ ///
+ public bool? WaitIfOngoing { get => Q("wait_if_ongoing"); set => Q("wait_if_ongoing", value); } +} + +/// +/// Flushes one or more data streams or indices. +/// +public sealed partial class FlushRequest : PlainRequest +{ + public FlushRequest() + { + } + + public FlushRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementFlush; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => false; + + internal override string OperationName => "indices.flush"; + + /// + /// 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.
+ ///
+ [JsonIgnore] + public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } + + /// + /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`.
Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
+ ///
+ [JsonIgnore] + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + + /// + /// If `true`, the request forces a flush even if there are no changes to commit to the index. + /// + [JsonIgnore] + public bool? Force { get => Q("force"); set => Q("force", value); } + + /// + /// If `false`, the request returns an error if it targets a missing or closed index. + /// + [JsonIgnore] + public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } + + /// + /// If `true`, the flush operation blocks until execution when another flush operation is running.
If `false`, Elasticsearch returns an error if you request a flush when another flush operation is running.
+ ///
+ [JsonIgnore] + public bool? WaitIfOngoing { get => Q("wait_if_ongoing"); set => Q("wait_if_ongoing", value); } +} + +/// +/// Flushes one or more data streams or indices. +/// +public sealed partial class FlushRequestDescriptor : RequestDescriptor, FlushRequestParameters> +{ + internal FlushRequestDescriptor(Action> configure) => configure.Invoke(this); + + public FlushRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementFlush; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => false; + + internal override string OperationName => "indices.flush"; + + public FlushRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); + public FlushRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public FlushRequestDescriptor Force(bool? force = true) => Qs("force", force); + public FlushRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); + public FlushRequestDescriptor WaitIfOngoing(bool? waitIfOngoing = true) => Qs("wait_if_ongoing", waitIfOngoing); + + public FlushRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) + { + RouteValues.Optional("index", indices); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} + +/// +/// Flushes one or more data streams or indices. +/// +public sealed partial class FlushRequestDescriptor : RequestDescriptor +{ + internal FlushRequestDescriptor(Action configure) => configure.Invoke(this); + + public FlushRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementFlush; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => false; + + internal override string OperationName => "indices.flush"; + + public FlushRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); + public FlushRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public FlushRequestDescriptor Force(bool? force = true) => Qs("force", force); + public FlushRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); + public FlushRequestDescriptor WaitIfOngoing(bool? waitIfOngoing = true) => Qs("wait_if_ongoing", waitIfOngoing); + + public FlushRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) + { + RouteValues.Optional("index", indices); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/FlushResponse.g.cs similarity index 88% rename from src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsTemplateResponse.g.cs rename to src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/FlushResponse.g.cs index 28e28fc9a3c..398dac17275 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ExistsTemplateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/FlushResponse.g.cs @@ -25,10 +25,8 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; -public sealed partial class ExistsTemplateResponse : ElasticsearchResponse +public sealed partial class FlushResponse : ElasticsearchResponse { - public bool Exists => ApiCallDetails is - { - HasSuccessfulStatusCode: true, HttpStatusCode: 200 - }; + [JsonInclude, JsonPropertyName("_shards")] + public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs new file mode 100644 index 00000000000..d562f03d5ad --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs @@ -0,0 +1,208 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Requests; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; + +public sealed class ForcemergeRequestParameters : RequestParameters +{ + /// + /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) + /// + public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } + + /// + /// Whether to expand wildcard expression to concrete indices that are open, closed or both. + /// + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + + /// + /// Specify whether the index should be flushed after performing the operation (default: true) + /// + public bool? Flush { get => Q("flush"); set => Q("flush", value); } + + /// + /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// + public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } + + /// + /// The number of segments the index should be merged into (default: dynamic) + /// + public long? MaxNumSegments { get => Q("max_num_segments"); set => Q("max_num_segments", value); } + + /// + /// Specify whether the operation should only expunge deleted documents + /// + public bool? OnlyExpungeDeletes { get => Q("only_expunge_deletes"); set => Q("only_expunge_deletes", value); } + + /// + /// Should the request wait until the force merge is completed. + /// + public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } +} + +/// +/// Performs the force merge operation on one or more indices. +/// +public sealed partial class ForcemergeRequest : PlainRequest +{ + public ForcemergeRequest() + { + } + + public ForcemergeRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementForcemerge; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => false; + + internal override string OperationName => "indices.forcemerge"; + + /// + /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) + /// + [JsonIgnore] + public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } + + /// + /// Whether to expand wildcard expression to concrete indices that are open, closed or both. + /// + [JsonIgnore] + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + + /// + /// Specify whether the index should be flushed after performing the operation (default: true) + /// + [JsonIgnore] + public bool? Flush { get => Q("flush"); set => Q("flush", value); } + + /// + /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// + [JsonIgnore] + public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } + + /// + /// The number of segments the index should be merged into (default: dynamic) + /// + [JsonIgnore] + public long? MaxNumSegments { get => Q("max_num_segments"); set => Q("max_num_segments", value); } + + /// + /// Specify whether the operation should only expunge deleted documents + /// + [JsonIgnore] + public bool? OnlyExpungeDeletes { get => Q("only_expunge_deletes"); set => Q("only_expunge_deletes", value); } + + /// + /// Should the request wait until the force merge is completed. + /// + [JsonIgnore] + public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } +} + +/// +/// Performs the force merge operation on one or more indices. +/// +public sealed partial class ForcemergeRequestDescriptor : RequestDescriptor, ForcemergeRequestParameters> +{ + internal ForcemergeRequestDescriptor(Action> configure) => configure.Invoke(this); + + public ForcemergeRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementForcemerge; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => false; + + internal override string OperationName => "indices.forcemerge"; + + public ForcemergeRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); + public ForcemergeRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public ForcemergeRequestDescriptor Flush(bool? flush = true) => Qs("flush", flush); + public ForcemergeRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); + public ForcemergeRequestDescriptor MaxNumSegments(long? maxNumSegments) => Qs("max_num_segments", maxNumSegments); + public ForcemergeRequestDescriptor OnlyExpungeDeletes(bool? onlyExpungeDeletes = true) => Qs("only_expunge_deletes", onlyExpungeDeletes); + public ForcemergeRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); + + public ForcemergeRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) + { + RouteValues.Optional("index", indices); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} + +/// +/// Performs the force merge operation on one or more indices. +/// +public sealed partial class ForcemergeRequestDescriptor : RequestDescriptor +{ + internal ForcemergeRequestDescriptor(Action configure) => configure.Invoke(this); + + public ForcemergeRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementForcemerge; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => false; + + internal override string OperationName => "indices.forcemerge"; + + public ForcemergeRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); + public ForcemergeRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public ForcemergeRequestDescriptor Flush(bool? flush = true) => Qs("flush", flush); + public ForcemergeRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); + public ForcemergeRequestDescriptor MaxNumSegments(long? maxNumSegments) => Qs("max_num_segments", maxNumSegments); + public ForcemergeRequestDescriptor OnlyExpungeDeletes(bool? onlyExpungeDeletes = true) => Qs("only_expunge_deletes", onlyExpungeDeletes); + public ForcemergeRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); + + public ForcemergeRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) + { + RouteValues.Optional("index", indices); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ForcemergeResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ForcemergeResponse.g.cs new file mode 100644 index 00000000000..79af39dcbf7 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/ForcemergeResponse.g.cs @@ -0,0 +1,38 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; + +public sealed partial class ForcemergeResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("_shards")] + public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; } + + /// + /// task contains a task id returned when wait_for_completion=false,
you can use the task_id to get the status of the task at _tasks/
+ ///
+ [JsonInclude, JsonPropertyName("task")] + public string? Task { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataLifecycleRequest.g.cs index 3bb4329cf71..08cd273776c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataLifecycleRequest.g.cs @@ -43,8 +43,7 @@ public sealed class GetDataLifecycleRequestParameters : RequestParameters } /// -/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. -/// Retrieves the data lifecycle configuration of one or more data streams. +/// Retrieves the data stream lifecycle configuration of one or more data streams. /// public sealed partial class GetDataLifecycleRequest : PlainRequest { @@ -74,8 +73,7 @@ public GetDataLifecycleRequest(Elastic.Clients.Elasticsearch.Serverless.DataStre } /// -/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. -/// Retrieves the data lifecycle configuration of one or more data streams. +/// Retrieves the data stream lifecycle configuration of one or more data streams. /// public sealed partial class GetDataLifecycleRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataLifecycleResponse.g.cs index deb6f5f3747..7d532ae533b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataLifecycleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetDataLifecycleResponse.g.cs @@ -25,11 +25,8 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; -/// -/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. -/// public sealed partial class GetDataLifecycleResponse : ElasticsearchResponse { [JsonInclude, JsonPropertyName("data_streams")] - public IReadOnlyCollection DataStreams { get; init; } + public IReadOnlyCollection DataStreams { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetTemplateRequest.g.cs deleted file mode 100644 index a6f2b3f2e34..00000000000 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetTemplateRequest.g.cs +++ /dev/null @@ -1,122 +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 Elastic.Clients.Elasticsearch.Serverless.Fluent; -using Elastic.Clients.Elasticsearch.Serverless.Requests; -using Elastic.Clients.Elasticsearch.Serverless.Serialization; -using Elastic.Transport; -using System; -using System.Collections.Generic; -using System.Linq.Expressions; -using System.Text.Json; -using System.Text.Json.Serialization; - -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; - -public sealed class GetTemplateRequestParameters : RequestParameters -{ - /// - /// If `true`, returns settings in flat format. - /// - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - /// - /// If `true`, the request retrieves information from the local node only. - /// - public bool? Local { get => Q("local"); set => Q("local", value); } - - /// - /// Period to wait for a connection to the master node.
If no response is received before the timeout expires, the request fails and returns an error.
- ///
- public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// Retrieves information about one or more index templates. -/// -public sealed partial class GetTemplateRequest : PlainRequest -{ - public GetTemplateRequest() - { - } - - public GetTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Names? name) : base(r => r.Optional("name", name)) - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementGetTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.get_template"; - - /// - /// If `true`, returns settings in flat format. - /// - [JsonIgnore] - public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } - - /// - /// If `true`, the request retrieves information from the local node only. - /// - [JsonIgnore] - public bool? Local { get => Q("local"); set => Q("local", value); } - - /// - /// Period to wait for a connection to the master node.
If no response is received before the timeout expires, the request fails and returns an error.
- ///
- [JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } -} - -/// -/// Retrieves information about one or more index templates. -/// -public sealed partial class GetTemplateRequestDescriptor : RequestDescriptor -{ - internal GetTemplateRequestDescriptor(Action configure) => configure.Invoke(this); - - public GetTemplateRequestDescriptor() - { - } - - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementGetTemplate; - - protected override HttpMethod StaticHttpMethod => HttpMethod.GET; - - internal override bool SupportsBody => false; - - internal override string OperationName => "indices.get_template"; - - public GetTemplateRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); - public GetTemplateRequestDescriptor Local(bool? local = true) => Qs("local", local); - public GetTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - - public GetTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Names? name) - { - RouteValues.Optional("name", name); - return Self; - } - - protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) - { - } -} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs index 5e35bb00528..9914aa8e7a1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs @@ -48,7 +48,6 @@ public sealed class PutDataLifecycleRequestParameters : RequestParameters } /// -/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Update the data lifecycle of the specified data streams. /// public sealed partial class PutDataLifecycleRequest : PlainRequest @@ -88,10 +87,15 @@ public PutDataLifecycleRequest(Elastic.Clients.Elasticsearch.Serverless.DataStre ///
[JsonInclude, JsonPropertyName("data_retention")] public Elastic.Clients.Elasticsearch.Serverless.Duration? DataRetention { get; set; } + + /// + /// If defined, every backing index will execute the configured downsampling configuration after the backing
index is not the data stream write index anymore.
+ ///
+ [JsonInclude, JsonPropertyName("downsampling")] + public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDownsampling? Downsampling { get; set; } } /// -/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Update the data lifecycle of the specified data streams. /// public sealed partial class PutDataLifecycleRequestDescriptor : RequestDescriptor @@ -125,6 +129,9 @@ public PutDataLifecycleRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serv } private Elastic.Clients.Elasticsearch.Serverless.Duration? DataRetentionValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDownsampling? DownsamplingValue { get; set; } + private DataStreamLifecycleDownsamplingDescriptor DownsamplingDescriptor { get; set; } + private Action DownsamplingDescriptorAction { get; set; } /// /// If defined, every document added to this data stream will be stored at least for this time frame.
Any time after this duration the document could be deleted.
When empty, every document in this data stream will be stored indefinitely.
@@ -135,6 +142,33 @@ public PutDataLifecycleRequestDescriptor DataRetention(Elastic.Clients.Elasticse return Self; } + /// + /// If defined, every backing index will execute the configured downsampling configuration after the backing
index is not the data stream write index anymore.
+ ///
+ public PutDataLifecycleRequestDescriptor Downsampling(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDownsampling? downsampling) + { + DownsamplingDescriptor = null; + DownsamplingDescriptorAction = null; + DownsamplingValue = downsampling; + return Self; + } + + public PutDataLifecycleRequestDescriptor Downsampling(DataStreamLifecycleDownsamplingDescriptor descriptor) + { + DownsamplingValue = null; + DownsamplingDescriptorAction = null; + DownsamplingDescriptor = descriptor; + return Self; + } + + public PutDataLifecycleRequestDescriptor Downsampling(Action configure) + { + DownsamplingValue = null; + DownsamplingDescriptor = null; + DownsamplingDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -144,6 +178,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, DataRetentionValue, options); } + if (DownsamplingDescriptor is not null) + { + writer.WritePropertyName("downsampling"); + JsonSerializer.Serialize(writer, DownsamplingDescriptor, options); + } + else if (DownsamplingDescriptorAction is not null) + { + writer.WritePropertyName("downsampling"); + JsonSerializer.Serialize(writer, new DataStreamLifecycleDownsamplingDescriptor(DownsamplingDescriptorAction), options); + } + else if (DownsamplingValue is not null) + { + writer.WritePropertyName("downsampling"); + JsonSerializer.Serialize(writer, DownsamplingValue, options); + } + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutDataLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutDataLifecycleResponse.g.cs index d146e5f0fa0..73b069879fb 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutDataLifecycleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/PutDataLifecycleResponse.g.cs @@ -25,9 +25,6 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; -/// -/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. -/// public sealed partial class PutDataLifecycleResponse : ElasticsearchResponse { /// diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RefreshRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RefreshRequest.g.cs new file mode 100644 index 00000000000..306796e378f --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RefreshRequest.g.cs @@ -0,0 +1,156 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Requests; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; + +public sealed class RefreshRequestParameters : RequestParameters +{ + /// + /// 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.
+ ///
+ public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } + + /// + /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`.
Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
+ ///
+ public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + + /// + /// If `false`, the request returns an error if it targets a missing or closed index. + /// + public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } +} + +/// +/// A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
+///
+public sealed partial class RefreshRequest : PlainRequest +{ + public RefreshRequest() + { + } + + public RefreshRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) : base(r => r.Optional("index", indices)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementRefresh; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => false; + + internal override string OperationName => "indices.refresh"; + + /// + /// 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.
+ ///
+ [JsonIgnore] + public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } + + /// + /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`.
Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
+ ///
+ [JsonIgnore] + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + + /// + /// If `false`, the request returns an error if it targets a missing or closed index. + /// + [JsonIgnore] + public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } +} + +/// +/// A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
+///
+public sealed partial class RefreshRequestDescriptor : RequestDescriptor, RefreshRequestParameters> +{ + internal RefreshRequestDescriptor(Action> configure) => configure.Invoke(this); + + public RefreshRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementRefresh; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => false; + + internal override string OperationName => "indices.refresh"; + + public RefreshRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); + public RefreshRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public RefreshRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); + + public RefreshRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) + { + RouteValues.Optional("index", indices); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} + +/// +/// A refresh makes recent operations performed on one or more indices available for search.
For data streams, the API runs the refresh operation on the stream’s backing indices.
+///
+public sealed partial class RefreshRequestDescriptor : RequestDescriptor +{ + internal RefreshRequestDescriptor(Action configure) => configure.Invoke(this); + + public RefreshRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementRefresh; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => false; + + internal override string OperationName => "indices.refresh"; + + public RefreshRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); + public RefreshRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public RefreshRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); + + public RefreshRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serverless.Indices? indices) + { + RouteValues.Optional("index", indices); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RefreshResponse.g.cs similarity index 80% rename from src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetTemplateResponse.g.cs rename to src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RefreshResponse.g.cs index d2cb8606532..d2226eae767 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/GetTemplateResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/RefreshResponse.g.cs @@ -25,13 +25,8 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; -public sealed partial class GetTemplateResponse : DictionaryResponse +public sealed partial class RefreshResponse : ElasticsearchResponse { - public GetTemplateResponse(IReadOnlyDictionary dictionary) : base(dictionary) - { - } - - public GetTemplateResponse() : base() - { - } + [JsonInclude, JsonPropertyName("_shards")] + public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexRequest.g.cs index a4aca113e8c..b9950563004 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexRequest.g.cs @@ -32,63 +32,63 @@ namespace Elastic.Clients.Elasticsearch.Serverless; public sealed class IndexRequestParameters : RequestParameters { /// - /// only perform the index operation if the last operation that has changed the document has the specified primary term + /// Only perform the operation if the document has this primary term. /// public long? IfPrimaryTerm { get => Q("if_primary_term"); set => Q("if_primary_term", value); } /// - /// only perform the index operation if the last operation that has changed the document has the specified sequence number + /// Only perform the operation if the document has this sequence number. /// public long? IfSeqNo { get => Q("if_seq_no"); set => Q("if_seq_no", value); } /// - /// Explicit operation type. Defaults to `index` for requests with an explicit document ID, and to `create`for requests without an explicit document ID + /// Set to create to only index the document if it does not already exist (put if absent).
If a document with the specified `_id` already exists, the indexing operation will fail.
Same as using the `/_create` endpoint.
Valid values: `index`, `create`.
If document id is specified, it defaults to `index`.
Otherwise, it defaults to `create`.
///
public Elastic.Clients.Elasticsearch.Serverless.OpType? OpType { get => Q("op_type"); set => Q("op_type", value); } /// - /// The pipeline id to preprocess incoming documents with + /// ID of the pipeline to use to preprocess incoming documents.
If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request.
If a final pipeline is configured it will always run, regardless of the value of this parameter.
///
public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } /// - /// If `true` 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` (the default) then do nothing with refreshes. + /// If `true`, Elasticsearch refreshes 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` do nothing with refreshes.
Valid values: `true`, `false`, `wait_for`.
///
public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specific routing value + /// Custom value used to route operations to a specific shard. /// public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Explicit operation timeout + /// Period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. /// public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Explicit version number for concurrency control + /// Explicit version number for concurrency control.
The specified version must match the current version of the document for the request to succeed.
///
public long? Version { get => Q("version"); set => Q("version", value); } /// - /// Specific version type + /// Specific version type: `external`, `external_gte`. /// public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } /// - /// Sets the number of shard copies that must be active before proceeding with the index operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// The number of shard copies that must be active before proceeding with the operation.
Set to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } /// - /// When true, requires destination to be an alias. Default is false + /// If `true`, the destination must be an index alias. /// public bool? RequireAlias { get => Q("require_alias"); set => Q("require_alias", value); } } /// -/// Creates or updates a document in an index. +/// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
///
public sealed partial class IndexRequest : PlainRequest { @@ -112,74 +112,74 @@ public IndexRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName index) : public TDocument Document { get; set; } /// - /// only perform the index operation if the last operation that has changed the document has the specified primary term + /// Only perform the operation if the document has this primary term. /// [JsonIgnore] public long? IfPrimaryTerm { get => Q("if_primary_term"); set => Q("if_primary_term", value); } /// - /// only perform the index operation if the last operation that has changed the document has the specified sequence number + /// Only perform the operation if the document has this sequence number. /// [JsonIgnore] public long? IfSeqNo { get => Q("if_seq_no"); set => Q("if_seq_no", value); } /// - /// Explicit operation type. Defaults to `index` for requests with an explicit document ID, and to `create`for requests without an explicit document ID + /// Set to create to only index the document if it does not already exist (put if absent).
If a document with the specified `_id` already exists, the indexing operation will fail.
Same as using the `/_create` endpoint.
Valid values: `index`, `create`.
If document id is specified, it defaults to `index`.
Otherwise, it defaults to `create`.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.OpType? OpType { get => Q("op_type"); set => Q("op_type", value); } /// - /// The pipeline id to preprocess incoming documents with + /// ID of the pipeline to use to preprocess incoming documents.
If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request.
If a final pipeline is configured it will always run, regardless of the value of this parameter.
///
[JsonIgnore] public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } /// - /// If `true` 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` (the default) then do nothing with refreshes. + /// If `true`, Elasticsearch refreshes 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` do nothing with refreshes.
Valid values: `true`, `false`, `wait_for`.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specific routing value + /// Custom value used to route operations to a specific shard. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Explicit operation timeout + /// Period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Explicit version number for concurrency control + /// Explicit version number for concurrency control.
The specified version must match the current version of the document for the request to succeed.
///
[JsonIgnore] public long? Version { get => Q("version"); set => Q("version", value); } /// - /// Specific version type + /// Specific version type: `external`, `external_gte`. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } /// - /// Sets the number of shard copies that must be active before proceeding with the index operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// The number of shard copies that must be active before proceeding with the operation.
Set to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } /// - /// When true, requires destination to be an alias. Default is false + /// If `true`, the destination must be an index alias. /// [JsonIgnore] public bool? RequireAlias { get => Q("require_alias"); set => Q("require_alias", value); } } /// -/// Creates or updates a document in an index. +/// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
///
public sealed partial class IndexRequestDescriptor : RequestDescriptor, IndexRequestParameters> { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchTemplateRequest.g.cs index 7f38b51b35a..f29ad9740fd 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiSearchTemplateRequest.g.cs @@ -34,27 +34,27 @@ namespace Elastic.Clients.Elasticsearch.Serverless; public sealed class MultiSearchTemplateRequestParameters : RequestParameters { /// - /// Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution + /// If `true`, network round-trips are minimized for cross-cluster search requests. /// public bool? CcsMinimizeRoundtrips { get => Q("ccs_minimize_roundtrips"); set => Q("ccs_minimize_roundtrips", value); } /// - /// Controls the maximum number of concurrent searches the multi search api will execute + /// Maximum number of concurrent searches the API can run. /// public long? MaxConcurrentSearches { get => Q("max_concurrent_searches"); set => Q("max_concurrent_searches", value); } /// - /// Search operation type + /// The type of the search operation.
Available options: `query_then_fetch`, `dfs_query_then_fetch`.
///
public Elastic.Clients.Elasticsearch.Serverless.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } /// - /// Indicates whether hits.total should be rendered as an integer or an object in the rest search response + /// If `true`, the response returns `hits.total` as an integer.
If `false`, it returns `hits.total` as an object.
///
public bool? RestTotalHitsAsInt { get => Q("rest_total_hits_as_int"); set => Q("rest_total_hits_as_int", value); } /// - /// Specify whether aggregation and suggester names should be prefixed by their respective types in the response + /// If `true`, the response prefixes aggregation and suggester names with their respective types. /// public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } } @@ -81,31 +81,31 @@ public MultiSearchTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Indic internal override string OperationName => "msearch_template"; /// - /// Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution + /// If `true`, network round-trips are minimized for cross-cluster search requests. /// [JsonIgnore] public bool? CcsMinimizeRoundtrips { get => Q("ccs_minimize_roundtrips"); set => Q("ccs_minimize_roundtrips", value); } /// - /// Controls the maximum number of concurrent searches the multi search api will execute + /// Maximum number of concurrent searches the API can run. /// [JsonIgnore] public long? MaxConcurrentSearches { get => Q("max_concurrent_searches"); set => Q("max_concurrent_searches", value); } /// - /// Search operation type + /// The type of the search operation.
Available options: `query_then_fetch`, `dfs_query_then_fetch`.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } /// - /// Indicates whether hits.total should be rendered as an integer or an object in the rest search response + /// If `true`, the response returns `hits.total` as an integer.
If `false`, it returns `hits.total` as an object.
///
[JsonIgnore] public bool? RestTotalHitsAsInt { get => Q("rest_total_hits_as_int"); set => Q("rest_total_hits_as_int", value); } /// - /// Specify whether aggregation and suggester names should be prefixed by their respective types in the response + /// If `true`, the response prefixes aggregation and suggester names with their respective types. /// [JsonIgnore] public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiTermVectorsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiTermVectorsRequest.g.cs index 00b097d9ccc..10c172cc8d6 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiTermVectorsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/MultiTermVectorsRequest.g.cs @@ -32,57 +32,57 @@ namespace Elastic.Clients.Elasticsearch.Serverless; public sealed class MultiTermVectorsRequestParameters : RequestParameters { /// - /// A comma-separated list of fields to return. Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// Comma-separated list or wildcard expressions of fields to include in the statistics.
Used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters.
///
public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get => Q("fields"); set => Q("fields", value); } /// - /// Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// If `true`, the response includes the document count, sum of document frequencies, and sum of total term frequencies. /// public bool? FieldStatistics { get => Q("field_statistics"); set => Q("field_statistics", value); } /// - /// Specifies if term offsets should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// If `true`, the response includes term offsets. /// public bool? Offsets { get => Q("offsets"); set => Q("offsets", value); } /// - /// Specifies if term payloads should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// If `true`, the response includes term payloads. /// public bool? Payloads { get => Q("payloads"); set => Q("payloads", value); } /// - /// Specifies if term positions should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// If `true`, the response includes term positions. /// public bool? Positions { get => Q("positions"); set => Q("positions", value); } /// - /// Specify the node or shard the operation should be performed on (default: random) .Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Specifies if requests are real-time as opposed to near-real-time (default: true). + /// If true, the request is real-time as opposed to near-real-time. /// public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } /// - /// Specific routing value. Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// Custom value used to route operations to a specific shard. /// public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Specifies if total term frequency and document frequency should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// If true, the response includes term frequency and document frequency. /// public bool? TermStatistics { get => Q("term_statistics"); set => Q("term_statistics", value); } /// - /// Explicit version number for concurrency control + /// If `true`, returns the document version as part of a hit. /// public long? Version { get => Q("version"); set => Q("version", value); } /// - /// Specific version type + /// Specific version type. /// public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } } @@ -109,72 +109,80 @@ public MultiTermVectorsRequest(Elastic.Clients.Elasticsearch.Serverless.IndexNam internal override string OperationName => "mtermvectors"; /// - /// A comma-separated list of fields to return. Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// Comma-separated list or wildcard expressions of fields to include in the statistics.
Used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get => Q("fields"); set => Q("fields", value); } /// - /// Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// If `true`, the response includes the document count, sum of document frequencies, and sum of total term frequencies. /// [JsonIgnore] public bool? FieldStatistics { get => Q("field_statistics"); set => Q("field_statistics", value); } /// - /// Specifies if term offsets should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// If `true`, the response includes term offsets. /// [JsonIgnore] public bool? Offsets { get => Q("offsets"); set => Q("offsets", value); } /// - /// Specifies if term payloads should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// If `true`, the response includes term payloads. /// [JsonIgnore] public bool? Payloads { get => Q("payloads"); set => Q("payloads", value); } /// - /// Specifies if term positions should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// If `true`, the response includes term positions. /// [JsonIgnore] public bool? Positions { get => Q("positions"); set => Q("positions", value); } /// - /// Specify the node or shard the operation should be performed on (default: random) .Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
[JsonIgnore] public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Specifies if requests are real-time as opposed to near-real-time (default: true). + /// If true, the request is real-time as opposed to near-real-time. /// [JsonIgnore] public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } /// - /// Specific routing value. Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// Custom value used to route operations to a specific shard. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Specifies if total term frequency and document frequency should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// If true, the response includes term frequency and document frequency. /// [JsonIgnore] public bool? TermStatistics { get => Q("term_statistics"); set => Q("term_statistics", value); } /// - /// Explicit version number for concurrency control + /// If `true`, returns the document version as part of a hit. /// [JsonIgnore] public long? Version { get => Q("version"); set => Q("version", value); } /// - /// Specific version type + /// Specific version type. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } + + /// + /// Array of existing or artificial documents. + /// [JsonInclude, JsonPropertyName("docs")] public ICollection? Docs { get; set; } + + /// + /// Simplified syntax to specify documents by their ID if they're in the same index. + /// [JsonInclude, JsonPropertyName("ids")] public ICollection? Ids { get; set; } } @@ -222,6 +230,9 @@ public MultiTermVectorsRequestDescriptor Index(Elastic.Clients.Elasti private Action>[] DocsDescriptorActions { get; set; } private ICollection? IdsValue { get; set; } + /// + /// Array of existing or artificial documents. + /// public MultiTermVectorsRequestDescriptor Docs(ICollection? docs) { DocsDescriptor = null; @@ -258,6 +269,9 @@ public MultiTermVectorsRequestDescriptor Docs(params Action + /// Simplified syntax to specify documents by their ID if they're in the same index. + ///
public MultiTermVectorsRequestDescriptor Ids(ICollection? ids) { IdsValue = ids; @@ -351,6 +365,9 @@ public MultiTermVectorsRequestDescriptor Index(Elastic.Clients.Elasticsearch.Ser private Action[] DocsDescriptorActions { get; set; } private ICollection? IdsValue { get; set; } + /// + /// Array of existing or artificial documents. + /// public MultiTermVectorsRequestDescriptor Docs(ICollection? docs) { DocsDescriptor = null; @@ -387,6 +404,9 @@ public MultiTermVectorsRequestDescriptor Docs(params Action + /// Simplified syntax to specify documents by their ID if they're in the same index. + ///
public MultiTermVectorsRequestDescriptor Ids(ICollection? ids) { IdsValue = ids; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeRequest.g.cs index 1d82b6d503c..9c7a389bd38 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/OpenPointInTimeRequest.g.cs @@ -32,27 +32,27 @@ namespace Elastic.Clients.Elasticsearch.Serverless; public sealed class OpenPointInTimeRequestParameters : RequestParameters { /// - /// Specific the time to live for the point in time + /// Extends the time to live of the corresponding point in time. /// public Elastic.Clients.Elasticsearch.Serverless.Duration KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If `false`, the request returns an error if it targets a missing or closed index. /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Specific routing value + /// Custom value used to route operations to a specific shard. /// public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. + /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
///
public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } } @@ -75,31 +75,31 @@ public OpenPointInTimeRequest(Elastic.Clients.Elasticsearch.Serverless.Indices i internal override string OperationName => "open_point_in_time"; /// - /// Specific the time to live for the point in time + /// Extends the time to live of the corresponding point in time. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Duration KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If `false`, the request returns an error if it targets a missing or closed index. /// [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
[JsonIgnore] public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Specific routing value + /// Custom value used to route operations to a specific shard. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. + /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
///
[JsonIgnore] public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PutScriptRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PutScriptRequest.g.cs index afab5110afb..e0d28960451 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PutScriptRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/PutScriptRequest.g.cs @@ -32,18 +32,18 @@ namespace Elastic.Clients.Elasticsearch.Serverless; public sealed class PutScriptRequestParameters : RequestParameters { /// - /// Specify timeout for connection to master + /// Period to wait for a connection to the master node.
If no response is received before the timeout expires, the request fails and returns an error.
///
public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } /// - /// Explicit operation timeout + /// Period to wait for a response.
If no response is received before the timeout expires, the request fails and returns an error.
///
public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// -/// Creates or updates a script. +/// Creates or updates a stored script or search template. /// public sealed partial class PutScriptRequest : PlainRequest { @@ -64,22 +64,26 @@ public PutScriptRequest(Elastic.Clients.Elasticsearch.Serverless.Id id, Elastic. internal override string OperationName => "put_script"; /// - /// Specify timeout for connection to master + /// Period to wait for a connection to the master node.
If no response is received before the timeout expires, the request fails and returns an error.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } /// - /// Explicit operation timeout + /// Period to wait for a response.
If no response is received before the timeout expires, the request fails and returns an error.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + + /// + /// Contains the script or search template, its parameters, and its language. + /// [JsonInclude, JsonPropertyName("script")] public Elastic.Clients.Elasticsearch.Serverless.StoredScript Script { get; set; } } /// -/// Creates or updates a script. +/// Creates or updates a stored script or search template. /// public sealed partial class PutScriptRequestDescriptor : RequestDescriptor, PutScriptRequestParameters> { @@ -124,6 +128,9 @@ public PutScriptRequestDescriptor Context(Elastic.Clients.Elasticsear private StoredScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } + /// + /// Contains the script or search template, its parameters, and its language. + /// public PutScriptRequestDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.StoredScript script) { ScriptDescriptor = null; @@ -172,7 +179,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Creates or updates a script. +/// Creates or updates a stored script or search template. /// public sealed partial class PutScriptRequestDescriptor : RequestDescriptor { @@ -217,6 +224,9 @@ public PutScriptRequestDescriptor Context(Elastic.Clients.Elasticsearch.Serverle private StoredScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } + /// + /// Contains the script or search template, its parameters, and its language. + /// public PutScriptRequestDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.StoredScript script) { ScriptDescriptor = null; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRequest.g.cs new file mode 100644 index 00000000000..bcac90871ab --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRequest.g.cs @@ -0,0 +1,545 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Requests; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless; + +public sealed class ReindexRequestParameters : RequestParameters +{ + /// + /// If `true`, the request refreshes affected shards to make this operation visible to search. + /// + public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } + + /// + /// The throttle for this request in sub-requests per second.
Defaults to no throttle.
+ ///
+ public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } + + /// + /// Specifies how long a consistent view of the index should be maintained for scrolled search. + /// + public Elastic.Clients.Elasticsearch.Serverless.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); } + + /// + /// The number of slices this task should be divided into.
Defaults to 1 slice, meaning the task isn’t sliced into subtasks.
+ ///
+ public Elastic.Clients.Elasticsearch.Serverless.Slices? Slices { get => Q("slices"); set => Q("slices", value); } + + /// + /// Period each indexing waits for automatic index creation, dynamic mapping updates, and waiting for active shards. + /// + public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + + /// + /// The number of shard copies that must be active before proceeding with the operation.
Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
+ ///
+ public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } + + /// + /// If `true`, the request blocks until the operation is complete. + /// + public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } + + /// + /// If `true`, the destination must be an index alias. + /// + public bool? RequireAlias { get => Q("require_alias"); set => Q("require_alias", value); } +} + +/// +/// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+///
+public sealed partial class ReindexRequest : PlainRequest +{ + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceReindex; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "reindex"; + + /// + /// If `true`, the request refreshes affected shards to make this operation visible to search. + /// + [JsonIgnore] + public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } + + /// + /// The throttle for this request in sub-requests per second.
Defaults to no throttle.
+ ///
+ [JsonIgnore] + public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } + + /// + /// Specifies how long a consistent view of the index should be maintained for scrolled search. + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Serverless.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); } + + /// + /// The number of slices this task should be divided into.
Defaults to 1 slice, meaning the task isn’t sliced into subtasks.
+ ///
+ [JsonIgnore] + public Elastic.Clients.Elasticsearch.Serverless.Slices? Slices { get => Q("slices"); set => Q("slices", value); } + + /// + /// Period each indexing waits for automatic index creation, dynamic mapping updates, and waiting for active shards. + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + + /// + /// The number of shard copies that must be active before proceeding with the operation.
Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
+ ///
+ [JsonIgnore] + public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } + + /// + /// If `true`, the request blocks until the operation is complete. + /// + [JsonIgnore] + public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } + + /// + /// If `true`, the destination must be an index alias. + /// + [JsonIgnore] + public bool? RequireAlias { get => Q("require_alias"); set => Q("require_alias", value); } + + /// + /// Set to proceed to continue reindexing even if there are conflicts. + /// + [JsonInclude, JsonPropertyName("conflicts")] + public Elastic.Clients.Elasticsearch.Serverless.Conflicts? Conflicts { get; set; } + + /// + /// The destination you are copying to. + /// + [JsonInclude, JsonPropertyName("dest")] + public Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.Destination Dest { get; set; } + + /// + /// The maximum number of documents to reindex. + /// + [JsonInclude, JsonPropertyName("max_docs")] + public long? MaxDocs { get; set; } + + /// + /// The script to run to update the document source or metadata when reindexing. + /// + [JsonInclude, JsonPropertyName("script")] + public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } + [JsonInclude, JsonPropertyName("size")] + public long? Size { get; set; } + + /// + /// The source you are copying from. + /// + [JsonInclude, JsonPropertyName("source")] + public Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.Source Source { get; set; } +} + +/// +/// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+///
+public sealed partial class ReindexRequestDescriptor : RequestDescriptor, ReindexRequestParameters> +{ + internal ReindexRequestDescriptor(Action> configure) => configure.Invoke(this); + + public ReindexRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceReindex; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "reindex"; + + public ReindexRequestDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); + public ReindexRequestDescriptor RequestsPerSecond(float? requestsPerSecond) => Qs("requests_per_second", requestsPerSecond); + public ReindexRequestDescriptor RequireAlias(bool? requireAlias = true) => Qs("require_alias", requireAlias); + public ReindexRequestDescriptor Scroll(Elastic.Clients.Elasticsearch.Serverless.Duration? scroll) => Qs("scroll", scroll); + public ReindexRequestDescriptor Slices(Elastic.Clients.Elasticsearch.Serverless.Slices? slices) => Qs("slices", slices); + public ReindexRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); + public ReindexRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); + public ReindexRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); + + private Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.Source SourceValue { get; set; } + private Core.Reindex.SourceDescriptor SourceDescriptor { get; set; } + private Action> SourceDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Conflicts? ConflictsValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.Destination DestValue { get; set; } + private Core.Reindex.DestinationDescriptor DestDescriptor { get; set; } + private Action DestDescriptorAction { get; set; } + private long? MaxDocsValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private long? SizeValue { get; set; } + + /// + /// The source you are copying from. + /// + public ReindexRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.Source source) + { + SourceDescriptor = null; + SourceDescriptorAction = null; + SourceValue = source; + return Self; + } + + public ReindexRequestDescriptor Source(Core.Reindex.SourceDescriptor descriptor) + { + SourceValue = null; + SourceDescriptorAction = null; + SourceDescriptor = descriptor; + return Self; + } + + public ReindexRequestDescriptor Source(Action> configure) + { + SourceValue = null; + SourceDescriptor = null; + SourceDescriptorAction = configure; + return Self; + } + + /// + /// Set to proceed to continue reindexing even if there are conflicts. + /// + public ReindexRequestDescriptor Conflicts(Elastic.Clients.Elasticsearch.Serverless.Conflicts? conflicts) + { + ConflictsValue = conflicts; + return Self; + } + + /// + /// The destination you are copying to. + /// + public ReindexRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.Destination dest) + { + DestDescriptor = null; + DestDescriptorAction = null; + DestValue = dest; + return Self; + } + + public ReindexRequestDescriptor Dest(Core.Reindex.DestinationDescriptor descriptor) + { + DestValue = null; + DestDescriptorAction = null; + DestDescriptor = descriptor; + return Self; + } + + public ReindexRequestDescriptor Dest(Action configure) + { + DestValue = null; + DestDescriptor = null; + DestDescriptorAction = configure; + return Self; + } + + /// + /// The maximum number of documents to reindex. + /// + public ReindexRequestDescriptor MaxDocs(long? maxDocs) + { + MaxDocsValue = maxDocs; + return Self; + } + + /// + /// The script to run to update the document source or metadata when reindexing. + /// + public ReindexRequestDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) + { + ScriptValue = script; + return Self; + } + + public ReindexRequestDescriptor Size(long? size) + { + SizeValue = size; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (SourceDescriptor is not null) + { + writer.WritePropertyName("source"); + JsonSerializer.Serialize(writer, SourceDescriptor, options); + } + else if (SourceDescriptorAction is not null) + { + writer.WritePropertyName("source"); + JsonSerializer.Serialize(writer, new Core.Reindex.SourceDescriptor(SourceDescriptorAction), options); + } + else + { + writer.WritePropertyName("source"); + JsonSerializer.Serialize(writer, SourceValue, options); + } + + if (ConflictsValue is not null) + { + writer.WritePropertyName("conflicts"); + JsonSerializer.Serialize(writer, ConflictsValue, options); + } + + if (DestDescriptor is not null) + { + writer.WritePropertyName("dest"); + JsonSerializer.Serialize(writer, DestDescriptor, options); + } + else if (DestDescriptorAction is not null) + { + writer.WritePropertyName("dest"); + JsonSerializer.Serialize(writer, new Core.Reindex.DestinationDescriptor(DestDescriptorAction), options); + } + else + { + writer.WritePropertyName("dest"); + JsonSerializer.Serialize(writer, DestValue, options); + } + + if (MaxDocsValue.HasValue) + { + writer.WritePropertyName("max_docs"); + writer.WriteNumberValue(MaxDocsValue.Value); + } + + if (ScriptValue is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptValue, options); + } + + if (SizeValue.HasValue) + { + writer.WritePropertyName("size"); + writer.WriteNumberValue(SizeValue.Value); + } + + writer.WriteEndObject(); + } +} + +/// +/// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+///
+public sealed partial class ReindexRequestDescriptor : RequestDescriptor +{ + internal ReindexRequestDescriptor(Action configure) => configure.Invoke(this); + + public ReindexRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceReindex; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "reindex"; + + public ReindexRequestDescriptor Refresh(bool? refresh = true) => Qs("refresh", refresh); + public ReindexRequestDescriptor RequestsPerSecond(float? requestsPerSecond) => Qs("requests_per_second", requestsPerSecond); + public ReindexRequestDescriptor RequireAlias(bool? requireAlias = true) => Qs("require_alias", requireAlias); + public ReindexRequestDescriptor Scroll(Elastic.Clients.Elasticsearch.Serverless.Duration? scroll) => Qs("scroll", scroll); + public ReindexRequestDescriptor Slices(Elastic.Clients.Elasticsearch.Serverless.Slices? slices) => Qs("slices", slices); + public ReindexRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); + public ReindexRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards); + public ReindexRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); + + private Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.Source SourceValue { get; set; } + private Core.Reindex.SourceDescriptor SourceDescriptor { get; set; } + private Action SourceDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Conflicts? ConflictsValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.Destination DestValue { get; set; } + private Core.Reindex.DestinationDescriptor DestDescriptor { get; set; } + private Action DestDescriptorAction { get; set; } + private long? MaxDocsValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + private long? SizeValue { get; set; } + + /// + /// The source you are copying from. + /// + public ReindexRequestDescriptor Source(Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.Source source) + { + SourceDescriptor = null; + SourceDescriptorAction = null; + SourceValue = source; + return Self; + } + + public ReindexRequestDescriptor Source(Core.Reindex.SourceDescriptor descriptor) + { + SourceValue = null; + SourceDescriptorAction = null; + SourceDescriptor = descriptor; + return Self; + } + + public ReindexRequestDescriptor Source(Action configure) + { + SourceValue = null; + SourceDescriptor = null; + SourceDescriptorAction = configure; + return Self; + } + + /// + /// Set to proceed to continue reindexing even if there are conflicts. + /// + public ReindexRequestDescriptor Conflicts(Elastic.Clients.Elasticsearch.Serverless.Conflicts? conflicts) + { + ConflictsValue = conflicts; + return Self; + } + + /// + /// The destination you are copying to. + /// + public ReindexRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.Destination dest) + { + DestDescriptor = null; + DestDescriptorAction = null; + DestValue = dest; + return Self; + } + + public ReindexRequestDescriptor Dest(Core.Reindex.DestinationDescriptor descriptor) + { + DestValue = null; + DestDescriptorAction = null; + DestDescriptor = descriptor; + return Self; + } + + public ReindexRequestDescriptor Dest(Action configure) + { + DestValue = null; + DestDescriptor = null; + DestDescriptorAction = configure; + return Self; + } + + /// + /// The maximum number of documents to reindex. + /// + public ReindexRequestDescriptor MaxDocs(long? maxDocs) + { + MaxDocsValue = maxDocs; + return Self; + } + + /// + /// The script to run to update the document source or metadata when reindexing. + /// + public ReindexRequestDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) + { + ScriptValue = script; + return Self; + } + + public ReindexRequestDescriptor Size(long? size) + { + SizeValue = size; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (SourceDescriptor is not null) + { + writer.WritePropertyName("source"); + JsonSerializer.Serialize(writer, SourceDescriptor, options); + } + else if (SourceDescriptorAction is not null) + { + writer.WritePropertyName("source"); + JsonSerializer.Serialize(writer, new Core.Reindex.SourceDescriptor(SourceDescriptorAction), options); + } + else + { + writer.WritePropertyName("source"); + JsonSerializer.Serialize(writer, SourceValue, options); + } + + if (ConflictsValue is not null) + { + writer.WritePropertyName("conflicts"); + JsonSerializer.Serialize(writer, ConflictsValue, options); + } + + if (DestDescriptor is not null) + { + writer.WritePropertyName("dest"); + JsonSerializer.Serialize(writer, DestDescriptor, options); + } + else if (DestDescriptorAction is not null) + { + writer.WritePropertyName("dest"); + JsonSerializer.Serialize(writer, new Core.Reindex.DestinationDescriptor(DestDescriptorAction), options); + } + else + { + writer.WritePropertyName("dest"); + JsonSerializer.Serialize(writer, DestValue, options); + } + + if (MaxDocsValue.HasValue) + { + writer.WritePropertyName("max_docs"); + writer.WriteNumberValue(MaxDocsValue.Value); + } + + if (ScriptValue is not null) + { + writer.WritePropertyName("script"); + JsonSerializer.Serialize(writer, ScriptValue, options); + } + + if (SizeValue.HasValue) + { + writer.WritePropertyName("size"); + writer.WriteNumberValue(SizeValue.Value); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexResponse.g.cs new file mode 100644 index 00000000000..606a9ad676a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexResponse.g.cs @@ -0,0 +1,62 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless; + +public sealed partial class ReindexResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("batches")] + public long? Batches { get; init; } + [JsonInclude, JsonPropertyName("created")] + public long? Created { get; init; } + [JsonInclude, JsonPropertyName("deleted")] + public long? Deleted { get; init; } + [JsonInclude, JsonPropertyName("failures")] + public IReadOnlyCollection? Failures { get; init; } + [JsonInclude, JsonPropertyName("noops")] + public long? Noops { get; init; } + [JsonInclude, JsonPropertyName("requests_per_second")] + public float? RequestsPerSecond { get; init; } + [JsonInclude, JsonPropertyName("retries")] + public Elastic.Clients.Elasticsearch.Serverless.Retries? Retries { get; init; } + [JsonInclude, JsonPropertyName("slice_id")] + public int? SliceId { get; init; } + [JsonInclude, JsonPropertyName("task")] + public Elastic.Clients.Elasticsearch.Serverless.TaskId? Task { get; init; } + [JsonInclude, JsonPropertyName("throttled_millis")] + public long? ThrottledMillis { get; init; } + [JsonInclude, JsonPropertyName("throttled_until_millis")] + public long? ThrottledUntilMillis { get; init; } + [JsonInclude, JsonPropertyName("timed_out")] + public bool? TimedOut { get; init; } + [JsonInclude, JsonPropertyName("took")] + public long? Took { get; init; } + [JsonInclude, JsonPropertyName("total")] + public long? Total { get; init; } + [JsonInclude, JsonPropertyName("updated")] + public long? Updated { get; init; } + [JsonInclude, JsonPropertyName("version_conflicts")] + public long? VersionConflicts { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRethrottleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRethrottleRequest.g.cs new file mode 100644 index 00000000000..2fbc278ac67 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRethrottleRequest.g.cs @@ -0,0 +1,98 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Requests; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless; + +public sealed class ReindexRethrottleRequestParameters : RequestParameters +{ + /// + /// The throttle for this request in sub-requests per second. + /// + public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } +} + +/// +/// Copies documents from a source to a destination. +/// +public sealed partial class ReindexRethrottleRequest : PlainRequest +{ + public ReindexRethrottleRequest(Elastic.Clients.Elasticsearch.Serverless.Id task_id) : base(r => r.Required("task_id", task_id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceReindexRethrottle; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => false; + + internal override string OperationName => "reindex_rethrottle"; + + /// + /// The throttle for this request in sub-requests per second. + /// + [JsonIgnore] + public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } +} + +/// +/// Copies documents from a source to a destination. +/// +public sealed partial class ReindexRethrottleRequestDescriptor : RequestDescriptor +{ + internal ReindexRethrottleRequestDescriptor(Action configure) => configure.Invoke(this); + + public ReindexRethrottleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id task_id) : base(r => r.Required("task_id", task_id)) + { + } + + internal ReindexRethrottleRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceReindexRethrottle; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => false; + + internal override string OperationName => "reindex_rethrottle"; + + public ReindexRethrottleRequestDescriptor RequestsPerSecond(float? requestsPerSecond) => Qs("requests_per_second", requestsPerSecond); + + public ReindexRethrottleRequestDescriptor TaskId(Elastic.Clients.Elasticsearch.Serverless.Id task_id) + { + RouteValues.Required("task_id", task_id); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRethrottleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRethrottleResponse.g.cs new file mode 100644 index 00000000000..d773d734cd4 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/ReindexRethrottleResponse.g.cs @@ -0,0 +1,32 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless; + +public sealed partial class ReindexRethrottleResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("nodes")] + public IReadOnlyDictionary Nodes { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RenderSearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RenderSearchTemplateRequest.g.cs index 811037eab3c..b01b2c527ed 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RenderSearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/RenderSearchTemplateRequest.g.cs @@ -34,7 +34,7 @@ public sealed class RenderSearchTemplateRequestParameters : RequestParameters } /// -/// Allows to use the Mustache language to pre-render a search definition. +/// Renders a search template as a search request body. /// public sealed partial class RenderSearchTemplateRequest : PlainRequest { @@ -56,14 +56,22 @@ public RenderSearchTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Id? [JsonInclude, JsonPropertyName("file")] public string? File { get; set; } + + /// + /// Key-value pairs used to replace Mustache variables in the template.
The key is the variable name.
The value is the variable value.
+ ///
[JsonInclude, JsonPropertyName("params")] public IDictionary? Params { get; set; } + + /// + /// An inline search template.
Supports the same parameters as the search API's request body.
These parameters also support Mustache variables.
If no `id` or `` is specified, this parameter is required.
+ ///
[JsonInclude, JsonPropertyName("source")] public string? Source { get; set; } } /// -/// Allows to use the Mustache language to pre-render a search definition. +/// Renders a search template as a search request body. /// public sealed partial class RenderSearchTemplateRequestDescriptor : RequestDescriptor, RenderSearchTemplateRequestParameters> { @@ -97,12 +105,18 @@ public RenderSearchTemplateRequestDescriptor File(string? file) return Self; } + /// + /// Key-value pairs used to replace Mustache variables in the template.
The key is the variable name.
The value is the variable value.
+ ///
public RenderSearchTemplateRequestDescriptor Params(Func, FluentDictionary> selector) { ParamsValue = selector?.Invoke(new FluentDictionary()); return Self; } + /// + /// An inline search template.
Supports the same parameters as the search API's request body.
These parameters also support Mustache variables.
If no `id` or `` is specified, this parameter is required.
+ ///
public RenderSearchTemplateRequestDescriptor Source(string? source) { SourceValue = source; @@ -135,7 +149,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Allows to use the Mustache language to pre-render a search definition. +/// Renders a search template as a search request body. /// public sealed partial class RenderSearchTemplateRequestDescriptor : RequestDescriptor { @@ -169,12 +183,18 @@ public RenderSearchTemplateRequestDescriptor File(string? file) return Self; } + /// + /// Key-value pairs used to replace Mustache variables in the template.
The key is the variable name.
The value is the variable value.
+ ///
public RenderSearchTemplateRequestDescriptor Params(Func, FluentDictionary> selector) { ParamsValue = selector?.Invoke(new FluentDictionary()); return Self; } + /// + /// An inline search template.
Supports the same parameters as the search API's request body.
These parameters also support Mustache variables.
If no `id` or `` is specified, this parameter is required.
+ ///
public RenderSearchTemplateRequestDescriptor Source(string? source) { SourceValue = source; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchTemplateRequest.g.cs index 03ab4fb0fdb..3611764b650 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/SearchTemplateRequest.g.cs @@ -32,32 +32,32 @@ namespace Elastic.Clients.Elasticsearch.Serverless; public sealed class SearchTemplateRequestParameters : RequestParameters { /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) + /// 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`.
///
public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } /// - /// Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution + /// If `true`, network round-trips are minimized for cross-cluster search requests. /// public bool? CcsMinimizeRoundtrips { get => Q("ccs_minimize_roundtrips"); set => Q("ccs_minimize_roundtrips", value); } /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. + /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`.
Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
///
public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } /// - /// Whether specified concrete, expanded or aliased indices should be ignored when throttled + /// If `true`, specified concrete, expanded, or aliased indices are not included in the response when throttled. /// public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If `false`, the request returns an error if it targets a missing or closed index. /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
public string? Preference { get => Q("preference"); set => Q("preference", value); } @@ -82,13 +82,13 @@ public sealed class SearchTemplateRequestParameters : RequestParameters public bool? RestTotalHitsAsInt { get => Q("rest_total_hits_as_int"); set => Q("rest_total_hits_as_int", value); } /// - /// Specify whether aggregation and suggester names should be prefixed by their respective types in the response + /// If `true`, the response prefixes aggregation and suggester names with their respective types. /// public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } } /// -/// Allows to use the Mustache language to pre-render a search definition. +/// Runs a search with a search template. /// public sealed partial class SearchTemplateRequest : PlainRequest { @@ -109,37 +109,37 @@ public SearchTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? i internal override string OperationName => "search_template"; /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) + /// 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`.
///
[JsonIgnore] public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } /// - /// Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution + /// If `true`, network round-trips are minimized for cross-cluster search requests. /// [JsonIgnore] public bool? CcsMinimizeRoundtrips { get => Q("ccs_minimize_roundtrips"); set => Q("ccs_minimize_roundtrips", value); } /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. + /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`.
Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
///
[JsonIgnore] public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } /// - /// Whether specified concrete, expanded or aliased indices should be ignored when throttled + /// If `true`, specified concrete, expanded, or aliased indices are not included in the response when throttled. /// [JsonIgnore] public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If `false`, the request returns an error if it targets a missing or closed index. /// [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
[JsonIgnore] public string? Preference { get => Q("preference"); set => Q("preference", value); } @@ -169,10 +169,14 @@ public SearchTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? i public bool? RestTotalHitsAsInt { get => Q("rest_total_hits_as_int"); set => Q("rest_total_hits_as_int", value); } /// - /// Specify whether aggregation and suggester names should be prefixed by their respective types in the response + /// If `true`, the response prefixes aggregation and suggester names with their respective types. /// [JsonIgnore] public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } + + /// + /// If `true`, returns detailed information about score calculation as part of each hit. + /// [JsonInclude, JsonPropertyName("explain")] public bool? Explain { get; set; } @@ -181,8 +185,16 @@ public SearchTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? i ///
[JsonInclude, JsonPropertyName("id")] public Elastic.Clients.Elasticsearch.Serverless.Id? Id { get; set; } + + /// + /// Key-value pairs used to replace Mustache variables in the template.
The key is the variable name.
The value is the variable value.
+ ///
[JsonInclude, JsonPropertyName("params")] public IDictionary? Params { get; set; } + + /// + /// If `true`, the query execution is profiled. + /// [JsonInclude, JsonPropertyName("profile")] public bool? Profile { get; set; } @@ -194,7 +206,7 @@ public SearchTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Indices? i } /// -/// Allows to use the Mustache language to pre-render a search definition. +/// Runs a search with a search template. /// public sealed partial class SearchTemplateRequestDescriptor : RequestDescriptor, SearchTemplateRequestParameters> { @@ -236,6 +248,9 @@ public SearchTemplateRequestDescriptor Indices(Elastic.Clients.Elasti private bool? ProfileValue { get; set; } private string? SourceValue { get; set; } + /// + /// If `true`, returns detailed information about score calculation as part of each hit. + /// public SearchTemplateRequestDescriptor Explain(bool? explain = true) { ExplainValue = explain; @@ -251,12 +266,18 @@ public SearchTemplateRequestDescriptor Id(Elastic.Clients.Elasticsear return Self; } + /// + /// Key-value pairs used to replace Mustache variables in the template.
The key is the variable name.
The value is the variable value.
+ ///
public SearchTemplateRequestDescriptor Params(Func, FluentDictionary> selector) { ParamsValue = selector?.Invoke(new FluentDictionary()); return Self; } + /// + /// If `true`, the query execution is profiled. + /// public SearchTemplateRequestDescriptor Profile(bool? profile = true) { ProfileValue = profile; @@ -310,7 +331,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Allows to use the Mustache language to pre-render a search definition. +/// Runs a search with a search template. /// public sealed partial class SearchTemplateRequestDescriptor : RequestDescriptor { @@ -352,6 +373,9 @@ public SearchTemplateRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Ser private bool? ProfileValue { get; set; } private string? SourceValue { get; set; } + /// + /// If `true`, returns detailed information about score calculation as part of each hit. + /// public SearchTemplateRequestDescriptor Explain(bool? explain = true) { ExplainValue = explain; @@ -367,12 +391,18 @@ public SearchTemplateRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverle return Self; } + /// + /// Key-value pairs used to replace Mustache variables in the template.
The key is the variable name.
The value is the variable value.
+ ///
public SearchTemplateRequestDescriptor Params(Func, FluentDictionary> selector) { ParamsValue = selector?.Invoke(new FluentDictionary()); return Self; } + /// + /// If `true`, the query execution is profiled. + /// public SearchTemplateRequestDescriptor Profile(bool? profile = true) { ProfileValue = profile; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/ClearCursorRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/ClearCursorRequest.g.cs new file mode 100644 index 00000000000..e4317ab27a5 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/ClearCursorRequest.g.cs @@ -0,0 +1,93 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Requests; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Sql; + +public sealed class ClearCursorRequestParameters : RequestParameters +{ +} + +/// +/// Clears the SQL cursor +/// +public sealed partial class ClearCursorRequest : PlainRequest +{ + internal override ApiUrls ApiUrls => ApiUrlLookup.SqlClearCursor; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "sql.clear_cursor"; + + /// + /// Cursor to clear. + /// + [JsonInclude, JsonPropertyName("cursor")] + public string Cursor { get; set; } +} + +/// +/// Clears the SQL cursor +/// +public sealed partial class ClearCursorRequestDescriptor : RequestDescriptor +{ + internal ClearCursorRequestDescriptor(Action configure) => configure.Invoke(this); + + public ClearCursorRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SqlClearCursor; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "sql.clear_cursor"; + + private string CursorValue { get; set; } + + /// + /// Cursor to clear. + /// + public ClearCursorRequestDescriptor Cursor(string cursor) + { + CursorValue = cursor; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("cursor"); + writer.WriteStringValue(CursorValue); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/ClearCursorResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/ClearCursorResponse.g.cs new file mode 100644 index 00000000000..9d9b0ae35eb --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/ClearCursorResponse.g.cs @@ -0,0 +1,32 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Sql; + +public sealed partial class ClearCursorResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("succeeded")] + public bool Succeeded { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/DeleteAsyncRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/DeleteAsyncRequest.g.cs new file mode 100644 index 00000000000..7706dec0a7a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/DeleteAsyncRequest.g.cs @@ -0,0 +1,120 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Requests; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Sql; + +public sealed class DeleteAsyncRequestParameters : RequestParameters +{ +} + +/// +/// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. +/// +public sealed partial class DeleteAsyncRequest : PlainRequest +{ + public DeleteAsyncRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SqlDeleteAsync; + + protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; + + internal override bool SupportsBody => false; + + internal override string OperationName => "sql.delete_async"; +} + +/// +/// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. +/// +public sealed partial class DeleteAsyncRequestDescriptor : RequestDescriptor, DeleteAsyncRequestParameters> +{ + internal DeleteAsyncRequestDescriptor(Action> configure) => configure.Invoke(this); + + public DeleteAsyncRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) + { + } + + internal DeleteAsyncRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SqlDeleteAsync; + + protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; + + internal override bool SupportsBody => false; + + internal override string OperationName => "sql.delete_async"; + + public DeleteAsyncRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) + { + RouteValues.Required("id", id); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} + +/// +/// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. +/// +public sealed partial class DeleteAsyncRequestDescriptor : RequestDescriptor +{ + internal DeleteAsyncRequestDescriptor(Action configure) => configure.Invoke(this); + + public DeleteAsyncRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) + { + } + + internal DeleteAsyncRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SqlDeleteAsync; + + protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; + + internal override bool SupportsBody => false; + + internal override string OperationName => "sql.delete_async"; + + public DeleteAsyncRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) + { + RouteValues.Required("id", id); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/DeleteAsyncResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/DeleteAsyncResponse.g.cs new file mode 100644 index 00000000000..0f90d6b6328 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/DeleteAsyncResponse.g.cs @@ -0,0 +1,35 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Sql; + +public sealed partial class DeleteAsyncResponse : ElasticsearchResponse +{ + /// + /// For a successful response, this value is always true. On failure, an exception is returned instead. + /// + [JsonInclude, JsonPropertyName("acknowledged")] + public bool Acknowledged { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncRequest.g.cs new file mode 100644 index 00000000000..de47c700aea --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncRequest.g.cs @@ -0,0 +1,173 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Requests; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Sql; + +public sealed class GetAsyncRequestParameters : RequestParameters +{ + /// + /// Separator for CSV results. The API only supports this parameter for CSV responses. + /// + public string? Delimiter { get => Q("delimiter"); set => Q("delimiter", value); } + + /// + /// Format for the response. You must specify a format using this parameter or the
Accept HTTP header. If you specify both, the API uses this parameter.
+ ///
+ public string? Format { get => Q("format"); set => Q("format", value); } + + /// + /// Retention period for the search and its results. Defaults
to the `keep_alive` period for the original SQL search.
+ ///
+ public Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } + + /// + /// Period to wait for complete results. Defaults to no timeout,
meaning the request waits for complete search results.
+ ///
+ public Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeout { get => Q("wait_for_completion_timeout"); set => Q("wait_for_completion_timeout", value); } +} + +/// +/// Returns the current status and available results for an async SQL search or stored synchronous SQL search +/// +public sealed partial class GetAsyncRequest : PlainRequest +{ + public GetAsyncRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SqlGetAsync; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "sql.get_async"; + + /// + /// Separator for CSV results. The API only supports this parameter for CSV responses. + /// + [JsonIgnore] + public string? Delimiter { get => Q("delimiter"); set => Q("delimiter", value); } + + /// + /// Format for the response. You must specify a format using this parameter or the
Accept HTTP header. If you specify both, the API uses this parameter.
+ ///
+ [JsonIgnore] + public string? Format { get => Q("format"); set => Q("format", value); } + + /// + /// Retention period for the search and its results. Defaults
to the `keep_alive` period for the original SQL search.
+ ///
+ [JsonIgnore] + public Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } + + /// + /// Period to wait for complete results. Defaults to no timeout,
meaning the request waits for complete search results.
+ ///
+ [JsonIgnore] + public Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeout { get => Q("wait_for_completion_timeout"); set => Q("wait_for_completion_timeout", value); } +} + +/// +/// Returns the current status and available results for an async SQL search or stored synchronous SQL search +/// +public sealed partial class GetAsyncRequestDescriptor : RequestDescriptor, GetAsyncRequestParameters> +{ + internal GetAsyncRequestDescriptor(Action> configure) => configure.Invoke(this); + + public GetAsyncRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) + { + } + + internal GetAsyncRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SqlGetAsync; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "sql.get_async"; + + public GetAsyncRequestDescriptor Delimiter(string? delimiter) => Qs("delimiter", delimiter); + public GetAsyncRequestDescriptor Format(string? format) => Qs("format", format); + public GetAsyncRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) => Qs("keep_alive", keepAlive); + public GetAsyncRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? waitForCompletionTimeout) => Qs("wait_for_completion_timeout", waitForCompletionTimeout); + + public GetAsyncRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) + { + RouteValues.Required("id", id); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} + +/// +/// Returns the current status and available results for an async SQL search or stored synchronous SQL search +/// +public sealed partial class GetAsyncRequestDescriptor : RequestDescriptor +{ + internal GetAsyncRequestDescriptor(Action configure) => configure.Invoke(this); + + public GetAsyncRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) + { + } + + internal GetAsyncRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SqlGetAsync; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "sql.get_async"; + + public GetAsyncRequestDescriptor Delimiter(string? delimiter) => Qs("delimiter", delimiter); + public GetAsyncRequestDescriptor Format(string? format) => Qs("format", format); + public GetAsyncRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) => Qs("keep_alive", keepAlive); + public GetAsyncRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? waitForCompletionTimeout) => Qs("wait_for_completion_timeout", waitForCompletionTimeout); + + public GetAsyncRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) + { + RouteValues.Required("id", id); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncResponse.g.cs new file mode 100644 index 00000000000..cb6fbd104b9 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncResponse.g.cs @@ -0,0 +1,59 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Sql; + +public sealed partial class GetAsyncResponse : ElasticsearchResponse +{ + /// + /// Column headings for the search results. Each object is a column. + /// + [JsonInclude, JsonPropertyName("columns")] + public IReadOnlyCollection? Columns { get; init; } + + /// + /// Cursor for the next set of paginated results. For CSV, TSV, and
TXT responses, this value is returned in the `Cursor` HTTP header.
+ ///
+ [JsonInclude, JsonPropertyName("cursor")] + public string? Cursor { get; init; } + + /// + /// Identifier for the search. This value is only returned for async and saved
synchronous searches. For CSV, TSV, and TXT responses, this value is returned
in the `Async-ID` HTTP header.
+ ///
+ [JsonInclude, JsonPropertyName("id")] + public string Id { get; init; } + + /// + /// If `true`, the response does not contain complete search results. If `is_partial`
is `true` and `is_running` is `true`, the search is still running. If `is_partial`
is `true` but `is_running` is `false`, the results are partial due to a failure or
timeout. This value is only returned for async and saved synchronous searches.
For CSV, TSV, and TXT responses, this value is returned in the `Async-partial` HTTP header.
+ ///
+ [JsonInclude, JsonPropertyName("is_partial")] + public bool IsPartial { get; init; } + + /// + /// If `true`, the search is still running. If false, the search has finished.
This value is only returned for async and saved synchronous searches. For
CSV, TSV, and TXT responses, this value is returned in the `Async-partial`
HTTP header.
+ ///
+ [JsonInclude, JsonPropertyName("is_running")] + public bool IsRunning { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncStatusRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncStatusRequest.g.cs new file mode 100644 index 00000000000..8fc97d712df --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncStatusRequest.g.cs @@ -0,0 +1,120 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Requests; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Sql; + +public sealed class GetAsyncStatusRequestParameters : RequestParameters +{ +} + +/// +/// Returns the current status of an async SQL search or a stored synchronous SQL search +/// +public sealed partial class GetAsyncStatusRequest : PlainRequest +{ + public GetAsyncStatusRequest(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SqlGetAsyncStatus; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "sql.get_async_status"; +} + +/// +/// Returns the current status of an async SQL search or a stored synchronous SQL search +/// +public sealed partial class GetAsyncStatusRequestDescriptor : RequestDescriptor, GetAsyncStatusRequestParameters> +{ + internal GetAsyncStatusRequestDescriptor(Action> configure) => configure.Invoke(this); + + public GetAsyncStatusRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) + { + } + + internal GetAsyncStatusRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SqlGetAsyncStatus; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "sql.get_async_status"; + + public GetAsyncStatusRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) + { + RouteValues.Required("id", id); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} + +/// +/// Returns the current status of an async SQL search or a stored synchronous SQL search +/// +public sealed partial class GetAsyncStatusRequestDescriptor : RequestDescriptor +{ + internal GetAsyncStatusRequestDescriptor(Action configure) => configure.Invoke(this); + + public GetAsyncStatusRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id id) : base(r => r.Required("id", id)) + { + } + + internal GetAsyncStatusRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SqlGetAsyncStatus; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "sql.get_async_status"; + + public GetAsyncStatusRequestDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) + { + RouteValues.Required("id", id); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncStatusResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncStatusResponse.g.cs new file mode 100644 index 00000000000..3e4013f89fc --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/GetAsyncStatusResponse.g.cs @@ -0,0 +1,65 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Sql; + +public sealed partial class GetAsyncStatusResponse : ElasticsearchResponse +{ + /// + /// HTTP status code for the search. The API only returns this property for completed searches. + /// + [JsonInclude, JsonPropertyName("completion_status")] + public int? CompletionStatus { get; init; } + + /// + /// Timestamp, in milliseconds since the Unix epoch, when Elasticsearch will delete
the search and its results, even if the search is still running.
+ ///
+ [JsonInclude, JsonPropertyName("expiration_time_in_millis")] + public long ExpirationTimeInMillis { get; init; } + + /// + /// Identifier for the search. + /// + [JsonInclude, JsonPropertyName("id")] + public string Id { get; init; } + + /// + /// If `true`, the response does not contain complete search results. If `is_partial`
is `true` and `is_running` is `true`, the search is still running. If `is_partial`
is `true` but `is_running` is `false`, the results are partial due to a failure or
timeout.
+ ///
+ [JsonInclude, JsonPropertyName("is_partial")] + public bool IsPartial { get; init; } + + /// + /// If `true`, the search is still running. If `false`, the search has finished. + /// + [JsonInclude, JsonPropertyName("is_running")] + public bool IsRunning { get; init; } + + /// + /// Timestamp, in milliseconds since the Unix epoch, when the search started.
The API only returns this property for running searches.
+ ///
+ [JsonInclude, JsonPropertyName("start_time_in_millis")] + public long StartTimeInMillis { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/QueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/QueryRequest.g.cs new file mode 100644 index 00000000000..6575d10b4b5 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/QueryRequest.g.cs @@ -0,0 +1,770 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Requests; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Sql; + +public sealed class QueryRequestParameters : RequestParameters +{ +} + +/// +/// Executes a SQL request +/// +public sealed partial class QueryRequest : PlainRequest +{ + internal override ApiUrls ApiUrls => ApiUrlLookup.SqlQuery; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "sql.query"; + + /// + /// Default catalog (cluster) for queries. If unspecified, the queries execute on the data in the local cluster only. + /// + [JsonInclude, JsonPropertyName("catalog")] + public string? Catalog { get; set; } + + /// + /// If true, the results in a columnar fashion: one row represents all the values of a certain column from the current page of results. + /// + [JsonInclude, JsonPropertyName("columnar")] + public bool? Columnar { get; set; } + + /// + /// Cursor used to retrieve a set of paginated results.
If you specify a cursor, the API only uses the `columnar` and `time_zone` request body parameters.
It ignores other request body parameters.
+ ///
+ [JsonInclude, JsonPropertyName("cursor")] + public string? Cursor { get; set; } + + /// + /// The maximum number of rows (or entries) to return in one response + /// + [JsonInclude, JsonPropertyName("fetch_size")] + public int? FetchSize { get; set; } + + /// + /// Elasticsearch query DSL for additional filtering. + /// + [JsonInclude, JsonPropertyName("filter")] + public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Filter { get; set; } + + /// + /// SQL query to run. + /// + [JsonInclude, JsonPropertyName("query")] + public string? Query { get; set; } + + /// + /// The timeout before the request fails. + /// + [JsonInclude, JsonPropertyName("request_timeout")] + public Elastic.Clients.Elasticsearch.Serverless.Duration? RequestTimeout { get; set; } + + /// + /// The timeout before a pagination request fails. + /// + [JsonInclude, JsonPropertyName("page_timeout")] + public Elastic.Clients.Elasticsearch.Serverless.Duration? PageTimeout { get; set; } + + /// + /// ISO-8601 time zone ID for the search. + /// + [JsonInclude, JsonPropertyName("time_zone")] + public string? TimeZone { get; set; } + + /// + /// Throw an exception when encountering multiple values for a field (default) or be lenient and return the first value from the list (without any guarantees of what that will be - typically the first in natural ascending order). + /// + [JsonInclude, JsonPropertyName("field_multi_value_leniency")] + public bool? FieldMultiValueLeniency { get; set; } + + /// + /// Defines one or more runtime fields in the search request. These fields take
precedence over mapped fields with the same name.
+ ///
+ [JsonInclude, JsonPropertyName("runtime_mappings")] + public IDictionary? RuntimeMappings { get; set; } + + /// + /// Period to wait for complete results. Defaults to no timeout, meaning the request waits for complete search results. If the search doesn’t finish within this period, the search becomes async. + /// + [JsonInclude, JsonPropertyName("wait_for_completion_timeout")] + public Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeout { get; set; } + + /// + /// Values for parameters in the query. + /// + [JsonInclude, JsonPropertyName("params")] + public IDictionary? Params { get; set; } + + /// + /// Retention period for an async or saved synchronous search. + /// + [JsonInclude, JsonPropertyName("keep_alive")] + public Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAlive { get; set; } + + /// + /// If true, Elasticsearch stores synchronous searches if you also specify the wait_for_completion_timeout parameter. If false, Elasticsearch only stores async searches that don’t finish before the wait_for_completion_timeout. + /// + [JsonInclude, JsonPropertyName("keep_on_completion")] + public bool? KeepOnCompletion { get; set; } + + /// + /// If true, the search can run on frozen indices. Defaults to false. + /// + [JsonInclude, JsonPropertyName("index_using_frozen")] + public bool? IndexUsingFrozen { get; set; } +} + +/// +/// Executes a SQL request +/// +public sealed partial class QueryRequestDescriptor : RequestDescriptor, QueryRequestParameters> +{ + internal QueryRequestDescriptor(Action> configure) => configure.Invoke(this); + + public QueryRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SqlQuery; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "sql.query"; + + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? FilterValue { get; set; } + private QueryDsl.QueryDescriptor FilterDescriptor { get; set; } + private Action> FilterDescriptorAction { get; set; } + private string? CatalogValue { get; set; } + private bool? ColumnarValue { get; set; } + private string? CursorValue { get; set; } + private int? FetchSizeValue { get; set; } + private bool? FieldMultiValueLeniencyValue { get; set; } + private bool? IndexUsingFrozenValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAliveValue { get; set; } + private bool? KeepOnCompletionValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Duration? PageTimeoutValue { get; set; } + private IDictionary? ParamsValue { get; set; } + private string? QueryValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Duration? RequestTimeoutValue { get; set; } + private IDictionary? RuntimeMappingsValue { get; set; } + private string? TimeZoneValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeoutValue { get; set; } + + /// + /// Elasticsearch query DSL for additional filtering. + /// + public QueryRequestDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? filter) + { + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterValue = filter; + return Self; + } + + public QueryRequestDescriptor Filter(QueryDsl.QueryDescriptor descriptor) + { + FilterValue = null; + FilterDescriptorAction = null; + FilterDescriptor = descriptor; + return Self; + } + + public QueryRequestDescriptor Filter(Action> configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorAction = configure; + return Self; + } + + /// + /// Default catalog (cluster) for queries. If unspecified, the queries execute on the data in the local cluster only. + /// + public QueryRequestDescriptor Catalog(string? catalog) + { + CatalogValue = catalog; + return Self; + } + + /// + /// If true, the results in a columnar fashion: one row represents all the values of a certain column from the current page of results. + /// + public QueryRequestDescriptor Columnar(bool? columnar = true) + { + ColumnarValue = columnar; + return Self; + } + + /// + /// Cursor used to retrieve a set of paginated results.
If you specify a cursor, the API only uses the `columnar` and `time_zone` request body parameters.
It ignores other request body parameters.
+ ///
+ public QueryRequestDescriptor Cursor(string? cursor) + { + CursorValue = cursor; + return Self; + } + + /// + /// The maximum number of rows (or entries) to return in one response + /// + public QueryRequestDescriptor FetchSize(int? fetchSize) + { + FetchSizeValue = fetchSize; + return Self; + } + + /// + /// Throw an exception when encountering multiple values for a field (default) or be lenient and return the first value from the list (without any guarantees of what that will be - typically the first in natural ascending order). + /// + public QueryRequestDescriptor FieldMultiValueLeniency(bool? fieldMultiValueLeniency = true) + { + FieldMultiValueLeniencyValue = fieldMultiValueLeniency; + return Self; + } + + /// + /// If true, the search can run on frozen indices. Defaults to false. + /// + public QueryRequestDescriptor IndexUsingFrozen(bool? indexUsingFrozen = true) + { + IndexUsingFrozenValue = indexUsingFrozen; + return Self; + } + + /// + /// Retention period for an async or saved synchronous search. + /// + public QueryRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) + { + KeepAliveValue = keepAlive; + return Self; + } + + /// + /// If true, Elasticsearch stores synchronous searches if you also specify the wait_for_completion_timeout parameter. If false, Elasticsearch only stores async searches that don’t finish before the wait_for_completion_timeout. + /// + public QueryRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true) + { + KeepOnCompletionValue = keepOnCompletion; + return Self; + } + + /// + /// The timeout before a pagination request fails. + /// + public QueryRequestDescriptor PageTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? pageTimeout) + { + PageTimeoutValue = pageTimeout; + return Self; + } + + /// + /// Values for parameters in the query. + /// + public QueryRequestDescriptor Params(Func, FluentDictionary> selector) + { + ParamsValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + /// + /// SQL query to run. + /// + public QueryRequestDescriptor Query(string? query) + { + QueryValue = query; + return Self; + } + + /// + /// The timeout before the request fails. + /// + public QueryRequestDescriptor RequestTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? requestTimeout) + { + RequestTimeoutValue = requestTimeout; + return Self; + } + + /// + /// Defines one or more runtime fields in the search request. These fields take
precedence over mapped fields with the same name.
+ ///
+ public QueryRequestDescriptor RuntimeMappings(Func, FluentDictionary> selector) + { + RuntimeMappingsValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + /// + /// ISO-8601 time zone ID for the search. + /// + public QueryRequestDescriptor TimeZone(string? timeZone) + { + TimeZoneValue = timeZone; + return Self; + } + + /// + /// Period to wait for complete results. Defaults to no timeout, meaning the request waits for complete search results. If the search doesn’t finish within this period, the search becomes async. + /// + public QueryRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? waitForCompletionTimeout) + { + WaitForCompletionTimeoutValue = waitForCompletionTimeout; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (FilterDescriptor is not null) + { + writer.WritePropertyName("filter"); + JsonSerializer.Serialize(writer, FilterDescriptor, options); + } + else if (FilterDescriptorAction is not null) + { + writer.WritePropertyName("filter"); + JsonSerializer.Serialize(writer, new QueryDsl.QueryDescriptor(FilterDescriptorAction), options); + } + else if (FilterValue is not null) + { + writer.WritePropertyName("filter"); + JsonSerializer.Serialize(writer, FilterValue, options); + } + + if (!string.IsNullOrEmpty(CatalogValue)) + { + writer.WritePropertyName("catalog"); + writer.WriteStringValue(CatalogValue); + } + + if (ColumnarValue.HasValue) + { + writer.WritePropertyName("columnar"); + writer.WriteBooleanValue(ColumnarValue.Value); + } + + if (!string.IsNullOrEmpty(CursorValue)) + { + writer.WritePropertyName("cursor"); + writer.WriteStringValue(CursorValue); + } + + if (FetchSizeValue.HasValue) + { + writer.WritePropertyName("fetch_size"); + writer.WriteNumberValue(FetchSizeValue.Value); + } + + if (FieldMultiValueLeniencyValue.HasValue) + { + writer.WritePropertyName("field_multi_value_leniency"); + writer.WriteBooleanValue(FieldMultiValueLeniencyValue.Value); + } + + if (IndexUsingFrozenValue.HasValue) + { + writer.WritePropertyName("index_using_frozen"); + writer.WriteBooleanValue(IndexUsingFrozenValue.Value); + } + + if (KeepAliveValue is not null) + { + writer.WritePropertyName("keep_alive"); + JsonSerializer.Serialize(writer, KeepAliveValue, options); + } + + if (KeepOnCompletionValue.HasValue) + { + writer.WritePropertyName("keep_on_completion"); + writer.WriteBooleanValue(KeepOnCompletionValue.Value); + } + + if (PageTimeoutValue is not null) + { + writer.WritePropertyName("page_timeout"); + JsonSerializer.Serialize(writer, PageTimeoutValue, options); + } + + if (ParamsValue is not null) + { + writer.WritePropertyName("params"); + JsonSerializer.Serialize(writer, ParamsValue, options); + } + + if (!string.IsNullOrEmpty(QueryValue)) + { + writer.WritePropertyName("query"); + writer.WriteStringValue(QueryValue); + } + + if (RequestTimeoutValue is not null) + { + writer.WritePropertyName("request_timeout"); + JsonSerializer.Serialize(writer, RequestTimeoutValue, options); + } + + if (RuntimeMappingsValue is not null) + { + writer.WritePropertyName("runtime_mappings"); + JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); + } + + if (TimeZoneValue is not null) + { + writer.WritePropertyName("time_zone"); + JsonSerializer.Serialize(writer, TimeZoneValue, options); + } + + if (WaitForCompletionTimeoutValue is not null) + { + writer.WritePropertyName("wait_for_completion_timeout"); + JsonSerializer.Serialize(writer, WaitForCompletionTimeoutValue, options); + } + + writer.WriteEndObject(); + } +} + +/// +/// Executes a SQL request +/// +public sealed partial class QueryRequestDescriptor : RequestDescriptor +{ + internal QueryRequestDescriptor(Action configure) => configure.Invoke(this); + + public QueryRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.SqlQuery; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + internal override string OperationName => "sql.query"; + + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? FilterValue { get; set; } + private QueryDsl.QueryDescriptor FilterDescriptor { get; set; } + private Action FilterDescriptorAction { get; set; } + private string? CatalogValue { get; set; } + private bool? ColumnarValue { get; set; } + private string? CursorValue { get; set; } + private int? FetchSizeValue { get; set; } + private bool? FieldMultiValueLeniencyValue { get; set; } + private bool? IndexUsingFrozenValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Duration? KeepAliveValue { get; set; } + private bool? KeepOnCompletionValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Duration? PageTimeoutValue { get; set; } + private IDictionary? ParamsValue { get; set; } + private string? QueryValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Duration? RequestTimeoutValue { get; set; } + private IDictionary? RuntimeMappingsValue { get; set; } + private string? TimeZoneValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Duration? WaitForCompletionTimeoutValue { get; set; } + + /// + /// Elasticsearch query DSL for additional filtering. + /// + public QueryRequestDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? filter) + { + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterValue = filter; + return Self; + } + + public QueryRequestDescriptor Filter(QueryDsl.QueryDescriptor descriptor) + { + FilterValue = null; + FilterDescriptorAction = null; + FilterDescriptor = descriptor; + return Self; + } + + public QueryRequestDescriptor Filter(Action configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorAction = configure; + return Self; + } + + /// + /// Default catalog (cluster) for queries. If unspecified, the queries execute on the data in the local cluster only. + /// + public QueryRequestDescriptor Catalog(string? catalog) + { + CatalogValue = catalog; + return Self; + } + + /// + /// If true, the results in a columnar fashion: one row represents all the values of a certain column from the current page of results. + /// + public QueryRequestDescriptor Columnar(bool? columnar = true) + { + ColumnarValue = columnar; + return Self; + } + + /// + /// Cursor used to retrieve a set of paginated results.
If you specify a cursor, the API only uses the `columnar` and `time_zone` request body parameters.
It ignores other request body parameters.
+ ///
+ public QueryRequestDescriptor Cursor(string? cursor) + { + CursorValue = cursor; + return Self; + } + + /// + /// The maximum number of rows (or entries) to return in one response + /// + public QueryRequestDescriptor FetchSize(int? fetchSize) + { + FetchSizeValue = fetchSize; + return Self; + } + + /// + /// Throw an exception when encountering multiple values for a field (default) or be lenient and return the first value from the list (without any guarantees of what that will be - typically the first in natural ascending order). + /// + public QueryRequestDescriptor FieldMultiValueLeniency(bool? fieldMultiValueLeniency = true) + { + FieldMultiValueLeniencyValue = fieldMultiValueLeniency; + return Self; + } + + /// + /// If true, the search can run on frozen indices. Defaults to false. + /// + public QueryRequestDescriptor IndexUsingFrozen(bool? indexUsingFrozen = true) + { + IndexUsingFrozenValue = indexUsingFrozen; + return Self; + } + + /// + /// Retention period for an async or saved synchronous search. + /// + public QueryRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Serverless.Duration? keepAlive) + { + KeepAliveValue = keepAlive; + return Self; + } + + /// + /// If true, Elasticsearch stores synchronous searches if you also specify the wait_for_completion_timeout parameter. If false, Elasticsearch only stores async searches that don’t finish before the wait_for_completion_timeout. + /// + public QueryRequestDescriptor KeepOnCompletion(bool? keepOnCompletion = true) + { + KeepOnCompletionValue = keepOnCompletion; + return Self; + } + + /// + /// The timeout before a pagination request fails. + /// + public QueryRequestDescriptor PageTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? pageTimeout) + { + PageTimeoutValue = pageTimeout; + return Self; + } + + /// + /// Values for parameters in the query. + /// + public QueryRequestDescriptor Params(Func, FluentDictionary> selector) + { + ParamsValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + /// + /// SQL query to run. + /// + public QueryRequestDescriptor Query(string? query) + { + QueryValue = query; + return Self; + } + + /// + /// The timeout before the request fails. + /// + public QueryRequestDescriptor RequestTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? requestTimeout) + { + RequestTimeoutValue = requestTimeout; + return Self; + } + + /// + /// Defines one or more runtime fields in the search request. These fields take
precedence over mapped fields with the same name.
+ ///
+ public QueryRequestDescriptor RuntimeMappings(Func, FluentDictionary> selector) + { + RuntimeMappingsValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + /// + /// ISO-8601 time zone ID for the search. + /// + public QueryRequestDescriptor TimeZone(string? timeZone) + { + TimeZoneValue = timeZone; + return Self; + } + + /// + /// Period to wait for complete results. Defaults to no timeout, meaning the request waits for complete search results. If the search doesn’t finish within this period, the search becomes async. + /// + public QueryRequestDescriptor WaitForCompletionTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? waitForCompletionTimeout) + { + WaitForCompletionTimeoutValue = waitForCompletionTimeout; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (FilterDescriptor is not null) + { + writer.WritePropertyName("filter"); + JsonSerializer.Serialize(writer, FilterDescriptor, options); + } + else if (FilterDescriptorAction is not null) + { + writer.WritePropertyName("filter"); + JsonSerializer.Serialize(writer, new QueryDsl.QueryDescriptor(FilterDescriptorAction), options); + } + else if (FilterValue is not null) + { + writer.WritePropertyName("filter"); + JsonSerializer.Serialize(writer, FilterValue, options); + } + + if (!string.IsNullOrEmpty(CatalogValue)) + { + writer.WritePropertyName("catalog"); + writer.WriteStringValue(CatalogValue); + } + + if (ColumnarValue.HasValue) + { + writer.WritePropertyName("columnar"); + writer.WriteBooleanValue(ColumnarValue.Value); + } + + if (!string.IsNullOrEmpty(CursorValue)) + { + writer.WritePropertyName("cursor"); + writer.WriteStringValue(CursorValue); + } + + if (FetchSizeValue.HasValue) + { + writer.WritePropertyName("fetch_size"); + writer.WriteNumberValue(FetchSizeValue.Value); + } + + if (FieldMultiValueLeniencyValue.HasValue) + { + writer.WritePropertyName("field_multi_value_leniency"); + writer.WriteBooleanValue(FieldMultiValueLeniencyValue.Value); + } + + if (IndexUsingFrozenValue.HasValue) + { + writer.WritePropertyName("index_using_frozen"); + writer.WriteBooleanValue(IndexUsingFrozenValue.Value); + } + + if (KeepAliveValue is not null) + { + writer.WritePropertyName("keep_alive"); + JsonSerializer.Serialize(writer, KeepAliveValue, options); + } + + if (KeepOnCompletionValue.HasValue) + { + writer.WritePropertyName("keep_on_completion"); + writer.WriteBooleanValue(KeepOnCompletionValue.Value); + } + + if (PageTimeoutValue is not null) + { + writer.WritePropertyName("page_timeout"); + JsonSerializer.Serialize(writer, PageTimeoutValue, options); + } + + if (ParamsValue is not null) + { + writer.WritePropertyName("params"); + JsonSerializer.Serialize(writer, ParamsValue, options); + } + + if (!string.IsNullOrEmpty(QueryValue)) + { + writer.WritePropertyName("query"); + writer.WriteStringValue(QueryValue); + } + + if (RequestTimeoutValue is not null) + { + writer.WritePropertyName("request_timeout"); + JsonSerializer.Serialize(writer, RequestTimeoutValue, options); + } + + if (RuntimeMappingsValue is not null) + { + writer.WritePropertyName("runtime_mappings"); + JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); + } + + if (TimeZoneValue is not null) + { + writer.WritePropertyName("time_zone"); + JsonSerializer.Serialize(writer, TimeZoneValue, options); + } + + if (WaitForCompletionTimeoutValue is not null) + { + writer.WritePropertyName("wait_for_completion_timeout"); + JsonSerializer.Serialize(writer, WaitForCompletionTimeoutValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/QueryResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/QueryResponse.g.cs new file mode 100644 index 00000000000..1cbb64370b5 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Sql/QueryResponse.g.cs @@ -0,0 +1,59 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Sql; + +public sealed partial class QueryResponse : ElasticsearchResponse +{ + /// + /// Column headings for the search results. Each object is a column. + /// + [JsonInclude, JsonPropertyName("columns")] + public IReadOnlyCollection? Columns { get; init; } + + /// + /// Cursor for the next set of paginated results. For CSV, TSV, and
TXT responses, this value is returned in the `Cursor` HTTP header.
+ ///
+ [JsonInclude, JsonPropertyName("cursor")] + public string? Cursor { get; init; } + + /// + /// Identifier for the search. This value is only returned for async and saved
synchronous searches. For CSV, TSV, and TXT responses, this value is returned
in the `Async-ID` HTTP header.
+ ///
+ [JsonInclude, JsonPropertyName("id")] + public string? Id { get; init; } + + /// + /// If `true`, the response does not contain complete search results. If `is_partial`
is `true` and `is_running` is `true`, the search is still running. If `is_partial`
is `true` but `is_running` is `false`, the results are partial due to a failure or
timeout. This value is only returned for async and saved synchronous searches.
For CSV, TSV, and TXT responses, this value is returned in the `Async-partial` HTTP header.
+ ///
+ [JsonInclude, JsonPropertyName("is_partial")] + public bool? IsPartial { get; init; } + + /// + /// If `true`, the search is still running. If false, the search has finished.
This value is only returned for async and saved synchronous searches. For
CSV, TSV, and TXT responses, this value is returned in the `Async-partial`
HTTP header.
+ ///
+ [JsonInclude, JsonPropertyName("is_running")] + public bool? IsRunning { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Tasks/CancelRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Tasks/CancelRequest.g.cs new file mode 100644 index 00000000000..ec9b53ea48e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Tasks/CancelRequest.g.cs @@ -0,0 +1,136 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Requests; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Tasks; + +public sealed class CancelRequestParameters : RequestParameters +{ + /// + /// Comma-separated list or wildcard expression of actions used to limit the request. + /// + public ICollection? Actions { get => Q?>("actions"); set => Q("actions", value); } + + /// + /// Comma-separated list of node IDs or names used to limit the request. + /// + public ICollection? Nodes { get => Q?>("nodes"); set => Q("nodes", value); } + + /// + /// Parent task ID used to limit the tasks. + /// + public string? ParentTaskId { get => Q("parent_task_id"); set => Q("parent_task_id", value); } + + /// + /// Should the request block until the cancellation of the task and its descendant tasks is completed. Defaults to false + /// + public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } +} + +/// +/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. +/// Cancels a task, if it can be cancelled through an API. +/// +public sealed partial class CancelRequest : PlainRequest +{ + public CancelRequest() + { + } + + public CancelRequest(Elastic.Clients.Elasticsearch.Serverless.TaskId? task_id) : base(r => r.Optional("task_id", task_id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.TasksCancel; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => false; + + internal override string OperationName => "tasks.cancel"; + + /// + /// Comma-separated list or wildcard expression of actions used to limit the request. + /// + [JsonIgnore] + public ICollection? Actions { get => Q?>("actions"); set => Q("actions", value); } + + /// + /// Comma-separated list of node IDs or names used to limit the request. + /// + [JsonIgnore] + public ICollection? Nodes { get => Q?>("nodes"); set => Q("nodes", value); } + + /// + /// Parent task ID used to limit the tasks. + /// + [JsonIgnore] + public string? ParentTaskId { get => Q("parent_task_id"); set => Q("parent_task_id", value); } + + /// + /// Should the request block until the cancellation of the task and its descendant tasks is completed. Defaults to false + /// + [JsonIgnore] + public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } +} + +/// +/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. +/// Cancels a task, if it can be cancelled through an API. +/// +public sealed partial class CancelRequestDescriptor : RequestDescriptor +{ + internal CancelRequestDescriptor(Action configure) => configure.Invoke(this); + + public CancelRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.TasksCancel; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => false; + + internal override string OperationName => "tasks.cancel"; + + public CancelRequestDescriptor Actions(ICollection? actions) => Qs("actions", actions); + public CancelRequestDescriptor Nodes(ICollection? nodes) => Qs("nodes", nodes); + public CancelRequestDescriptor ParentTaskId(string? parentTaskId) => Qs("parent_task_id", parentTaskId); + public CancelRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); + + public CancelRequestDescriptor TaskId(Elastic.Clients.Elasticsearch.Serverless.TaskId? task_id) + { + RouteValues.Optional("task_id", task_id); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Tasks/CancelResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Tasks/CancelResponse.g.cs new file mode 100644 index 00000000000..34493053f8d --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Tasks/CancelResponse.g.cs @@ -0,0 +1,49 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Tasks; + +/// +/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. +/// +public sealed partial class CancelResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("node_failures")] + public IReadOnlyCollection? NodeFailures { get; init; } + + /// + /// Task information grouped by node, if `group_by` was set to `node` (the default). + /// + [JsonInclude, JsonPropertyName("nodes")] + public IReadOnlyDictionary? Nodes { get; init; } + [JsonInclude, JsonPropertyName("task_failures")] + public IReadOnlyCollection? TaskFailures { get; init; } + + /// + /// Either a flat list of tasks if `group_by` was set to `none`, or grouped by parents if
`group_by` was set to `parents`.
+ ///
+ [JsonInclude, JsonPropertyName("tasks")] + public Elastic.Clients.Elasticsearch.Serverless.Tasks.TaskInfos? Tasks { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Tasks/GetTasksRequest.g.cs similarity index 51% rename from src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteTemplateRequest.g.cs rename to src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Tasks/GetTasksRequest.g.cs index ac13b6c7e71..59d3badd7d7 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/IndexManagement/DeleteTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Tasks/GetTasksRequest.g.cs @@ -27,80 +27,82 @@ using System.Text.Json; using System.Text.Json.Serialization; -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; +namespace Elastic.Clients.Elasticsearch.Serverless.Tasks; -public sealed class DeleteTemplateRequestParameters : RequestParameters +public sealed class GetTasksRequestParameters : RequestParameters { /// - /// Period to wait for a connection to the master node.
If no response is received before the timeout expires, the request fails and returns an error.
+ /// Period to wait for a response.
If no response is received before the timeout expires, the request fails and returns an error.
///
- public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Period to wait for a response.
If no response is received before the timeout expires, the request fails and returns an error.
+ /// If `true`, the request blocks until the task has completed. ///
- public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } } /// -/// Deletes a legacy index template. +/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. +/// Returns information about a task. /// -public sealed partial class DeleteTemplateRequest : PlainRequest +public sealed partial class GetTasksRequest : PlainRequest { - public DeleteTemplateRequest(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) + public GetTasksRequest(Elastic.Clients.Elasticsearch.Serverless.Id task_id) : base(r => r.Required("task_id", task_id)) { } - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementDeleteTemplate; + internal override ApiUrls ApiUrls => ApiUrlLookup.TasksGet; - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; internal override bool SupportsBody => false; - internal override string OperationName => "indices.delete_template"; + internal override string OperationName => "tasks.get"; /// - /// Period to wait for a connection to the master node.
If no response is received before the timeout expires, the request fails and returns an error.
+ /// Period to wait for a response.
If no response is received before the timeout expires, the request fails and returns an error.
///
[JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Period to wait for a response.
If no response is received before the timeout expires, the request fails and returns an error.
+ /// If `true`, the request blocks until the task has completed. ///
[JsonIgnore] - public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } } /// -/// Deletes a legacy index template. +/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. +/// Returns information about a task. /// -public sealed partial class DeleteTemplateRequestDescriptor : RequestDescriptor +public sealed partial class GetTasksRequestDescriptor : RequestDescriptor { - internal DeleteTemplateRequestDescriptor(Action configure) => configure.Invoke(this); + internal GetTasksRequestDescriptor(Action configure) => configure.Invoke(this); - public DeleteTemplateRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Name name) : base(r => r.Required("name", name)) + public GetTasksRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id task_id) : base(r => r.Required("task_id", task_id)) { } - internal DeleteTemplateRequestDescriptor() + internal GetTasksRequestDescriptor() { } - internal override ApiUrls ApiUrls => ApiUrlLookup.IndexManagementDeleteTemplate; + internal override ApiUrls ApiUrls => ApiUrlLookup.TasksGet; - protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; internal override bool SupportsBody => false; - internal override string OperationName => "indices.delete_template"; + internal override string OperationName => "tasks.get"; - public DeleteTemplateRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); - public DeleteTemplateRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); + public GetTasksRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); + public GetTasksRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); - public DeleteTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Serverless.Name name) + public GetTasksRequestDescriptor TaskId(Elastic.Clients.Elasticsearch.Serverless.Id task_id) { - RouteValues.Required("name", name); + RouteValues.Required("task_id", task_id); return Self; } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Tasks/GetTasksResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Tasks/GetTasksResponse.g.cs new file mode 100644 index 00000000000..0f3d7487a5a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Tasks/GetTasksResponse.g.cs @@ -0,0 +1,39 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Tasks; + +/// +/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. +/// +public sealed partial class GetTasksResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("completed")] + public bool Completed { get; init; } + [JsonInclude, JsonPropertyName("response")] + public object? Response { get; init; } + [JsonInclude, JsonPropertyName("task")] + public Elastic.Clients.Elasticsearch.Serverless.Tasks.TaskInfo Task { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Tasks/ListRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Tasks/ListRequest.g.cs new file mode 100644 index 00000000000..89b2e945956 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Tasks/ListRequest.g.cs @@ -0,0 +1,170 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Requests; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Tasks; + +public sealed class ListRequestParameters : RequestParameters +{ + /// + /// Comma-separated list or wildcard expression of actions used to limit the request. + /// + public ICollection? Actions { get => Q?>("actions"); set => Q("actions", value); } + + /// + /// If `true`, the response includes detailed information about shard recoveries. + /// + public bool? Detailed { get => Q("detailed"); set => Q("detailed", value); } + + /// + /// Key used to group tasks in the response. + /// + public Elastic.Clients.Elasticsearch.Serverless.Tasks.GroupBy? GroupBy { get => Q("group_by"); set => Q("group_by", value); } + + /// + /// Comma-separated list of node IDs or names used to limit returned information. + /// + public ICollection? NodeId { get => Q?>("node_id"); set => Q("node_id", value); } + + /// + /// Parent task ID used to limit returned information. To return all tasks, omit this parameter or use a value of `-1`. + /// + public Elastic.Clients.Elasticsearch.Serverless.Id? ParentTaskId { get => Q("parent_task_id"); set => Q("parent_task_id", value); } + + /// + /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. + /// + public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + /// + public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + + /// + /// If `true`, the request blocks until the operation is complete. + /// + public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } +} + +/// +/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. +/// The task management API returns information about tasks currently executing on one or more nodes in the cluster. +/// +public sealed partial class ListRequest : PlainRequest +{ + internal override ApiUrls ApiUrls => ApiUrlLookup.TasksList; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "tasks.list"; + + /// + /// Comma-separated list or wildcard expression of actions used to limit the request. + /// + [JsonIgnore] + public ICollection? Actions { get => Q?>("actions"); set => Q("actions", value); } + + /// + /// If `true`, the response includes detailed information about shard recoveries. + /// + [JsonIgnore] + public bool? Detailed { get => Q("detailed"); set => Q("detailed", value); } + + /// + /// Key used to group tasks in the response. + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Serverless.Tasks.GroupBy? GroupBy { get => Q("group_by"); set => Q("group_by", value); } + + /// + /// Comma-separated list of node IDs or names used to limit returned information. + /// + [JsonIgnore] + public ICollection? NodeId { get => Q?>("node_id"); set => Q("node_id", value); } + + /// + /// Parent task ID used to limit returned information. To return all tasks, omit this parameter or use a value of `-1`. + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Serverless.Id? ParentTaskId { get => Q("parent_task_id"); set => Q("parent_task_id", value); } + + /// + /// Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error. + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Serverless.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error. + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + + /// + /// If `true`, the request blocks until the operation is complete. + /// + [JsonIgnore] + public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } +} + +/// +/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. +/// The task management API returns information about tasks currently executing on one or more nodes in the cluster. +/// +public sealed partial class ListRequestDescriptor : RequestDescriptor +{ + internal ListRequestDescriptor(Action configure) => configure.Invoke(this); + + public ListRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.TasksList; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + internal override string OperationName => "tasks.list"; + + public ListRequestDescriptor Actions(ICollection? actions) => Qs("actions", actions); + public ListRequestDescriptor Detailed(bool? detailed = true) => Qs("detailed", detailed); + public ListRequestDescriptor GroupBy(Elastic.Clients.Elasticsearch.Serverless.Tasks.GroupBy? groupBy) => Qs("group_by", groupBy); + public ListRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public ListRequestDescriptor NodeId(ICollection? nodeId) => Qs("node_id", nodeId); + public ListRequestDescriptor ParentTaskId(Elastic.Clients.Elasticsearch.Serverless.Id? parentTaskId) => Qs("parent_task_id", parentTaskId); + public ListRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout); + public ListRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Tasks/ListResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Tasks/ListResponse.g.cs new file mode 100644 index 00000000000..e359024b36f --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/Tasks/ListResponse.g.cs @@ -0,0 +1,49 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Tasks; + +/// +/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. +/// +public sealed partial class ListResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("node_failures")] + public IReadOnlyCollection? NodeFailures { get; init; } + + /// + /// Task information grouped by node, if `group_by` was set to `node` (the default). + /// + [JsonInclude, JsonPropertyName("nodes")] + public IReadOnlyDictionary? Nodes { get; init; } + [JsonInclude, JsonPropertyName("task_failures")] + public IReadOnlyCollection? TaskFailures { get; init; } + + /// + /// Either a flat list of tasks if `group_by` was set to `none`, or grouped by parents if
`group_by` was set to `parents`.
+ ///
+ [JsonInclude, JsonPropertyName("tasks")] + public Elastic.Clients.Elasticsearch.Serverless.Tasks.TaskInfos? Tasks { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermVectorsRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermVectorsRequest.g.cs index b46381a7697..b9002ae585c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermVectorsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/TermVectorsRequest.g.cs @@ -32,57 +32,57 @@ namespace Elastic.Clients.Elasticsearch.Serverless; public sealed class TermVectorsRequestParameters : RequestParameters { /// - /// A comma-separated list of fields to return. + /// Comma-separated list or wildcard expressions of fields to include in the statistics.
Used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters.
///
public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get => Q("fields"); set => Q("fields", value); } /// - /// Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned. + /// If `true`, the response includes the document count, sum of document frequencies, and sum of total term frequencies. /// public bool? FieldStatistics { get => Q("field_statistics"); set => Q("field_statistics", value); } /// - /// Specifies if term offsets should be returned. + /// If `true`, the response includes term offsets. /// public bool? Offsets { get => Q("offsets"); set => Q("offsets", value); } /// - /// Specifies if term payloads should be returned. + /// If `true`, the response includes term payloads. /// public bool? Payloads { get => Q("payloads"); set => Q("payloads", value); } /// - /// Specifies if term positions should be returned. + /// If `true`, the response includes term positions. /// public bool? Positions { get => Q("positions"); set => Q("positions", value); } /// - /// Specify the node or shard the operation should be performed on (default: random). + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Specifies if request is real-time as opposed to near-real-time (default: true). + /// If true, the request is real-time as opposed to near-real-time. /// public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } /// - /// Specific routing value. + /// Custom value used to route operations to a specific shard. /// public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Specifies if total term frequency and document frequency should be returned. + /// If `true`, the response includes term frequency and document frequency. /// public bool? TermStatistics { get => Q("term_statistics"); set => Q("term_statistics", value); } /// - /// Explicit version number for concurrency control + /// If `true`, returns the document version as part of a hit. /// public long? Version { get => Q("version"); set => Q("version", value); } /// - /// Specific version type + /// Specific version type. /// public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } } @@ -112,74 +112,86 @@ public TermVectorsRequest(Elastic.Clients.Elasticsearch.Serverless.IndexName ind public TDocument Document { get; set; } /// - /// A comma-separated list of fields to return. + /// Comma-separated list or wildcard expressions of fields to include in the statistics.
Used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get => Q("fields"); set => Q("fields", value); } /// - /// Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned. + /// If `true`, the response includes the document count, sum of document frequencies, and sum of total term frequencies. /// [JsonIgnore] public bool? FieldStatistics { get => Q("field_statistics"); set => Q("field_statistics", value); } /// - /// Specifies if term offsets should be returned. + /// If `true`, the response includes term offsets. /// [JsonIgnore] public bool? Offsets { get => Q("offsets"); set => Q("offsets", value); } /// - /// Specifies if term payloads should be returned. + /// If `true`, the response includes term payloads. /// [JsonIgnore] public bool? Payloads { get => Q("payloads"); set => Q("payloads", value); } /// - /// Specifies if term positions should be returned. + /// If `true`, the response includes term positions. /// [JsonIgnore] public bool? Positions { get => Q("positions"); set => Q("positions", value); } /// - /// Specify the node or shard the operation should be performed on (default: random). + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
[JsonIgnore] public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Specifies if request is real-time as opposed to near-real-time (default: true). + /// If true, the request is real-time as opposed to near-real-time. /// [JsonIgnore] public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } /// - /// Specific routing value. + /// Custom value used to route operations to a specific shard. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Specifies if total term frequency and document frequency should be returned. + /// If `true`, the response includes term frequency and document frequency. /// [JsonIgnore] public bool? TermStatistics { get => Q("term_statistics"); set => Q("term_statistics", value); } /// - /// Explicit version number for concurrency control + /// If `true`, returns the document version as part of a hit. /// [JsonIgnore] public long? Version { get => Q("version"); set => Q("version", value); } /// - /// Specific version type + /// Specific version type. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } + + /// + /// An artificial document (a document not present in the index) for which you want to retrieve term vectors. + /// [JsonInclude, JsonPropertyName("doc")] public TDocument? Doc { get; set; } + + /// + /// Filter terms based on their tf-idf scores. + /// [JsonInclude, JsonPropertyName("filter")] public Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors.Filter? Filter { get; set; } + + /// + /// Overrides the default per-field analyzer. + /// [JsonInclude, JsonPropertyName("per_field_analyzer")] public IDictionary? PerFieldAnalyzer { get; set; } } @@ -251,12 +263,18 @@ public TermVectorsRequestDescriptor Index(Elastic.Clients.Elasticsear private IDictionary? PerFieldAnalyzerValue { get; set; } private TDocument DocumentValue { get; set; } + /// + /// An artificial document (a document not present in the index) for which you want to retrieve term vectors. + /// public TermVectorsRequestDescriptor Doc(TDocument? doc) { DocValue = doc; return Self; } + /// + /// Filter terms based on their tf-idf scores. + /// public TermVectorsRequestDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors.Filter? filter) { FilterDescriptor = null; @@ -281,6 +299,9 @@ public TermVectorsRequestDescriptor Filter(Action + /// Overrides the default per-field analyzer. + /// public TermVectorsRequestDescriptor PerFieldAnalyzer(Func, FluentDictionary> selector) { PerFieldAnalyzerValue = selector?.Invoke(new FluentDictionary()); diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRequest.g.cs index 4e3743cc2af..8585605a649 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRequest.g.cs @@ -32,32 +32,32 @@ namespace Elastic.Clients.Elasticsearch.Serverless; public sealed class UpdateByQueryRequestParameters : RequestParameters { /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) + /// 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`.
///
public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } /// - /// The analyzer to use for the query string + /// Analyzer to use for the query string. /// public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } /// - /// Specify whether wildcard and prefix queries should be analyzed (default: false) + /// If `true`, wildcard and prefix queries are analyzed. /// public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } /// - /// The default operator for query string query (AND or OR) + /// The default operator for query string query: `AND` or `OR`. /// public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } /// - /// The field to use as default where no field prefix is given in the query string + /// Field to use as default where no field prefix is given in the query string. /// public string? Df { get => Q("df"); set => Q("df", value); } /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. + /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`.
Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
///
public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } @@ -67,92 +67,92 @@ public sealed class UpdateByQueryRequestParameters : RequestParameters public long? From { get => Q("from"); set => Q("from", value); } /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If `false`, the request returns an error if it targets a missing or closed index. /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } /// - /// Specify whether format-based query failures (such as providing text to a numeric field) should be ignored + /// If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. /// public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } /// - /// Ingest pipeline to set on index requests made by this action. (default: none) + /// ID of the pipeline to use to preprocess incoming documents.
If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request.
If a final pipeline is configured it will always run, regardless of the value of this parameter.
///
public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Should the affected indexes be refreshed? + /// If `true`, Elasticsearch refreshes affected shards to make the operation visible to search. /// public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specify if request cache should be used for this request or not, defaults to index level setting + /// If `true`, the request cache is used for this request. /// public bool? RequestCache { get => Q("request_cache"); set => Q("request_cache", value); } /// - /// The throttle to set on this request in sub-requests per second. -1 means no throttle. + /// The throttle for this request in sub-requests per second. /// public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } /// - /// A comma-separated list of specific routing values + /// Custom value used to route operations to a specific shard. /// public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Specify how long a consistent view of the index should be maintained for scrolled search + /// Period to retain the search context for scrolling. /// public Elastic.Clients.Elasticsearch.Serverless.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); } /// - /// Size on the scroll request powering the update by query + /// Size of the scroll request that powers the operation. /// public long? ScrollSize { get => Q("scroll_size"); set => Q("scroll_size", value); } /// - /// Explicit timeout for each search request. Defaults to no timeout. + /// Explicit timeout for each search request. /// public Elastic.Clients.Elasticsearch.Serverless.Duration? SearchTimeout { get => Q("search_timeout"); set => Q("search_timeout", value); } /// - /// Search operation type + /// The type of the search operation. Available options: `query_then_fetch`, `dfs_query_then_fetch`. /// public Elastic.Clients.Elasticsearch.Serverless.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } /// - /// The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be set to `auto`. + /// The number of slices this task should be divided into. /// public Elastic.Clients.Elasticsearch.Serverless.Slices? Slices { get => Q("slices"); set => Q("slices", value); } /// - /// A comma-separated list of : pairs + /// A comma-separated list of : pairs. /// public ICollection? Sort { get => Q?>("sort"); set => Q("sort", value); } /// - /// Specific 'tag' of the request for logging and statistical purposes + /// Specific `tag` of the request for logging and statistical purposes. /// public ICollection? Stats { get => Q?>("stats"); set => Q("stats", value); } /// - /// The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early. + /// Maximum number of documents to collect for each shard.
If a query reaches this limit, Elasticsearch terminates the query early.
Elasticsearch collects documents before sorting.
Use with caution.
Elasticsearch applies this parameter to each shard handling the request.
When possible, let Elasticsearch perform early termination automatically.
Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers.
///
public long? TerminateAfter { get => Q("terminate_after"); set => Q("terminate_after", value); } /// - /// Time each individual bulk request should wait for shards that are unavailable. + /// Period each update request waits for the following operations: dynamic mapping updates, waiting for active shards. /// public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Specify whether to return document version as part of a hit + /// If `true`, returns the document version as part of a hit. /// public bool? Version { get => Q("version"); set => Q("version", value); } @@ -162,18 +162,18 @@ public sealed class UpdateByQueryRequestParameters : RequestParameters public bool? VersionType { get => Q("version_type"); set => Q("version_type", value); } /// - /// Sets the number of shard copies that must be active before proceeding with the update by query operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// The number of shard copies that must be active before proceeding with the operation.
Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } /// - /// Should the request should block until the update by query operation is complete. + /// If `true`, the request blocks until the operation is complete. /// public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } } /// -/// Performs an update on every document in the index without changing the source,
for example to pick up a mapping change.
+/// Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
///
public sealed partial class UpdateByQueryRequest : PlainRequest { @@ -190,37 +190,37 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Serverless.Indices ind internal override string OperationName => "update_by_query"; /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) + /// 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`.
///
[JsonIgnore] public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } /// - /// The analyzer to use for the query string + /// Analyzer to use for the query string. /// [JsonIgnore] public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } /// - /// Specify whether wildcard and prefix queries should be analyzed (default: false) + /// If `true`, wildcard and prefix queries are analyzed. /// [JsonIgnore] public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } /// - /// The default operator for query string query (AND or OR) + /// The default operator for query string query: `AND` or `OR`. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } /// - /// The field to use as default where no field prefix is given in the query string + /// Field to use as default where no field prefix is given in the query string. /// [JsonIgnore] public string? Df { get => Q("df"); set => Q("df", value); } /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. + /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`.
Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
///
[JsonIgnore] public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } @@ -232,109 +232,109 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Serverless.Indices ind public long? From { get => Q("from"); set => Q("from", value); } /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If `false`, the request returns an error if it targets a missing or closed index. /// [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } /// - /// Specify whether format-based query failures (such as providing text to a numeric field) should be ignored + /// If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. /// [JsonIgnore] public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } /// - /// Ingest pipeline to set on index requests made by this action. (default: none) + /// ID of the pipeline to use to preprocess incoming documents.
If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request.
If a final pipeline is configured it will always run, regardless of the value of this parameter.
///
[JsonIgnore] public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
[JsonIgnore] public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Should the affected indexes be refreshed? + /// If `true`, Elasticsearch refreshes affected shards to make the operation visible to search. /// [JsonIgnore] public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specify if request cache should be used for this request or not, defaults to index level setting + /// If `true`, the request cache is used for this request. /// [JsonIgnore] public bool? RequestCache { get => Q("request_cache"); set => Q("request_cache", value); } /// - /// The throttle to set on this request in sub-requests per second. -1 means no throttle. + /// The throttle for this request in sub-requests per second. /// [JsonIgnore] public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } /// - /// A comma-separated list of specific routing values + /// Custom value used to route operations to a specific shard. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Specify how long a consistent view of the index should be maintained for scrolled search + /// Period to retain the search context for scrolling. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); } /// - /// Size on the scroll request powering the update by query + /// Size of the scroll request that powers the operation. /// [JsonIgnore] public long? ScrollSize { get => Q("scroll_size"); set => Q("scroll_size", value); } /// - /// Explicit timeout for each search request. Defaults to no timeout. + /// Explicit timeout for each search request. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Duration? SearchTimeout { get => Q("search_timeout"); set => Q("search_timeout", value); } /// - /// Search operation type + /// The type of the search operation. Available options: `query_then_fetch`, `dfs_query_then_fetch`. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } /// - /// The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be set to `auto`. + /// The number of slices this task should be divided into. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Slices? Slices { get => Q("slices"); set => Q("slices", value); } /// - /// A comma-separated list of : pairs + /// A comma-separated list of : pairs. /// [JsonIgnore] public ICollection? Sort { get => Q?>("sort"); set => Q("sort", value); } /// - /// Specific 'tag' of the request for logging and statistical purposes + /// Specific `tag` of the request for logging and statistical purposes. /// [JsonIgnore] public ICollection? Stats { get => Q?>("stats"); set => Q("stats", value); } /// - /// The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early. + /// Maximum number of documents to collect for each shard.
If a query reaches this limit, Elasticsearch terminates the query early.
Elasticsearch collects documents before sorting.
Use with caution.
Elasticsearch applies this parameter to each shard handling the request.
When possible, let Elasticsearch perform early termination automatically.
Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers.
///
[JsonIgnore] public long? TerminateAfter { get => Q("terminate_after"); set => Q("terminate_after", value); } /// - /// Time each individual bulk request should wait for shards that are unavailable. + /// Period each update request waits for the following operations: dynamic mapping updates, waiting for active shards. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Specify whether to return document version as part of a hit + /// If `true`, returns the document version as part of a hit. /// [JsonIgnore] public bool? Version { get => Q("version"); set => Q("version", value); } @@ -346,30 +346,50 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Serverless.Indices ind public bool? VersionType { get => Q("version_type"); set => Q("version_type", value); } /// - /// Sets the number of shard copies that must be active before proceeding with the update by query operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// The number of shard copies that must be active before proceeding with the operation.
Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Serverless.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } /// - /// Should the request should block until the update by query operation is complete. + /// If `true`, the request blocks until the operation is complete. /// [JsonIgnore] public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } + + /// + /// The maximum number of documents to update. + /// [JsonInclude, JsonPropertyName("max_docs")] public long? MaxDocs { get; set; } + + /// + /// Specifies the documents to update using the Query DSL. + /// [JsonInclude, JsonPropertyName("query")] public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; } + + /// + /// The script to run to update the document source or metadata when updating. + /// [JsonInclude, JsonPropertyName("script")] public Elastic.Clients.Elasticsearch.Serverless.Script? Script { get; set; } + + /// + /// Slice the request manually using the provided slice ID and total number of slices. + /// [JsonInclude, JsonPropertyName("slice")] public Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? Slice { get; set; } + + /// + /// What to do if update by query hits version conflicts: `abort` or `proceed`. + /// [JsonInclude, JsonPropertyName("conflicts")] public Elastic.Clients.Elasticsearch.Serverless.Conflicts? Conflicts { get; set; } } /// -/// Performs an update on every document in the index without changing the source,
for example to pick up a mapping change.
+/// Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
///
public sealed partial class UpdateByQueryRequestDescriptor : RequestDescriptor, UpdateByQueryRequestParameters> { @@ -436,6 +456,9 @@ public UpdateByQueryRequestDescriptor Indices(Elastic.Clients.Elastic private long? MaxDocsValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + /// + /// Specifies the documents to update using the Query DSL. + /// public UpdateByQueryRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) { QueryDescriptor = null; @@ -460,6 +483,9 @@ public UpdateByQueryRequestDescriptor Query(Action + /// Slice the request manually using the provided slice ID and total number of slices. + /// public UpdateByQueryRequestDescriptor Slice(Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? slice) { SliceDescriptor = null; @@ -484,18 +510,27 @@ public UpdateByQueryRequestDescriptor Slice(Action + /// What to do if update by query hits version conflicts: `abort` or `proceed`. + /// public UpdateByQueryRequestDescriptor Conflicts(Elastic.Clients.Elasticsearch.Serverless.Conflicts? conflicts) { ConflictsValue = conflicts; return Self; } + /// + /// The maximum number of documents to update. + /// public UpdateByQueryRequestDescriptor MaxDocs(long? maxDocs) { MaxDocsValue = maxDocs; return Self; } + /// + /// The script to run to update the document source or metadata when updating. + /// public UpdateByQueryRequestDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { ScriptValue = script; @@ -560,7 +595,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Performs an update on every document in the index without changing the source,
for example to pick up a mapping change.
+/// Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
///
public sealed partial class UpdateByQueryRequestDescriptor : RequestDescriptor { @@ -627,6 +662,9 @@ public UpdateByQueryRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Serv private long? MaxDocsValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.Script? ScriptValue { get; set; } + /// + /// Specifies the documents to update using the Query DSL. + /// public UpdateByQueryRequestDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) { QueryDescriptor = null; @@ -651,6 +689,9 @@ public UpdateByQueryRequestDescriptor Query(Action con return Self; } + /// + /// Slice the request manually using the provided slice ID and total number of slices. + /// public UpdateByQueryRequestDescriptor Slice(Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? slice) { SliceDescriptor = null; @@ -675,18 +716,27 @@ public UpdateByQueryRequestDescriptor Slice(Action confi return Self; } + /// + /// What to do if update by query hits version conflicts: `abort` or `proceed`. + /// public UpdateByQueryRequestDescriptor Conflicts(Elastic.Clients.Elasticsearch.Serverless.Conflicts? conflicts) { ConflictsValue = conflicts; return Self; } + /// + /// The maximum number of documents to update. + /// public UpdateByQueryRequestDescriptor MaxDocs(long? maxDocs) { MaxDocsValue = maxDocs; return Self; } + /// + /// The script to run to update the document source or metadata when updating. + /// public UpdateByQueryRequestDescriptor Script(Elastic.Clients.Elasticsearch.Serverless.Script? script) { ScriptValue = script; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs new file mode 100644 index 00000000000..c9033115928 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs @@ -0,0 +1,98 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Requests; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless; + +public sealed class UpdateByQueryRethrottleRequestParameters : RequestParameters +{ + /// + /// The throttle for this request in sub-requests per second. + /// + public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } +} + +/// +/// Changes the number of requests per second for a particular Update By Query operation. +/// +public sealed partial class UpdateByQueryRethrottleRequest : PlainRequest +{ + public UpdateByQueryRethrottleRequest(Elastic.Clients.Elasticsearch.Serverless.Id task_id) : base(r => r.Required("task_id", task_id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceUpdateByQueryRethrottle; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => false; + + internal override string OperationName => "update_by_query_rethrottle"; + + /// + /// The throttle for this request in sub-requests per second. + /// + [JsonIgnore] + public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } +} + +/// +/// Changes the number of requests per second for a particular Update By Query operation. +/// +public sealed partial class UpdateByQueryRethrottleRequestDescriptor : RequestDescriptor +{ + internal UpdateByQueryRethrottleRequestDescriptor(Action configure) => configure.Invoke(this); + + public UpdateByQueryRethrottleRequestDescriptor(Elastic.Clients.Elasticsearch.Serverless.Id task_id) : base(r => r.Required("task_id", task_id)) + { + } + + internal UpdateByQueryRethrottleRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceUpdateByQueryRethrottle; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => false; + + internal override string OperationName => "update_by_query_rethrottle"; + + public UpdateByQueryRethrottleRequestDescriptor RequestsPerSecond(float? requestsPerSecond) => Qs("requests_per_second", requestsPerSecond); + + public UpdateByQueryRethrottleRequestDescriptor TaskId(Elastic.Clients.Elasticsearch.Serverless.Id task_id) + { + RouteValues.Required("task_id", task_id); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRethrottleResponse.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRethrottleResponse.g.cs new file mode 100644 index 00000000000..9bc71216018 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Api/UpdateByQueryRethrottleResponse.g.cs @@ -0,0 +1,32 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless; + +public sealed partial class UpdateByQueryRethrottleResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("nodes")] + public IReadOnlyDictionary Nodes { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs index 967ed9248be..1bdc006da18 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs @@ -38,7 +38,7 @@ internal AsyncSearchNamespacedClient(ElasticsearchClient client) : base(client) /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequest request) { @@ -48,7 +48,7 @@ public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequest request /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(AsyncSearchStatusRequest request, CancellationToken cancellationToken = default) { @@ -58,7 +58,7 @@ public virtual Task StatusAsync(AsyncSearchStatusRequ /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Serverless.Id id) { @@ -69,7 +69,7 @@ public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Se /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequestDescriptor descriptor) { @@ -79,7 +79,7 @@ public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequestDescript /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest) { @@ -91,7 +91,7 @@ public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Se /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequestDescriptor descriptor) { @@ -101,7 +101,7 @@ public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequ /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest) { @@ -113,7 +113,7 @@ public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elast /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -124,7 +124,7 @@ public virtual Task StatusAsync(Elastic.Clients.Elast /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(AsyncSearchStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -134,7 +134,7 @@ public virtual Task StatusAsync(AsyncSearchStatusRequ /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -146,7 +146,7 @@ public virtual Task StatusAsync(Elastic.Clients.Elast /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(AsyncSearchStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -156,7 +156,7 @@ public virtual Task StatusAsync(AsyncSearc /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -168,7 +168,7 @@ public virtual Task StatusAsync(Elastic.Cl /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequest request) { @@ -178,7 +178,7 @@ public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequest request /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteAsyncSearchRequest request, CancellationToken cancellationToken = default) { @@ -188,7 +188,7 @@ public virtual Task DeleteAsync(DeleteAsyncSearchRequ /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Serverless.Id id) { @@ -199,7 +199,7 @@ public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Se /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequestDescriptor descriptor) { @@ -209,7 +209,7 @@ public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequestDescript /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest) { @@ -221,7 +221,7 @@ public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Se /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequestDescriptor descriptor) { @@ -231,7 +231,7 @@ public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequ /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest) { @@ -243,7 +243,7 @@ public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elast /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -254,7 +254,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -264,7 +264,7 @@ public virtual Task DeleteAsync(DeleteAsyncSearchRequ /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -276,7 +276,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -286,7 +286,7 @@ public virtual Task DeleteAsync(DeleteAsyn /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -298,7 +298,7 @@ public virtual Task DeleteAsync(Elastic.Cl /// /// Retrieves the results of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetAsyncSearchResponse Get(GetAsyncSearchRequest request) { @@ -308,7 +308,7 @@ public virtual GetAsyncSearchResponse Get(GetAsyncSearchRe /// /// Retrieves the results of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(GetAsyncSearchRequest request, CancellationToken cancellationToken = default) { @@ -318,7 +318,7 @@ public virtual Task> GetAsync(GetAs /// /// Retrieves the results of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetAsyncSearchResponse Get(Elastic.Clients.Elasticsearch.Serverless.Id id) { @@ -329,7 +329,7 @@ public virtual GetAsyncSearchResponse Get(Elastic.Clients. /// /// Retrieves the results of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetAsyncSearchResponse Get(GetAsyncSearchRequestDescriptor descriptor) { @@ -339,7 +339,7 @@ public virtual GetAsyncSearchResponse Get(GetAsyncSearchRe /// /// Retrieves the results of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetAsyncSearchResponse Get(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest) { @@ -351,7 +351,7 @@ public virtual GetAsyncSearchResponse Get(Elastic.Clients. /// /// Retrieves the results of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) { @@ -362,7 +362,7 @@ public virtual Task> GetAsync(Elast /// /// Retrieves the results of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(GetAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -372,7 +372,7 @@ public virtual Task> GetAsync(GetAs /// /// Retrieves the results of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -384,7 +384,7 @@ public virtual Task> GetAsync(Elast /// /// Executes a search request asynchronously. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual SubmitAsyncSearchResponse Submit(SubmitAsyncSearchRequest request) { @@ -394,7 +394,7 @@ public virtual SubmitAsyncSearchResponse Submit(SubmitAsyn /// /// Executes a search request asynchronously. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(SubmitAsyncSearchRequest request, CancellationToken cancellationToken = default) { @@ -404,7 +404,7 @@ public virtual Task> SubmitAsync /// /// Executes a search request asynchronously. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual SubmitAsyncSearchResponse Submit() { @@ -415,7 +415,7 @@ public virtual SubmitAsyncSearchResponse Submit() /// /// Executes a search request asynchronously. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual SubmitAsyncSearchResponse Submit(SubmitAsyncSearchRequestDescriptor descriptor) { @@ -425,7 +425,7 @@ public virtual SubmitAsyncSearchResponse Submit(SubmitAsyn /// /// Executes a search request asynchronously. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual SubmitAsyncSearchResponse Submit(Action> configureRequest) { @@ -437,7 +437,7 @@ public virtual SubmitAsyncSearchResponse Submit(Action /// Executes a search request asynchronously. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(CancellationToken cancellationToken = default) { @@ -448,7 +448,7 @@ public virtual Task> SubmitAsync /// /// Executes a search request asynchronously. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(SubmitAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -458,7 +458,7 @@ public virtual Task> SubmitAsync /// /// Executes a search request asynchronously. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(Action> configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Cluster.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Cluster.g.cs index 73af3674b6a..dd37bf3997c 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Cluster.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Cluster.g.cs @@ -38,7 +38,7 @@ internal ClusterNamespacedClient(ElasticsearchClient client) : base(client) /// /// Provides explanations for shard allocations in the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AllocationExplainResponse AllocationExplain(AllocationExplainRequest request) { @@ -48,7 +48,7 @@ public virtual AllocationExplainResponse AllocationExplain(AllocationExplainRequ /// /// Provides explanations for shard allocations in the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(AllocationExplainRequest request, CancellationToken cancellationToken = default) { @@ -58,7 +58,7 @@ public virtual Task AllocationExplainAsync(Allocation /// /// Provides explanations for shard allocations in the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AllocationExplainResponse AllocationExplain() { @@ -69,7 +69,7 @@ public virtual AllocationExplainResponse AllocationExplain() /// /// Provides explanations for shard allocations in the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AllocationExplainResponse AllocationExplain(AllocationExplainRequestDescriptor descriptor) { @@ -79,7 +79,7 @@ public virtual AllocationExplainResponse AllocationExplain(AllocationExplainRequ /// /// Provides explanations for shard allocations in the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AllocationExplainResponse AllocationExplain(Action configureRequest) { @@ -91,7 +91,7 @@ public virtual AllocationExplainResponse AllocationExplain(Action /// Provides explanations for shard allocations in the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(CancellationToken cancellationToken = default) { @@ -102,7 +102,7 @@ public virtual Task AllocationExplainAsync(Cancellati /// /// Provides explanations for shard allocations in the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(AllocationExplainRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -112,7 +112,7 @@ public virtual Task AllocationExplainAsync(Allocation /// /// Provides explanations for shard allocations in the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -124,7 +124,7 @@ public virtual Task AllocationExplainAsync(Action /// Returns high-level overview of cluster statistics. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClusterStatsResponse Stats(ClusterStatsRequest request) { @@ -134,7 +134,7 @@ public virtual ClusterStatsResponse Stats(ClusterStatsRequest request) /// /// Returns high-level overview of cluster statistics. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(ClusterStatsRequest request, CancellationToken cancellationToken = default) { @@ -144,7 +144,7 @@ public virtual Task StatsAsync(ClusterStatsRequest request /// /// Returns high-level overview of cluster statistics. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClusterStatsResponse Stats() { @@ -155,7 +155,7 @@ public virtual ClusterStatsResponse Stats() /// /// Returns high-level overview of cluster statistics. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClusterStatsResponse Stats(ClusterStatsRequestDescriptor descriptor) { @@ -165,7 +165,7 @@ public virtual ClusterStatsResponse Stats(ClusterStatsRequestDescriptor descript /// /// Returns high-level overview of cluster statistics. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClusterStatsResponse Stats(Action configureRequest) { @@ -177,7 +177,7 @@ public virtual ClusterStatsResponse Stats(Action /// /// Returns high-level overview of cluster statistics. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -188,7 +188,7 @@ public virtual Task StatsAsync(CancellationToken cancellat /// /// Returns high-level overview of cluster statistics. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(ClusterStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -198,7 +198,7 @@ public virtual Task StatsAsync(ClusterStatsRequestDescript /// /// Returns high-level overview of cluster statistics. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -210,7 +210,7 @@ public virtual Task StatsAsync(Action /// Returns cluster settings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetClusterSettingsResponse GetSettings(GetClusterSettingsRequest request) { @@ -220,7 +220,7 @@ public virtual GetClusterSettingsResponse GetSettings(GetClusterSettingsRequest /// /// Returns cluster settings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(GetClusterSettingsRequest request, CancellationToken cancellationToken = default) { @@ -230,7 +230,7 @@ public virtual Task GetSettingsAsync(GetClusterSetti /// /// Returns cluster settings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetClusterSettingsResponse GetSettings() { @@ -241,7 +241,7 @@ public virtual GetClusterSettingsResponse GetSettings() /// /// Returns cluster settings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetClusterSettingsResponse GetSettings(GetClusterSettingsRequestDescriptor descriptor) { @@ -251,7 +251,7 @@ public virtual GetClusterSettingsResponse GetSettings(GetClusterSettingsRequestD /// /// Returns cluster settings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetClusterSettingsResponse GetSettings(Action configureRequest) { @@ -263,7 +263,7 @@ public virtual GetClusterSettingsResponse GetSettings(Action /// Returns cluster settings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(CancellationToken cancellationToken = default) { @@ -274,7 +274,7 @@ public virtual Task GetSettingsAsync(CancellationTok /// /// Returns cluster settings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(GetClusterSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -284,7 +284,7 @@ public virtual Task GetSettingsAsync(GetClusterSetti /// /// Returns cluster settings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -296,7 +296,7 @@ public virtual Task GetSettingsAsync(Action /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual HealthResponse Health(HealthRequest request) { @@ -306,7 +306,7 @@ public virtual HealthResponse Health(HealthRequest request) /// /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(HealthRequest request, CancellationToken cancellationToken = default) { @@ -316,7 +316,7 @@ public virtual Task HealthAsync(HealthRequest request, Cancellat /// /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual HealthResponse Health() { @@ -327,7 +327,7 @@ public virtual HealthResponse Health() /// /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual HealthResponse Health(HealthRequestDescriptor descriptor) { @@ -337,7 +337,7 @@ public virtual HealthResponse Health(HealthRequestDescriptor descriptor) /// /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual HealthResponse Health(Action configureRequest) { @@ -349,7 +349,7 @@ public virtual HealthResponse Health(Action configureRe /// /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual HealthResponse Health(HealthRequestDescriptor descriptor) { @@ -359,7 +359,7 @@ public virtual HealthResponse Health(HealthRequestDescriptor /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual HealthResponse Health(Action> configureRequest) { @@ -371,7 +371,7 @@ public virtual HealthResponse Health(Action /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(CancellationToken cancellationToken = default) { @@ -382,7 +382,7 @@ public virtual Task HealthAsync(CancellationToken cancellationTo /// /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(HealthRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -392,7 +392,7 @@ public virtual Task HealthAsync(HealthRequestDescriptor descript /// /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -404,7 +404,7 @@ public virtual Task HealthAsync(Action /// /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(HealthRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -414,7 +414,7 @@ public virtual Task HealthAsync(HealthRequestDescript /// /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -426,7 +426,7 @@ public virtual Task HealthAsync(Action /// Returns a list of any cluster-level changes (e.g. create index, update mapping,
allocate or fail shard) which have not yet been executed.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PendingTasksResponse PendingTasks(PendingTasksRequest request) { @@ -436,7 +436,7 @@ public virtual PendingTasksResponse PendingTasks(PendingTasksRequest request) /// /// Returns a list of any cluster-level changes (e.g. create index, update mapping,
allocate or fail shard) which have not yet been executed.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PendingTasksAsync(PendingTasksRequest request, CancellationToken cancellationToken = default) { @@ -446,7 +446,7 @@ public virtual Task PendingTasksAsync(PendingTasksRequest /// /// Returns a list of any cluster-level changes (e.g. create index, update mapping,
allocate or fail shard) which have not yet been executed.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual PendingTasksResponse PendingTasks() { @@ -457,7 +457,7 @@ public virtual PendingTasksResponse PendingTasks() /// /// Returns a list of any cluster-level changes (e.g. create index, update mapping,
allocate or fail shard) which have not yet been executed.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual PendingTasksResponse PendingTasks(PendingTasksRequestDescriptor descriptor) { @@ -467,7 +467,7 @@ public virtual PendingTasksResponse PendingTasks(PendingTasksRequestDescriptor d /// /// Returns a list of any cluster-level changes (e.g. create index, update mapping,
allocate or fail shard) which have not yet been executed.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual PendingTasksResponse PendingTasks(Action configureRequest) { @@ -479,7 +479,7 @@ public virtual PendingTasksResponse PendingTasks(Action /// Returns a list of any cluster-level changes (e.g. create index, update mapping,
allocate or fail shard) which have not yet been executed.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PendingTasksAsync(CancellationToken cancellationToken = default) { @@ -490,7 +490,7 @@ public virtual Task PendingTasksAsync(CancellationToken ca /// /// Returns a list of any cluster-level changes (e.g. create index, update mapping,
allocate or fail shard) which have not yet been executed.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PendingTasksAsync(PendingTasksRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -500,7 +500,7 @@ public virtual Task PendingTasksAsync(PendingTasksRequestD /// /// Returns a list of any cluster-level changes (e.g. create index, update mapping,
allocate or fail shard) which have not yet been executed.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PendingTasksAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Enrich.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Enrich.g.cs index 03ff6665e56..d97269bc5c2 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Enrich.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Enrich.g.cs @@ -210,7 +210,7 @@ public virtual Task StatsAsync(Action /// Creates the enrich index for an existing enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequest request) { @@ -220,7 +220,7 @@ public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequest request) /// /// Creates the enrich index for an existing enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecutePolicyAsync(ExecutePolicyRequest request, CancellationToken cancellationToken = default) { @@ -230,7 +230,7 @@ public virtual Task ExecutePolicyAsync(ExecutePolicyReque /// /// Creates the enrich index for an existing enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ExecutePolicyResponse ExecutePolicy(Elastic.Clients.Elasticsearch.Serverless.Name name) { @@ -241,7 +241,7 @@ public virtual ExecutePolicyResponse ExecutePolicy(Elastic.Clients.Elasticsearch /// /// Creates the enrich index for an existing enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequestDescriptor descriptor) { @@ -251,7 +251,7 @@ public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequestDescripto /// /// Creates the enrich index for an existing enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ExecutePolicyResponse ExecutePolicy(Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest) { @@ -263,7 +263,7 @@ public virtual ExecutePolicyResponse ExecutePolicy(Elastic.Clients.Elasticsearch /// /// Creates the enrich index for an existing enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecutePolicyAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) { @@ -274,7 +274,7 @@ public virtual Task ExecutePolicyAsync(Elastic.Clients.El /// /// Creates the enrich index for an existing enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecutePolicyAsync(ExecutePolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -284,7 +284,7 @@ public virtual Task ExecutePolicyAsync(ExecutePolicyReque /// /// Creates the enrich index for an existing enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecutePolicyAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -382,7 +382,7 @@ public virtual Task GetPolicyAsync(Action /// Creates a new enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PutPolicyResponse PutPolicy(PutPolicyRequest request) { @@ -392,7 +392,7 @@ public virtual PutPolicyResponse PutPolicy(PutPolicyRequest request) /// /// Creates a new enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(PutPolicyRequest request, CancellationToken cancellationToken = default) { @@ -402,7 +402,7 @@ public virtual Task PutPolicyAsync(PutPolicyRequest request, /// /// Creates a new enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PutPolicyResponse PutPolicy(PutPolicyRequestDescriptor descriptor) { @@ -412,7 +412,7 @@ public virtual PutPolicyResponse PutPolicy(PutPolicyRequestDescriptor descriptor /// /// Creates a new enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest) { @@ -424,7 +424,7 @@ public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsearch.Serverl /// /// Creates a new enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PutPolicyResponse PutPolicy(PutPolicyRequestDescriptor descriptor) { @@ -434,7 +434,7 @@ public virtual PutPolicyResponse PutPolicy(PutPolicyRequestDescriptor /// /// Creates a new enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsearch.Serverless.Name name, Action> configureRequest) { @@ -446,7 +446,7 @@ public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsea /// /// Creates a new enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(PutPolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -456,7 +456,7 @@ public virtual Task PutPolicyAsync(PutPolicyRequestDescriptor /// /// Creates a new enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -468,7 +468,7 @@ public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsea /// /// Creates a new enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(PutPolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -478,7 +478,7 @@ public virtual Task PutPolicyAsync(PutPolicyReques /// /// Creates a new enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action> configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Eql.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Eql.g.cs new file mode 100644 index 00000000000..2552adddc75 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Eql.g.cs @@ -0,0 +1,470 @@ +// 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.Threading; +using System.Threading.Tasks; + +namespace Elastic.Clients.Elasticsearch.Serverless.Eql; + +public partial class EqlNamespacedClient : NamespacedClientProxy +{ + /// + /// Initializes a new instance of the class for mocking. + /// + protected EqlNamespacedClient() : base() + { + } + + internal EqlNamespacedClient(ElasticsearchClient client) : base(client) + { + } + + /// + /// Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual EqlDeleteResponse Delete(EqlDeleteRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(EqlDeleteRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual EqlDeleteResponse Delete(Elastic.Clients.Elasticsearch.Serverless.Id id) + { + var descriptor = new EqlDeleteRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual EqlDeleteResponse Delete(EqlDeleteRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual EqlDeleteResponse Delete(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest) + { + var descriptor = new EqlDeleteRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual EqlDeleteResponse Delete(EqlDeleteRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, EqlDeleteResponse, EqlDeleteRequestParameters>(descriptor); + } + + /// + /// Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual EqlDeleteResponse Delete(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest) + { + var descriptor = new EqlDeleteRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, EqlDeleteResponse, EqlDeleteRequestParameters>(descriptor); + } + + /// + /// Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new EqlDeleteRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(EqlDeleteRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new EqlDeleteRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(EqlDeleteRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, EqlDeleteResponse, EqlDeleteRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new EqlDeleteRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, EqlDeleteResponse, EqlDeleteRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns async results from previously executed Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual EqlGetResponse Get(EqlGetRequest request) + { + request.BeforeRequest(); + return DoRequest, EqlGetRequestParameters>(request); + } + + /// + /// Returns async results from previously executed Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetAsync(EqlGetRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync, EqlGetRequestParameters>(request, cancellationToken); + } + + /// + /// Returns async results from previously executed Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual EqlGetResponse Get(Elastic.Clients.Elasticsearch.Serverless.Id id) + { + var descriptor = new EqlGetRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest, EqlGetRequestParameters>(descriptor); + } + + /// + /// Returns async results from previously executed Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual EqlGetResponse Get(EqlGetRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, EqlGetRequestParameters>(descriptor); + } + + /// + /// Returns async results from previously executed Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual EqlGetResponse Get(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest) + { + var descriptor = new EqlGetRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, EqlGetRequestParameters>(descriptor); + } + + /// + /// Returns async results from previously executed Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new EqlGetRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync, EqlGetRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns async results from previously executed Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetAsync(EqlGetRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, EqlGetRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns async results from previously executed Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new EqlGetRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, EqlGetRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns results matching a query expressed in Event Query Language (EQL) + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual EqlSearchResponse Search(EqlSearchRequest request) + { + request.BeforeRequest(); + return DoRequest, EqlSearchRequestParameters>(request); + } + + /// + /// Returns results matching a query expressed in Event Query Language (EQL) + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> SearchAsync(EqlSearchRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync, EqlSearchRequestParameters>(request, cancellationToken); + } + + /// + /// Returns results matching a query expressed in Event Query Language (EQL) + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual EqlSearchResponse Search(Elastic.Clients.Elasticsearch.Serverless.Indices indices) + { + var descriptor = new EqlSearchRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequest, EqlSearchRequestParameters>(descriptor); + } + + /// + /// Returns results matching a query expressed in Event Query Language (EQL) + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual EqlSearchResponse Search(EqlSearchRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, EqlSearchRequestParameters>(descriptor); + } + + /// + /// Returns results matching a query expressed in Event Query Language (EQL) + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual EqlSearchResponse Search(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest) + { + var descriptor = new EqlSearchRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, EqlSearchRequestParameters>(descriptor); + } + + /// + /// Returns results matching a query expressed in Event Query Language (EQL) + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> SearchAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) + { + var descriptor = new EqlSearchRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequestAsync, EqlSearchRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns results matching a query expressed in Event Query Language (EQL) + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> SearchAsync(EqlSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, EqlSearchRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns results matching a query expressed in Event Query Language (EQL) + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> SearchAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new EqlSearchRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, EqlSearchRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetStatusAsync(GetEqlStatusRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Serverless.Id id) + { + var descriptor = new GetEqlStatusRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest) + { + var descriptor = new GetEqlStatusRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, GetEqlStatusResponse, GetEqlStatusRequestParameters>(descriptor); + } + + /// + /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest) + { + var descriptor = new GetEqlStatusRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, GetEqlStatusResponse, GetEqlStatusRequestParameters>(descriptor); + } + + /// + /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new GetEqlStatusRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetStatusAsync(GetEqlStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetEqlStatusRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetStatusAsync(GetEqlStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, GetEqlStatusResponse, GetEqlStatusRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetEqlStatusRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, GetEqlStatusResponse, GetEqlStatusRequestParameters>(descriptor, cancellationToken); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Graph.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Graph.g.cs index cbebf026f0f..5c976248d16 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Graph.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Graph.g.cs @@ -38,7 +38,7 @@ internal GraphNamespacedClient(ElasticsearchClient client) : base(client) /// /// Explore extracted and summarized information about the documents and terms in an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ExploreResponse Explore(ExploreRequest request) { @@ -48,7 +48,7 @@ public virtual ExploreResponse Explore(ExploreRequest request) /// /// Explore extracted and summarized information about the documents and terms in an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(ExploreRequest request, CancellationToken cancellationToken = default) { @@ -58,7 +58,7 @@ public virtual Task ExploreAsync(ExploreRequest request, Cancel /// /// Explore extracted and summarized information about the documents and terms in an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Serverless.Indices indices) { @@ -69,7 +69,7 @@ public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Serverless. /// /// Explore extracted and summarized information about the documents and terms in an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ExploreResponse Explore(ExploreRequestDescriptor descriptor) { @@ -79,7 +79,7 @@ public virtual ExploreResponse Explore(ExploreRequestDescriptor descriptor) /// /// Explore extracted and summarized information about the documents and terms in an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest) { @@ -91,7 +91,7 @@ public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Serverless. /// /// Explore extracted and summarized information about the documents and terms in an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ExploreResponse Explore(ExploreRequestDescriptor descriptor) { @@ -101,7 +101,7 @@ public virtual ExploreResponse Explore(ExploreRequestDescriptor /// Explore extracted and summarized information about the documents and terms in an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest) { @@ -113,7 +113,7 @@ public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch. /// /// Explore extracted and summarized information about the documents and terms in an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) { @@ -124,7 +124,7 @@ public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch. /// /// Explore extracted and summarized information about the documents and terms in an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(ExploreRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -134,7 +134,7 @@ public virtual Task ExploreAsync(ExploreRequestDescriptor descr /// /// Explore extracted and summarized information about the documents and terms in an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -146,7 +146,7 @@ public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch. /// /// Explore extracted and summarized information about the documents and terms in an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(ExploreRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -156,7 +156,7 @@ public virtual Task ExploreAsync(ExploreRequestDescr /// /// Explore extracted and summarized information about the documents and terms in an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Indices.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Indices.g.cs index 3ba62e35ef6..0d667292f19 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Indices.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Indices.g.cs @@ -38,7 +38,7 @@ internal IndicesNamespacedClient(ElasticsearchClient client) : base(client) /// /// Closes an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CloseIndexResponse Close(CloseIndexRequest request) { @@ -48,7 +48,7 @@ public virtual CloseIndexResponse Close(CloseIndexRequest request) /// /// Closes an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(CloseIndexRequest request, CancellationToken cancellationToken = default) { @@ -58,7 +58,7 @@ public virtual Task CloseAsync(CloseIndexRequest request, Ca /// /// Closes an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Serverless.Indices indices) { @@ -69,7 +69,7 @@ public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Serverless /// /// Closes an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CloseIndexResponse Close(CloseIndexRequestDescriptor descriptor) { @@ -79,7 +79,7 @@ public virtual CloseIndexResponse Close(CloseIndexRequestDescriptor descriptor) /// /// Closes an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest) { @@ -91,7 +91,7 @@ public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Serverless /// /// Closes an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CloseIndexResponse Close(CloseIndexRequestDescriptor descriptor) { @@ -101,7 +101,7 @@ public virtual CloseIndexResponse Close(CloseIndexRequestDescriptor /// Closes an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest) { @@ -113,7 +113,7 @@ public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch /// /// Closes an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) { @@ -124,7 +124,7 @@ public virtual Task CloseAsync(Elastic.Clients.Elasticsearch /// /// Closes an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(CloseIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -134,7 +134,7 @@ public virtual Task CloseAsync(CloseIndexRequestDescriptor d /// /// Closes an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -146,7 +146,7 @@ public virtual Task CloseAsync(Elastic.Clients.Elasticsearch /// /// Closes an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(CloseIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -156,7 +156,7 @@ public virtual Task CloseAsync(CloseIndexRequestD /// /// Closes an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -254,7 +254,7 @@ public virtual Task CreateDataStreamAsync(Elastic.Clie /// /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CreateIndexResponse Create(CreateIndexRequest request) { @@ -264,7 +264,7 @@ public virtual CreateIndexResponse Create(CreateIndexRequest request) /// /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CreateIndexRequest request, CancellationToken cancellationToken = default) { @@ -274,7 +274,7 @@ public virtual Task CreateAsync(CreateIndexRequest request, /// /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.Serverless.IndexName index) { @@ -285,7 +285,7 @@ public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.Serverle /// /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CreateIndexResponse Create(CreateIndexRequestDescriptor descriptor) { @@ -295,7 +295,7 @@ public virtual CreateIndexResponse Create(CreateIndexRequestDescriptor descripto /// /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Action configureRequest) { @@ -307,7 +307,7 @@ public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.Serverle /// /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CreateIndexResponse Create() { @@ -318,7 +318,7 @@ public virtual CreateIndexResponse Create() /// /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CreateIndexResponse Create(Action> configureRequest) { @@ -330,7 +330,7 @@ public virtual CreateIndexResponse Create(Action /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CreateIndexResponse Create(CreateIndexRequestDescriptor descriptor) { @@ -340,7 +340,7 @@ public virtual CreateIndexResponse Create(CreateIndexRequestDescripto /// /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Action> configureRequest) { @@ -352,7 +352,7 @@ public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsear /// /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, CancellationToken cancellationToken = default) { @@ -363,7 +363,7 @@ public virtual Task CreateAsync(Elastic.Clients.Elasticsear /// /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CreateIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -373,7 +373,7 @@ public virtual Task CreateAsync(CreateIndexRequestDescripto /// /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -385,7 +385,7 @@ public virtual Task CreateAsync(Elastic.Clients.Elasticsear /// /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CancellationToken cancellationToken = default) { @@ -396,7 +396,7 @@ public virtual Task CreateAsync(CancellationToke /// /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -408,7 +408,7 @@ public virtual Task CreateAsync(Action /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CreateIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -418,7 +418,7 @@ public virtual Task CreateAsync(CreateIndexReque /// /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -559,9 +559,8 @@ public virtual Task DeleteAliasAsync(Elastic.Cli } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Deletes the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Deletes the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(DeleteDataLifecycleRequest request) { @@ -570,9 +569,8 @@ public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(DeleteDataLifecyc } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Deletes the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Deletes the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataLifecycleAsync(DeleteDataLifecycleRequest request, CancellationToken cancellationToken = default) { @@ -581,9 +579,8 @@ public virtual Task DeleteDataLifecycleAsync(Delete } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Deletes the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Deletes the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name) { @@ -593,9 +590,8 @@ public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(Elastic.Clients.E } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Deletes the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Deletes the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(DeleteDataLifecycleRequestDescriptor descriptor) { @@ -604,9 +600,8 @@ public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(DeleteDataLifecyc } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Deletes the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Deletes the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name, Action configureRequest) { @@ -617,9 +612,8 @@ public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(Elastic.Clients.E } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Deletes the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Deletes the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name, CancellationToken cancellationToken = default) { @@ -629,9 +623,8 @@ public virtual Task DeleteDataLifecycleAsync(Elasti } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Deletes the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Deletes the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataLifecycleAsync(DeleteDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -640,9 +633,8 @@ public virtual Task DeleteDataLifecycleAsync(Delete } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Deletes the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Deletes the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -954,92 +946,6 @@ public virtual Task DeleteIndexTemplateAsync(Elasti return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Deletes an index template. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteTemplateResponse DeleteTemplate(DeleteTemplateRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// - /// Deletes an index template. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteTemplateAsync(DeleteTemplateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// Deletes an index template. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteTemplateResponse DeleteTemplate(Elastic.Clients.Elasticsearch.Serverless.Name name) - { - var descriptor = new DeleteTemplateRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// - /// Deletes an index template. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteTemplateResponse DeleteTemplate(DeleteTemplateRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// - /// Deletes an index template. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteTemplateResponse DeleteTemplate(Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest) - { - var descriptor = new DeleteTemplateRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// - /// Deletes an index template. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteTemplateRequestDescriptor(name); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// Deletes an index template. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteTemplateAsync(DeleteTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// Deletes an index template. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task DeleteTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Name name, Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new DeleteTemplateRequestDescriptor(name); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - /// /// Returns information about whether a particular alias exists. /// Learn more about this API in the Elasticsearch documentation. @@ -1387,231 +1293,393 @@ public virtual Task ExistsAsync(Elastic.Clients.Elast } /// - /// Returns information about whether a particular index template exists. - /// Learn more about this API in the Elasticsearch documentation. + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual ExistsTemplateResponse ExistsTemplate(ExistsTemplateRequest request) + public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(ExplainDataLifecycleRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } /// - /// Returns information about whether a particular index template exists. - /// Learn more about this API in the Elasticsearch documentation. + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ExistsTemplateAsync(ExistsTemplateRequest request, CancellationToken cancellationToken = default) + public virtual Task ExplainDataLifecycleAsync(ExplainDataLifecycleRequest request, CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } /// - /// Returns information about whether a particular index template exists. - /// Learn more about this API in the Elasticsearch documentation. + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual ExistsTemplateResponse ExistsTemplate(Elastic.Clients.Elasticsearch.Serverless.Names name) + public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elastic.Clients.Elasticsearch.Serverless.Indices indices) { - var descriptor = new ExistsTemplateRequestDescriptor(name); + var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// - /// Returns information about whether a particular index template exists. - /// Learn more about this API in the Elasticsearch documentation. + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual ExistsTemplateResponse ExistsTemplate(ExistsTemplateRequestDescriptor descriptor) + public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(ExplainDataLifecycleRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// - /// Returns information about whether a particular index template exists. - /// Learn more about this API in the Elasticsearch documentation. + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual ExistsTemplateResponse ExistsTemplate(Elastic.Clients.Elasticsearch.Serverless.Names name, Action configureRequest) + public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest) { - var descriptor = new ExistsTemplateRequestDescriptor(name); + var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// - /// Returns information about whether a particular index template exists. - /// Learn more about this API in the Elasticsearch documentation. + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ExistsTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, CancellationToken cancellationToken = default) + public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(ExplainDataLifecycleRequestDescriptor descriptor) { - var descriptor = new ExistsTemplateRequestDescriptor(name); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequest, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor); } /// - /// Returns information about whether a particular index template exists. - /// Learn more about this API in the Elasticsearch documentation. + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ExistsTemplateAsync(ExistsTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest) { + var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequest, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor); } /// - /// Returns information about whether a particular index template exists. - /// Learn more about this API in the Elasticsearch documentation. + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExplainDataLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) + { + var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ExistsTemplateAsync(Elastic.Clients.Elasticsearch.Serverless.Names name, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task ExplainDataLifecycleAsync(ExplainDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExplainDataLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ExistsTemplateRequestDescriptor(name); + var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. - /// Learn more about this API in the Elasticsearch documentation. + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(ExplainDataLifecycleRequest request) + public virtual Task ExplainDataLifecycleAsync(ExplainDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExplainDataLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Performs the flush operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual FlushResponse Flush(FlushRequest request) { request.BeforeRequest(); - return DoRequest(request); + return DoRequest(request); } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. - /// Learn more about this API in the Elasticsearch documentation. + /// Performs the flush operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ExplainDataLifecycleAsync(ExplainDataLifecycleRequest request, CancellationToken cancellationToken = default) + public virtual Task FlushAsync(FlushRequest request, CancellationToken cancellationToken = default) { request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); + return DoRequestAsync(request, cancellationToken); } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. - /// Learn more about this API in the Elasticsearch documentation. + /// Performs the flush operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elastic.Clients.Elasticsearch.Serverless.Indices indices) + public virtual FlushResponse Flush() { - var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); + var descriptor = new FlushRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. - /// Learn more about this API in the Elasticsearch documentation. + /// Performs the flush operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(ExplainDataLifecycleRequestDescriptor descriptor) + public virtual FlushResponse Flush(FlushRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. - /// Learn more about this API in the Elasticsearch documentation. + /// Performs the flush operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest) + public virtual FlushResponse Flush(Action configureRequest) { - var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); + var descriptor = new FlushRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest(descriptor); } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. - /// Learn more about this API in the Elasticsearch documentation. + /// Performs the flush operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(ExplainDataLifecycleRequestDescriptor descriptor) + public virtual FlushResponse Flush(FlushRequestDescriptor descriptor) { descriptor.BeforeRequest(); - return DoRequest, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor); + return DoRequest, FlushResponse, FlushRequestParameters>(descriptor); } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. - /// Learn more about this API in the Elasticsearch documentation. + /// Performs the flush operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest) + public virtual FlushResponse Flush(Action> configureRequest) { - var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); + var descriptor = new FlushRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor); + return DoRequest, FlushResponse, FlushRequestParameters>(descriptor); } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. - /// Learn more about this API in the Elasticsearch documentation. + /// Performs the flush operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ExplainDataLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) + public virtual Task FlushAsync(CancellationToken cancellationToken = default) { - var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); + var descriptor = new FlushRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. - /// Learn more about this API in the Elasticsearch documentation. + /// Performs the flush operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ExplainDataLifecycleAsync(ExplainDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task FlushAsync(FlushRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. - /// Learn more about this API in the Elasticsearch documentation. + /// Performs the flush operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ExplainDataLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) + public virtual Task FlushAsync(Action configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); + var descriptor = new FlushRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); + return DoRequestAsync(descriptor, cancellationToken); } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. - /// Learn more about this API in the Elasticsearch documentation. + /// Performs the flush operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ExplainDataLifecycleAsync(ExplainDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) + public virtual Task FlushAsync(FlushRequestDescriptor descriptor, CancellationToken cancellationToken = default) { descriptor.BeforeRequest(); - return DoRequestAsync, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, FlushResponse, FlushRequestParameters>(descriptor, cancellationToken); } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. - /// Learn more about this API in the Elasticsearch documentation. + /// Performs the flush operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task ExplainDataLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) + public virtual Task FlushAsync(Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new ExplainDataLifecycleRequestDescriptor(indices); + var descriptor = new FlushRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequestAsync, ExplainDataLifecycleResponse, ExplainDataLifecycleRequestParameters>(descriptor, cancellationToken); + return DoRequestAsync, FlushResponse, FlushRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Performs the force merge operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ForcemergeResponse Forcemerge(ForcemergeRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// Performs the force merge operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ForcemergeAsync(ForcemergeRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// Performs the force merge operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ForcemergeResponse Forcemerge() + { + var descriptor = new ForcemergeRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Performs the force merge operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ForcemergeResponse Forcemerge(ForcemergeRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Performs the force merge operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ForcemergeResponse Forcemerge(Action configureRequest) + { + var descriptor = new ForcemergeRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Performs the force merge operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ForcemergeResponse Forcemerge(ForcemergeRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, ForcemergeResponse, ForcemergeRequestParameters>(descriptor); + } + + /// + /// Performs the force merge operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ForcemergeResponse Forcemerge(Action> configureRequest) + { + var descriptor = new ForcemergeRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, ForcemergeResponse, ForcemergeRequestParameters>(descriptor); + } + + /// + /// Performs the force merge operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ForcemergeAsync(CancellationToken cancellationToken = default) + { + var descriptor = new ForcemergeRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Performs the force merge operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ForcemergeAsync(ForcemergeRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Performs the force merge operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ForcemergeAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ForcemergeRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Performs the force merge operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ForcemergeAsync(ForcemergeRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, ForcemergeResponse, ForcemergeRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Performs the force merge operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ForcemergeAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ForcemergeRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ForcemergeResponse, ForcemergeRequestParameters>(descriptor, cancellationToken); } /// @@ -1745,9 +1813,8 @@ public virtual Task GetAliasAsync(Action - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Returns the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Returns the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetDataLifecycleResponse GetDataLifecycle(GetDataLifecycleRequest request) { @@ -1756,9 +1823,8 @@ public virtual GetDataLifecycleResponse GetDataLifecycle(GetDataLifecycleRequest } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Returns the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Returns the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataLifecycleAsync(GetDataLifecycleRequest request, CancellationToken cancellationToken = default) { @@ -1767,9 +1833,8 @@ public virtual Task GetDataLifecycleAsync(GetDataLifec } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Returns the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Returns the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetDataLifecycleResponse GetDataLifecycle(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name) { @@ -1779,9 +1844,8 @@ public virtual GetDataLifecycleResponse GetDataLifecycle(Elastic.Clients.Elastic } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Returns the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Returns the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetDataLifecycleResponse GetDataLifecycle(GetDataLifecycleRequestDescriptor descriptor) { @@ -1790,9 +1854,8 @@ public virtual GetDataLifecycleResponse GetDataLifecycle(GetDataLifecycleRequest } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Returns the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Returns the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetDataLifecycleResponse GetDataLifecycle(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name, Action configureRequest) { @@ -1803,9 +1866,8 @@ public virtual GetDataLifecycleResponse GetDataLifecycle(Elastic.Clients.Elastic } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Returns the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Returns the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name, CancellationToken cancellationToken = default) { @@ -1815,9 +1877,8 @@ public virtual Task GetDataLifecycleAsync(Elastic.Clie } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Returns the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Returns the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataLifecycleAsync(GetDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1826,9 +1887,8 @@ public virtual Task GetDataLifecycleAsync(GetDataLifec } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Returns the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Returns the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2270,92 +2330,6 @@ public virtual Task GetMappingAsync(Action, GetMappingResponse, GetMappingRequestParameters>(descriptor, cancellationToken); } - /// - /// Returns an index template. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetTemplateResponse GetTemplate(GetTemplateRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - - /// - /// Returns an index template. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetTemplateAsync(GetTemplateRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync(request, cancellationToken); - } - - /// - /// Returns an index template. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetTemplateResponse GetTemplate() - { - var descriptor = new GetTemplateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// - /// Returns an index template. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetTemplateResponse GetTemplate(GetTemplateRequestDescriptor descriptor) - { - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// - /// Returns an index template. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetTemplateResponse GetTemplate(Action configureRequest) - { - var descriptor = new GetTemplateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequest(descriptor); - } - - /// - /// Returns an index template. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetTemplateAsync(CancellationToken cancellationToken = default) - { - var descriptor = new GetTemplateRequestDescriptor(); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// Returns an index template. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetTemplateAsync(GetTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) - { - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - - /// - /// Returns an index template. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual Task GetTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new GetTemplateRequestDescriptor(); - configureRequest?.Invoke(descriptor); - descriptor.BeforeRequest(); - return DoRequestAsync(descriptor, cancellationToken); - } - /// /// Provides statistics on operations happening in an index. /// Learn more about this API in the Elasticsearch documentation. @@ -2833,9 +2807,8 @@ public virtual Task PutAliasAsync(Elastic.Clients.E } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Updates the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Updates the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PutDataLifecycleResponse PutDataLifecycle(PutDataLifecycleRequest request) { @@ -2844,9 +2817,8 @@ public virtual PutDataLifecycleResponse PutDataLifecycle(PutDataLifecycleRequest } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Updates the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Updates the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataLifecycleAsync(PutDataLifecycleRequest request, CancellationToken cancellationToken = default) { @@ -2855,9 +2827,8 @@ public virtual Task PutDataLifecycleAsync(PutDataLifec } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Updates the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Updates the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PutDataLifecycleResponse PutDataLifecycle(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name) { @@ -2867,9 +2838,8 @@ public virtual PutDataLifecycleResponse PutDataLifecycle(Elastic.Clients.Elastic } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Updates the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Updates the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PutDataLifecycleResponse PutDataLifecycle(PutDataLifecycleRequestDescriptor descriptor) { @@ -2878,9 +2848,8 @@ public virtual PutDataLifecycleResponse PutDataLifecycle(PutDataLifecycleRequest } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Updates the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Updates the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PutDataLifecycleResponse PutDataLifecycle(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name, Action configureRequest) { @@ -2891,9 +2860,8 @@ public virtual PutDataLifecycleResponse PutDataLifecycle(Elastic.Clients.Elastic } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Updates the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Updates the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name, CancellationToken cancellationToken = default) { @@ -2903,9 +2871,8 @@ public virtual Task PutDataLifecycleAsync(Elastic.Clie } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Updates the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Updates the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataLifecycleAsync(PutDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2914,9 +2881,8 @@ public virtual Task PutDataLifecycleAsync(PutDataLifec } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Updates the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Updates the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataLifecycleAsync(Elastic.Clients.Elasticsearch.Serverless.DataStreamNames name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3206,9 +3172,139 @@ public virtual Task PutTemplateAsync(Elastic.Clients.Elasti return DoRequestAsync(descriptor, cancellationToken); } + /// + /// Performs the refresh operation in one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual RefreshResponse Refresh(RefreshRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// Performs the refresh operation in one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RefreshAsync(RefreshRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// Performs the refresh operation in one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual RefreshResponse Refresh() + { + var descriptor = new RefreshRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Performs the refresh operation in one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual RefreshResponse Refresh(RefreshRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Performs the refresh operation in one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual RefreshResponse Refresh(Action configureRequest) + { + var descriptor = new RefreshRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Performs the refresh operation in one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual RefreshResponse Refresh(RefreshRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, RefreshResponse, RefreshRequestParameters>(descriptor); + } + + /// + /// Performs the refresh operation in one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual RefreshResponse Refresh(Action> configureRequest) + { + var descriptor = new RefreshRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, RefreshResponse, RefreshRequestParameters>(descriptor); + } + + /// + /// Performs the refresh operation in one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RefreshAsync(CancellationToken cancellationToken = default) + { + var descriptor = new RefreshRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Performs the refresh operation in one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RefreshAsync(RefreshRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Performs the refresh operation in one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RefreshAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new RefreshRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Performs the refresh operation in one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RefreshAsync(RefreshRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, RefreshResponse, RefreshRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Performs the refresh operation in one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RefreshAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new RefreshRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, RefreshResponse, RefreshRequestParameters>(descriptor, cancellationToken); + } + /// /// Updates an alias to point to a new index when the existing index
is considered to be too large or too old.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual RolloverResponse Rollover(RolloverRequest request) { @@ -3218,7 +3314,7 @@ public virtual RolloverResponse Rollover(RolloverRequest request) /// /// Updates an alias to point to a new index when the existing index
is considered to be too large or too old.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task RolloverAsync(RolloverRequest request, CancellationToken cancellationToken = default) { @@ -3228,7 +3324,7 @@ public virtual Task RolloverAsync(RolloverRequest request, Can /// /// Updates an alias to point to a new index when the existing index
is considered to be too large or too old.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.Serverless.IndexAlias alias) { @@ -3239,7 +3335,7 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.Serverles /// /// Updates an alias to point to a new index when the existing index
is considered to be too large or too old.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual RolloverResponse Rollover(RolloverRequestDescriptor descriptor) { @@ -3249,7 +3345,7 @@ public virtual RolloverResponse Rollover(RolloverRequestDescriptor descriptor) /// /// Updates an alias to point to a new index when the existing index
is considered to be too large or too old.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.Serverless.IndexAlias alias, Action configureRequest) { @@ -3261,7 +3357,7 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.Serverles /// /// Updates an alias to point to a new index when the existing index
is considered to be too large or too old.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.Serverless.IndexAlias alias, CancellationToken cancellationToken = default) { @@ -3272,7 +3368,7 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc /// /// Updates an alias to point to a new index when the existing index
is considered to be too large or too old.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task RolloverAsync(RolloverRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3282,7 +3378,7 @@ public virtual Task RolloverAsync(RolloverRequestDescriptor de /// /// Updates an alias to point to a new index when the existing index
is considered to be too large or too old.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.Serverless.IndexAlias alias, Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs index e99c2f11d69..c1660435947 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs @@ -168,7 +168,7 @@ public virtual Task DeletePipelineAsync(Elast /// /// Returns statistical information about geoip databases - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GeoIpStatsResponse GeoIpStats(GeoIpStatsRequest request) { @@ -178,7 +178,7 @@ public virtual GeoIpStatsResponse GeoIpStats(GeoIpStatsRequest request) /// /// Returns statistical information about geoip databases - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GeoIpStatsAsync(GeoIpStatsRequest request, CancellationToken cancellationToken = default) { @@ -188,7 +188,7 @@ public virtual Task GeoIpStatsAsync(GeoIpStatsRequest reques /// /// Returns statistical information about geoip databases - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GeoIpStatsResponse GeoIpStats() { @@ -199,7 +199,7 @@ public virtual GeoIpStatsResponse GeoIpStats() /// /// Returns statistical information about geoip databases - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GeoIpStatsResponse GeoIpStats(GeoIpStatsRequestDescriptor descriptor) { @@ -209,7 +209,7 @@ public virtual GeoIpStatsResponse GeoIpStats(GeoIpStatsRequestDescriptor descrip /// /// Returns statistical information about geoip databases - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GeoIpStatsResponse GeoIpStats(Action configureRequest) { @@ -221,7 +221,7 @@ public virtual GeoIpStatsResponse GeoIpStats(Action /// /// Returns statistical information about geoip databases - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GeoIpStatsAsync(CancellationToken cancellationToken = default) { @@ -232,7 +232,7 @@ public virtual Task GeoIpStatsAsync(CancellationToken cancel /// /// Returns statistical information about geoip databases - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GeoIpStatsAsync(GeoIpStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -242,7 +242,7 @@ public virtual Task GeoIpStatsAsync(GeoIpStatsRequestDescrip /// /// Returns statistical information about geoip databases - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GeoIpStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -384,7 +384,7 @@ public virtual Task GetPipelineAsync(Action /// Returns a list of the built-in patterns. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual ProcessorGrokResponse ProcessorGrok(ProcessorGrokRequest request) { @@ -394,7 +394,7 @@ public virtual ProcessorGrokResponse ProcessorGrok(ProcessorGrokRequest request) /// /// Returns a list of the built-in patterns. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ProcessorGrokAsync(ProcessorGrokRequest request, CancellationToken cancellationToken = default) { @@ -404,7 +404,7 @@ public virtual Task ProcessorGrokAsync(ProcessorGrokReque /// /// Returns a list of the built-in patterns. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ProcessorGrokResponse ProcessorGrok() { @@ -415,7 +415,7 @@ public virtual ProcessorGrokResponse ProcessorGrok() /// /// Returns a list of the built-in patterns. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ProcessorGrokResponse ProcessorGrok(ProcessorGrokRequestDescriptor descriptor) { @@ -425,7 +425,7 @@ public virtual ProcessorGrokResponse ProcessorGrok(ProcessorGrokRequestDescripto /// /// Returns a list of the built-in patterns. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ProcessorGrokResponse ProcessorGrok(Action configureRequest) { @@ -437,7 +437,7 @@ public virtual ProcessorGrokResponse ProcessorGrok(Action /// Returns a list of the built-in patterns. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task ProcessorGrokAsync(CancellationToken cancellationToken = default) { @@ -448,7 +448,7 @@ public virtual Task ProcessorGrokAsync(CancellationToken /// /// Returns a list of the built-in patterns. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ProcessorGrokAsync(ProcessorGrokRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -458,7 +458,7 @@ public virtual Task ProcessorGrokAsync(ProcessorGrokReque /// /// Returns a list of the built-in patterns. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ProcessorGrokAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -470,7 +470,7 @@ public virtual Task ProcessorGrokAsync(Action /// Creates or updates a pipeline. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PutPipelineResponse PutPipeline(PutPipelineRequest request) { @@ -480,7 +480,7 @@ public virtual PutPipelineResponse PutPipeline(PutPipelineRequest request) /// /// Creates or updates a pipeline. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(PutPipelineRequest request, CancellationToken cancellationToken = default) { @@ -490,7 +490,7 @@ public virtual Task PutPipelineAsync(PutPipelineRequest req /// /// Creates or updates a pipeline. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PutPipelineResponse PutPipeline(PutPipelineRequestDescriptor descriptor) { @@ -500,7 +500,7 @@ public virtual PutPipelineResponse PutPipeline(PutPipelineRequestDescriptor desc /// /// Creates or updates a pipeline. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest) { @@ -512,7 +512,7 @@ public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Ser /// /// Creates or updates a pipeline. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PutPipelineResponse PutPipeline(PutPipelineRequestDescriptor descriptor) { @@ -522,7 +522,7 @@ public virtual PutPipelineResponse PutPipeline(PutPipelineRequestDesc /// /// Creates or updates a pipeline. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest) { @@ -534,7 +534,7 @@ public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasti /// /// Creates or updates a pipeline. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(PutPipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -544,7 +544,7 @@ public virtual Task PutPipelineAsync(PutPipelineRequestDesc /// /// Creates or updates a pipeline. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -556,7 +556,7 @@ public virtual Task PutPipelineAsync(Elastic.Clients.Elasti /// /// Creates or updates a pipeline. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(PutPipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -566,7 +566,7 @@ public virtual Task PutPipelineAsync(PutPipeline /// /// Creates or updates a pipeline. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Sql.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Sql.g.cs new file mode 100644 index 00000000000..43681d85dcb --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Sql.g.cs @@ -0,0 +1,622 @@ +// 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.Threading; +using System.Threading.Tasks; + +namespace Elastic.Clients.Elasticsearch.Serverless.Sql; + +public partial class SqlNamespacedClient : NamespacedClientProxy +{ + /// + /// Initializes a new instance of the class for mocking. + /// + protected SqlNamespacedClient() : base() + { + } + + internal SqlNamespacedClient(ElasticsearchClient client) : base(client) + { + } + + /// + /// Clears the SQL cursor + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ClearCursorResponse ClearCursor(ClearCursorRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// Clears the SQL cursor + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ClearCursorAsync(ClearCursorRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// Clears the SQL cursor + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ClearCursorResponse ClearCursor(ClearCursorRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Clears the SQL cursor + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ClearCursorResponse ClearCursor(Action configureRequest) + { + var descriptor = new ClearCursorRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Clears the SQL cursor + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ClearCursorAsync(ClearCursorRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Clears the SQL cursor + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ClearCursorAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ClearCursorRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteAsyncResponse DeleteAsyncSearch(DeleteAsyncRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsyncSearchAsync(DeleteAsyncRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteAsyncResponse DeleteAsyncSearch(Elastic.Clients.Elasticsearch.Serverless.Id id) + { + var descriptor = new DeleteAsyncRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteAsyncResponse DeleteAsyncSearch(DeleteAsyncRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteAsyncResponse DeleteAsyncSearch(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest) + { + var descriptor = new DeleteAsyncRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteAsyncResponse DeleteAsyncSearch(DeleteAsyncRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, DeleteAsyncResponse, DeleteAsyncRequestParameters>(descriptor); + } + + /// + /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteAsyncResponse DeleteAsyncSearch(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest) + { + var descriptor = new DeleteAsyncRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, DeleteAsyncResponse, DeleteAsyncRequestParameters>(descriptor); + } + + /// + /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsyncSearchAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteAsyncRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsyncSearchAsync(DeleteAsyncRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsyncSearchAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteAsyncRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsyncSearchAsync(DeleteAsyncRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteAsyncResponse, DeleteAsyncRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsyncSearchAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteAsyncRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteAsyncResponse, DeleteAsyncRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetAsyncResponse GetAsyncSearch(GetAsyncRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsyncSearchAsync(GetAsyncRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetAsyncResponse GetAsyncSearch(Elastic.Clients.Elasticsearch.Serverless.Id id) + { + var descriptor = new GetAsyncRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetAsyncResponse GetAsyncSearch(GetAsyncRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetAsyncResponse GetAsyncSearch(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest) + { + var descriptor = new GetAsyncRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetAsyncResponse GetAsyncSearch(GetAsyncRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, GetAsyncResponse, GetAsyncRequestParameters>(descriptor); + } + + /// + /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetAsyncResponse GetAsyncSearch(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest) + { + var descriptor = new GetAsyncRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, GetAsyncResponse, GetAsyncRequestParameters>(descriptor); + } + + /// + /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsyncSearchAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new GetAsyncRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsyncSearchAsync(GetAsyncRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsyncSearchAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetAsyncRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsyncSearchAsync(GetAsyncRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, GetAsyncResponse, GetAsyncRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsyncSearchAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetAsyncRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, GetAsyncResponse, GetAsyncRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetAsyncStatusResponse GetAsyncSearchStatus(GetAsyncStatusRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsyncSearchStatusAsync(GetAsyncStatusRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetAsyncStatusResponse GetAsyncSearchStatus(Elastic.Clients.Elasticsearch.Serverless.Id id) + { + var descriptor = new GetAsyncStatusRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetAsyncStatusResponse GetAsyncSearchStatus(GetAsyncStatusRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetAsyncStatusResponse GetAsyncSearchStatus(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest) + { + var descriptor = new GetAsyncStatusRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetAsyncStatusResponse GetAsyncSearchStatus(GetAsyncStatusRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, GetAsyncStatusResponse, GetAsyncStatusRequestParameters>(descriptor); + } + + /// + /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetAsyncStatusResponse GetAsyncSearchStatus(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest) + { + var descriptor = new GetAsyncStatusRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, GetAsyncStatusResponse, GetAsyncStatusRequestParameters>(descriptor); + } + + /// + /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsyncSearchStatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new GetAsyncStatusRequestDescriptor(id); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsyncSearchStatusAsync(GetAsyncStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsyncSearchStatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetAsyncStatusRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsyncSearchStatusAsync(GetAsyncStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, GetAsyncStatusResponse, GetAsyncStatusRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsyncSearchStatusAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetAsyncStatusRequestDescriptor(id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, GetAsyncStatusResponse, GetAsyncStatusRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Executes a SQL request + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual QueryResponse Query(QueryRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// Executes a SQL request + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryAsync(QueryRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// Executes a SQL request + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual QueryResponse Query() + { + var descriptor = new QueryRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Executes a SQL request + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual QueryResponse Query(QueryRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Executes a SQL request + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual QueryResponse Query(Action configureRequest) + { + var descriptor = new QueryRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Executes a SQL request + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual QueryResponse Query(QueryRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, QueryResponse, QueryRequestParameters>(descriptor); + } + + /// + /// Executes a SQL request + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual QueryResponse Query(Action> configureRequest) + { + var descriptor = new QueryRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, QueryResponse, QueryRequestParameters>(descriptor); + } + + /// + /// Executes a SQL request + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryAsync(CancellationToken cancellationToken = default) + { + var descriptor = new QueryRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Executes a SQL request + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryAsync(QueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Executes a SQL request + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new QueryRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Executes a SQL request + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryAsync(QueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, QueryResponse, QueryRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Executes a SQL request + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new QueryRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, QueryResponse, QueryRequestParameters>(descriptor, cancellationToken); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Tasks.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Tasks.g.cs new file mode 100644 index 00000000000..06b160e4802 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Tasks.g.cs @@ -0,0 +1,320 @@ +// 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.Threading; +using System.Threading.Tasks; + +namespace Elastic.Clients.Elasticsearch.Serverless.Tasks; + +public partial class TasksNamespacedClient : NamespacedClientProxy +{ + /// + /// Initializes a new instance of the class for mocking. + /// + protected TasksNamespacedClient() : base() + { + } + + internal TasksNamespacedClient(ElasticsearchClient client) : base(client) + { + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Cancels a task, if it can be cancelled through an API. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual CancelResponse Cancel(CancelRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Cancels a task, if it can be cancelled through an API. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CancelAsync(CancelRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Cancels a task, if it can be cancelled through an API. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual CancelResponse Cancel() + { + var descriptor = new CancelRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Cancels a task, if it can be cancelled through an API. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual CancelResponse Cancel(CancelRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Cancels a task, if it can be cancelled through an API. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual CancelResponse Cancel(Action configureRequest) + { + var descriptor = new CancelRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Cancels a task, if it can be cancelled through an API. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CancelAsync(CancellationToken cancellationToken = default) + { + var descriptor = new CancelRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Cancels a task, if it can be cancelled through an API. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CancelAsync(CancelRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Cancels a task, if it can be cancelled through an API. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CancelAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new CancelRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Returns information about a task. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetTasksResponse Get(GetTasksRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Returns information about a task. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsync(GetTasksRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Returns information about a task. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetTasksResponse Get(Elastic.Clients.Elasticsearch.Serverless.Id task_id) + { + var descriptor = new GetTasksRequestDescriptor(task_id); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Returns information about a task. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetTasksResponse Get(GetTasksRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Returns information about a task. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetTasksResponse Get(Elastic.Clients.Elasticsearch.Serverless.Id task_id, Action configureRequest) + { + var descriptor = new GetTasksRequestDescriptor(task_id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Returns information about a task. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Serverless.Id task_id, CancellationToken cancellationToken = default) + { + var descriptor = new GetTasksRequestDescriptor(task_id); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Returns information about a task. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsync(GetTasksRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Returns information about a task. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Serverless.Id task_id, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetTasksRequestDescriptor(task_id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Returns a list of tasks. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ListResponse List(ListRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Returns a list of tasks. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ListAsync(ListRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Returns a list of tasks. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ListResponse List() + { + var descriptor = new ListRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Returns a list of tasks. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ListResponse List(ListRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Returns a list of tasks. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ListResponse List(Action configureRequest) + { + var descriptor = new ListRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Returns a list of tasks. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ListAsync(CancellationToken cancellationToken = default) + { + var descriptor = new ListRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Returns a list of tasks. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ListAsync(ListRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. + /// Returns a list of tasks. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ListAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ListRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.g.cs index 387ebcd6e7b..28cbbafb7f7 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.g.cs @@ -20,9 +20,12 @@ using Elastic.Clients.Elasticsearch.Serverless.AsyncSearch; using Elastic.Clients.Elasticsearch.Serverless.Cluster; using Elastic.Clients.Elasticsearch.Serverless.Enrich; +using Elastic.Clients.Elasticsearch.Serverless.Eql; using Elastic.Clients.Elasticsearch.Serverless.Graph; using Elastic.Clients.Elasticsearch.Serverless.IndexManagement; using Elastic.Clients.Elasticsearch.Serverless.Ingest; +using Elastic.Clients.Elasticsearch.Serverless.Sql; +using Elastic.Clients.Elasticsearch.Serverless.Tasks; using System; using System.Threading; using System.Threading.Tasks; @@ -34,18 +37,21 @@ public partial class ElasticsearchClient public virtual AsyncSearchNamespacedClient AsyncSearch { get; private set; } public virtual ClusterNamespacedClient Cluster { get; private set; } public virtual EnrichNamespacedClient Enrich { get; private set; } + public virtual EqlNamespacedClient Eql { get; private set; } public virtual GraphNamespacedClient Graph { get; private set; } public virtual IndicesNamespacedClient Indices { get; private set; } public virtual IngestNamespacedClient Ingest { get; private set; } + public virtual SqlNamespacedClient Sql { get; private set; } + public virtual TasksNamespacedClient Tasks { get; private set; } private partial void SetupNamespaces() { - AsyncSearch = new AsyncSearchNamespacedClient(this); Cluster = new ClusterNamespacedClient(this); Enrich = new EnrichNamespacedClient(this); Graph = new GraphNamespacedClient(this); Indices = new IndicesNamespacedClient(this); Ingest = new IngestNamespacedClient(this); + AsyncSearch = new AsyncSearchNamespacedClient(this); Cluster = new ClusterNamespacedClient(this); Enrich = new EnrichNamespacedClient(this); Eql = new EqlNamespacedClient(this); Graph = new GraphNamespacedClient(this); Indices = new IndicesNamespacedClient(this); Ingest = new IngestNamespacedClient(this); Sql = new SqlNamespacedClient(this); Tasks = new TasksNamespacedClient(this); } /// /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual BulkResponse Bulk(BulkRequest request) { @@ -55,7 +61,7 @@ public virtual BulkResponse Bulk(BulkRequest request) /// /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(BulkRequest request, CancellationToken cancellationToken = default) { @@ -65,7 +71,7 @@ public virtual Task BulkAsync(BulkRequest request, CancellationTok /// /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual BulkResponse Bulk(BulkRequestDescriptor descriptor) { @@ -75,7 +81,7 @@ public virtual BulkResponse Bulk(BulkRequestDescriptor descriptor) /// /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual BulkResponse Bulk(Action configureRequest) { @@ -87,7 +93,7 @@ public virtual BulkResponse Bulk(Action configureRequest) /// /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual BulkResponse Bulk(BulkRequestDescriptor descriptor) { @@ -97,7 +103,7 @@ public virtual BulkResponse Bulk(BulkRequestDescriptor des /// /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual BulkResponse Bulk(Action> configureRequest) { @@ -109,7 +115,7 @@ public virtual BulkResponse Bulk(Action /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(BulkRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -119,7 +125,7 @@ public virtual Task BulkAsync(BulkRequestDescriptor descriptor, Ca /// /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -131,7 +137,7 @@ public virtual Task BulkAsync(Action config /// /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(BulkRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -141,7 +147,7 @@ public virtual Task BulkAsync(BulkRequestDescriptor /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -153,7 +159,7 @@ public virtual Task BulkAsync(Action /// Explicitly clears the search context for a scroll. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClearScrollResponse ClearScroll(ClearScrollRequest request) { @@ -163,7 +169,7 @@ public virtual ClearScrollResponse ClearScroll(ClearScrollRequest request) /// /// Explicitly clears the search context for a scroll. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(ClearScrollRequest request, CancellationToken cancellationToken = default) { @@ -173,7 +179,7 @@ public virtual Task ClearScrollAsync(ClearScrollRequest req /// /// Explicitly clears the search context for a scroll. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClearScrollResponse ClearScroll() { @@ -184,7 +190,7 @@ public virtual ClearScrollResponse ClearScroll() /// /// Explicitly clears the search context for a scroll. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClearScrollResponse ClearScroll(ClearScrollRequestDescriptor descriptor) { @@ -194,7 +200,7 @@ public virtual ClearScrollResponse ClearScroll(ClearScrollRequestDescriptor desc /// /// Explicitly clears the search context for a scroll. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClearScrollResponse ClearScroll(Action configureRequest) { @@ -206,7 +212,7 @@ public virtual ClearScrollResponse ClearScroll(Action /// Explicitly clears the search context for a scroll. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(CancellationToken cancellationToken = default) { @@ -217,7 +223,7 @@ public virtual Task ClearScrollAsync(CancellationToken canc /// /// Explicitly clears the search context for a scroll. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(ClearScrollRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -227,7 +233,7 @@ public virtual Task ClearScrollAsync(ClearScrollRequestDesc /// /// Explicitly clears the search context for a scroll. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -239,7 +245,7 @@ public virtual Task ClearScrollAsync(Action /// Close a point in time - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequest request) { @@ -249,7 +255,7 @@ public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequest /// /// Close a point in time - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(ClosePointInTimeRequest request, CancellationToken cancellationToken = default) { @@ -259,7 +265,7 @@ public virtual Task ClosePointInTimeAsync(ClosePointIn /// /// Close a point in time - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClosePointInTimeResponse ClosePointInTime() { @@ -270,7 +276,7 @@ public virtual ClosePointInTimeResponse ClosePointInTime() /// /// Close a point in time - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequestDescriptor descriptor) { @@ -280,7 +286,7 @@ public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequest /// /// Close a point in time - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClosePointInTimeResponse ClosePointInTime(Action configureRequest) { @@ -292,7 +298,7 @@ public virtual ClosePointInTimeResponse ClosePointInTime(Action /// Close a point in time - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(CancellationToken cancellationToken = default) { @@ -303,7 +309,7 @@ public virtual Task ClosePointInTimeAsync(Cancellation /// /// Close a point in time - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(ClosePointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -313,7 +319,7 @@ public virtual Task ClosePointInTimeAsync(ClosePointIn /// /// Close a point in time - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -657,6 +663,92 @@ public virtual Task DeleteByQueryAsync(Elastic return DoRequestAsync, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor, cancellationToken); } + /// + /// Changes the number of requests per second for a particular Delete By Query operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(DeleteByQueryRethrottleRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// Changes the number of requests per second for a particular Delete By Query operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteByQueryRethrottleAsync(DeleteByQueryRethrottleRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// Changes the number of requests per second for a particular Delete By Query operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(Elastic.Clients.Elasticsearch.Serverless.TaskId task_id) + { + var descriptor = new DeleteByQueryRethrottleRequestDescriptor(task_id); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Changes the number of requests per second for a particular Delete By Query operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(DeleteByQueryRethrottleRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Changes the number of requests per second for a particular Delete By Query operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(Elastic.Clients.Elasticsearch.Serverless.TaskId task_id, Action configureRequest) + { + var descriptor = new DeleteByQueryRethrottleRequestDescriptor(task_id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Changes the number of requests per second for a particular Delete By Query operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteByQueryRethrottleAsync(Elastic.Clients.Elasticsearch.Serverless.TaskId task_id, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteByQueryRethrottleRequestDescriptor(task_id); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Changes the number of requests per second for a particular Delete By Query operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteByQueryRethrottleAsync(DeleteByQueryRethrottleRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Changes the number of requests per second for a particular Delete By Query operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteByQueryRethrottleAsync(Elastic.Clients.Elasticsearch.Serverless.TaskId task_id, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteByQueryRethrottleRequestDescriptor(task_id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + /// /// Removes a document from the index. /// Learn more about this API in the Elasticsearch documentation. @@ -1315,6 +1407,138 @@ public virtual Task ExistsSourceAsync(Elastic.C return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor, cancellationToken); } + /// + /// Returns information about why a specific matches (or doesn't match) a query. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExplainResponse Explain(ExplainRequest request) + { + request.BeforeRequest(); + return DoRequest, ExplainRequestParameters>(request); + } + + /// + /// Returns information about why a specific matches (or doesn't match) a query. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> ExplainAsync(ExplainRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync, ExplainRequestParameters>(request, cancellationToken); + } + + /// + /// Returns information about why a specific matches (or doesn't match) a query. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExplainResponse Explain(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id) + { + var descriptor = new ExplainRequestDescriptor(index, id); + descriptor.BeforeRequest(); + return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); + } + + /// + /// Returns information about why a specific matches (or doesn't match) a query. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExplainResponse Explain(ExplainRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); + } + + /// + /// Returns information about why a specific matches (or doesn't match) a query. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExplainResponse Explain(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest) + { + var descriptor = new ExplainRequestDescriptor(index, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); + } + + /// + /// Returns information about why a specific matches (or doesn't match) a query. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExplainResponse Explain(Elastic.Clients.Elasticsearch.Serverless.Id id) + { + var descriptor = new ExplainRequestDescriptor(typeof(TDocument), id); + descriptor.BeforeRequest(); + return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); + } + + /// + /// Returns information about why a specific matches (or doesn't match) a query. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExplainResponse Explain(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest) + { + var descriptor = new ExplainRequestDescriptor(typeof(TDocument), id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); + } + + /// + /// Returns information about why a specific matches (or doesn't match) a query. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> ExplainAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new ExplainRequestDescriptor(index, id); + descriptor.BeforeRequest(); + return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns information about why a specific matches (or doesn't match) a query. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> ExplainAsync(ExplainRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns information about why a specific matches (or doesn't match) a query. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> ExplainAsync(Elastic.Clients.Elasticsearch.Serverless.IndexName index, Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExplainRequestDescriptor(index, id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns information about why a specific matches (or doesn't match) a query. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> ExplainAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, CancellationToken cancellationToken = default) + { + var descriptor = new ExplainRequestDescriptor(typeof(TDocument), id); + descriptor.BeforeRequest(); + return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Returns information about why a specific matches (or doesn't match) a query. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> ExplainAsync(Elastic.Clients.Elasticsearch.Serverless.Id id, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExplainRequestDescriptor(typeof(TDocument), id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); + } + /// /// Returns the information about the capabilities of fields among multiple indices. /// Learn more about this API in the Elasticsearch documentation. @@ -2403,7 +2627,7 @@ public virtual Task MultiTermVectorsAsync(A /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequest request) { @@ -2413,7 +2637,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequest re /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequest request, CancellationToken cancellationToken = default) { @@ -2423,7 +2647,7 @@ public virtual Task OpenPointInTimeAsync(OpenPointInTim /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Serverless.Indices indices) { @@ -2434,7 +2658,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticse /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequestDescriptor descriptor) { @@ -2444,7 +2668,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequestDes /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest) { @@ -2456,7 +2680,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticse /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequestDescriptor descriptor) { @@ -2466,7 +2690,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTim /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest) { @@ -2478,7 +2702,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Client /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, CancellationToken cancellationToken = default) { @@ -2489,7 +2713,7 @@ public virtual Task OpenPointInTimeAsync(Elastic.Client /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2499,7 +2723,7 @@ public virtual Task OpenPointInTimeAsync(OpenPointInTim /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2511,7 +2735,7 @@ public virtual Task OpenPointInTimeAsync(Elastic.Client /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2521,7 +2745,7 @@ public virtual Task OpenPointInTimeAsync(Ope /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Serverless.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2855,6 +3079,200 @@ public virtual Task RankEvalAsync(Action, RankEvalResponse, RankEvalRequestParameters>(descriptor, cancellationToken); } + /// + /// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
+ public virtual ReindexResponse Reindex(ReindexRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
+ public virtual Task ReindexAsync(ReindexRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
+ public virtual ReindexResponse Reindex(ReindexRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
+ public virtual ReindexResponse Reindex(Action configureRequest) + { + var descriptor = new ReindexRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
+ public virtual ReindexResponse Reindex(ReindexRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, ReindexResponse, ReindexRequestParameters>(descriptor); + } + + /// + /// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
+ public virtual ReindexResponse Reindex(Action> configureRequest) + { + var descriptor = new ReindexRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, ReindexResponse, ReindexRequestParameters>(descriptor); + } + + /// + /// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
+ public virtual Task ReindexAsync(ReindexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
+ public virtual Task ReindexAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ReindexRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
+ public virtual Task ReindexAsync(ReindexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, ReindexResponse, ReindexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
+ public virtual Task ReindexAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ReindexRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ReindexResponse, ReindexRequestParameters>(descriptor, cancellationToken); + } + + /// + /// Changes the number of requests per second for a particular Reindex operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ReindexRethrottleResponse ReindexRethrottle(ReindexRethrottleRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// Changes the number of requests per second for a particular Reindex operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ReindexRethrottleAsync(ReindexRethrottleRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// Changes the number of requests per second for a particular Reindex operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ReindexRethrottleResponse ReindexRethrottle(Elastic.Clients.Elasticsearch.Serverless.Id task_id) + { + var descriptor = new ReindexRethrottleRequestDescriptor(task_id); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Changes the number of requests per second for a particular Reindex operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ReindexRethrottleResponse ReindexRethrottle(ReindexRethrottleRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Changes the number of requests per second for a particular Reindex operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ReindexRethrottleResponse ReindexRethrottle(Elastic.Clients.Elasticsearch.Serverless.Id task_id, Action configureRequest) + { + var descriptor = new ReindexRethrottleRequestDescriptor(task_id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Changes the number of requests per second for a particular Reindex operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ReindexRethrottleAsync(Elastic.Clients.Elasticsearch.Serverless.Id task_id, CancellationToken cancellationToken = default) + { + var descriptor = new ReindexRethrottleRequestDescriptor(task_id); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Changes the number of requests per second for a particular Reindex operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ReindexRethrottleAsync(ReindexRethrottleRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Changes the number of requests per second for a particular Reindex operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ReindexRethrottleAsync(Elastic.Clients.Elasticsearch.Serverless.Id task_id, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ReindexRethrottleRequestDescriptor(task_id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + /// /// Allows to use the Mustache language to pre-render a search definition. /// Learn more about this API in the Elasticsearch documentation. @@ -3681,6 +4099,92 @@ public virtual Task UpdateByQueryAsync(Elastic return DoRequestAsync, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor, cancellationToken); } + /// + /// Changes the number of requests per second for a particular Update By Query operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(UpdateByQueryRethrottleRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// Changes the number of requests per second for a particular Update By Query operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task UpdateByQueryRethrottleAsync(UpdateByQueryRethrottleRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// Changes the number of requests per second for a particular Update By Query operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(Elastic.Clients.Elasticsearch.Serverless.Id task_id) + { + var descriptor = new UpdateByQueryRethrottleRequestDescriptor(task_id); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Changes the number of requests per second for a particular Update By Query operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(UpdateByQueryRethrottleRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Changes the number of requests per second for a particular Update By Query operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(Elastic.Clients.Elasticsearch.Serverless.Id task_id, Action configureRequest) + { + var descriptor = new UpdateByQueryRethrottleRequestDescriptor(task_id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Changes the number of requests per second for a particular Update By Query operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task UpdateByQueryRethrottleAsync(Elastic.Clients.Elasticsearch.Serverless.Id task_id, CancellationToken cancellationToken = default) + { + var descriptor = new UpdateByQueryRethrottleRequestDescriptor(task_id); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Changes the number of requests per second for a particular Update By Query operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task UpdateByQueryRethrottleAsync(UpdateByQueryRethrottleRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + + /// + /// Changes the number of requests per second for a particular Update By Query operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task UpdateByQueryRethrottleAsync(Elastic.Clients.Elasticsearch.Serverless.Id task_id, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new UpdateByQueryRethrottleRequestDescriptor(task_id); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor, cancellationToken); + } + /// /// Updates a document with a script or partial document. /// Learn more about this API in the Elasticsearch documentation. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ClusterStatistics.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ClusterStatistics.g.cs index dab06b8add2..6c1e37d86e0 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ClusterStatistics.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/ClusterStatistics.g.cs @@ -31,6 +31,12 @@ public sealed partial class ClusterStatistics { [JsonInclude, JsonPropertyName("details")] public IReadOnlyDictionary? Details { get; init; } + [JsonInclude, JsonPropertyName("failed")] + public int Failed { get; init; } + [JsonInclude, JsonPropertyName("partial")] + public int Partial { get; init; } + [JsonInclude, JsonPropertyName("running")] + public int Running { get; init; } [JsonInclude, JsonPropertyName("skipped")] public int Skipped { get; init; } [JsonInclude, JsonPropertyName("successful")] diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Bulk/ResponseItem.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Bulk/ResponseItem.g.cs index 3fb4ee404b4..d5047c92e37 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Bulk/ResponseItem.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Bulk/ResponseItem.g.cs @@ -30,26 +30,61 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.Bulk; public abstract partial class ResponseItem { + /// + /// The document ID associated with the operation. + /// [JsonInclude, JsonPropertyName("_id")] public string? Id { get; init; } + + /// + /// Name of the index associated with the operation.
If the operation targeted a data stream, this is the backing index into which the document was written.
+ ///
[JsonInclude, JsonPropertyName("_index")] public string Index { get; init; } + + /// + /// The primary term assigned to the document for the operation. + /// [JsonInclude, JsonPropertyName("_primary_term")] public long? PrimaryTerm { get; init; } + + /// + /// The sequence number assigned to the document for the operation.
Sequence numbers are used to ensure an older version of a document doesn’t overwrite a newer version.
+ ///
[JsonInclude, JsonPropertyName("_seq_no")] public long? SeqNo { get; init; } + + /// + /// Contains shard information for the operation. + /// [JsonInclude, JsonPropertyName("_shards")] public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics? Shards { get; init; } + + /// + /// The document version associated with the operation.
The document version is incremented each time the document is updated.
+ ///
[JsonInclude, JsonPropertyName("_version")] public long? Version { get; init; } + + /// + /// Contains additional information about the failed operation.
The parameter is only returned for failed operations.
+ ///
[JsonInclude, JsonPropertyName("error")] public Elastic.Clients.Elasticsearch.Serverless.ErrorCause? Error { get; init; } [JsonInclude, JsonPropertyName("forced_refresh")] public bool? ForcedRefresh { get; init; } [JsonInclude, JsonPropertyName("get")] public Elastic.Clients.Elasticsearch.Serverless.InlineGet? Get { get; init; } + + /// + /// Result of the operation.
Successful values are `created`, `deleted`, and `updated`.
+ ///
[JsonInclude, JsonPropertyName("result")] public string? Result { get; init; } + + /// + /// HTTP status code returned for the operation. + /// [JsonInclude, JsonPropertyName("status")] public int Status { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MSearchTemplate/TemplateConfig.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MSearchTemplate/TemplateConfig.g.cs index 9ac5856c7e1..568a3c12230 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MSearchTemplate/TemplateConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/MSearchTemplate/TemplateConfig.g.cs @@ -29,6 +29,9 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.MSearchTemplate; public sealed partial class TemplateConfig { + /// + /// If `true`, returns detailed information about score calculation as part of each hit. + /// [JsonInclude, JsonPropertyName("explain")] public bool? Explain { get; set; } @@ -37,8 +40,16 @@ public sealed partial class TemplateConfig ///
[JsonInclude, JsonPropertyName("id")] public Elastic.Clients.Elasticsearch.Serverless.Id? Id { get; set; } + + /// + /// Key-value pairs used to replace Mustache variables in the template.
The key is the variable name.
The value is the variable value.
+ ///
[JsonInclude, JsonPropertyName("params")] public IDictionary? Params { get; set; } + + /// + /// If `true`, the query execution is profiled. + /// [JsonInclude, JsonPropertyName("profile")] public bool? Profile { get; set; } @@ -63,6 +74,9 @@ public TemplateConfigDescriptor() : base() private bool? ProfileValue { get; set; } private string? SourceValue { get; set; } + /// + /// If `true`, returns detailed information about score calculation as part of each hit. + /// public TemplateConfigDescriptor Explain(bool? explain = true) { ExplainValue = explain; @@ -78,12 +92,18 @@ public TemplateConfigDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? return Self; } + /// + /// Key-value pairs used to replace Mustache variables in the template.
The key is the variable name.
The value is the variable value.
+ ///
public TemplateConfigDescriptor Params(Func, FluentDictionary> selector) { ParamsValue = selector?.Invoke(new FluentDictionary()); return Self; } + /// + /// If `true`, the query execution is profiled. + /// public TemplateConfigDescriptor Profile(bool? profile = true) { ProfileValue = profile; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Mtermvectors/MultiTermVectorsOperation.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Mtermvectors/MultiTermVectorsOperation.g.cs index 484e35a782e..d8f4f6ea9df 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Mtermvectors/MultiTermVectorsOperation.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Mtermvectors/MultiTermVectorsOperation.g.cs @@ -29,30 +29,81 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.Mtermvectors; public sealed partial class MultiTermVectorsOperation { + /// + /// The ID of the document. + /// [JsonInclude, JsonPropertyName("_id")] public Elastic.Clients.Elasticsearch.Serverless.Id Id { get; set; } + + /// + /// The index of the document. + /// [JsonInclude, JsonPropertyName("_index")] public Elastic.Clients.Elasticsearch.Serverless.IndexName? Index { get; set; } + + /// + /// An artificial document (a document not present in the index) for which you want to retrieve term vectors. + /// [JsonInclude, JsonPropertyName("doc")] public object? Doc { get; set; } + + /// + /// If `true`, the response includes the document count, sum of document frequencies, and sum of total term frequencies. + /// [JsonInclude, JsonPropertyName("field_statistics")] public bool? FieldStatistics { get; set; } + + /// + /// Comma-separated list or wildcard expressions of fields to include in the statistics.
Used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters.
+ ///
[JsonInclude, JsonPropertyName("fields")] public Elastic.Clients.Elasticsearch.Serverless.Fields? Fields { get; set; } + + /// + /// Filter terms based on their tf-idf scores. + /// [JsonInclude, JsonPropertyName("filter")] public Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors.Filter? Filter { get; set; } + + /// + /// If `true`, the response includes term offsets. + /// [JsonInclude, JsonPropertyName("offsets")] public bool? Offsets { get; set; } + + /// + /// If `true`, the response includes term payloads. + /// [JsonInclude, JsonPropertyName("payloads")] public bool? Payloads { get; set; } + + /// + /// If `true`, the response includes term positions. + /// [JsonInclude, JsonPropertyName("positions")] public bool? Positions { get; set; } + + /// + /// Custom value used to route operations to a specific shard. + /// [JsonInclude, JsonPropertyName("routing")] public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get; set; } + + /// + /// If true, the response includes term frequency and document frequency. + /// [JsonInclude, JsonPropertyName("term_statistics")] public bool? TermStatistics { get; set; } + + /// + /// If `true`, returns the document version as part of a hit. + /// [JsonInclude, JsonPropertyName("version")] public long? Version { get; set; } + + /// + /// Specific version type. + /// [JsonInclude, JsonPropertyName("version_type")] public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get; set; } } @@ -81,36 +132,54 @@ public MultiTermVectorsOperationDescriptor() : base() private long? VersionValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionTypeValue { get; set; } + /// + /// The ID of the document. + /// public MultiTermVectorsOperationDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) { IdValue = id; return Self; } + /// + /// The index of the document. + /// public MultiTermVectorsOperationDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) { IndexValue = index; return Self; } + /// + /// An artificial document (a document not present in the index) for which you want to retrieve term vectors. + /// public MultiTermVectorsOperationDescriptor Doc(object? doc) { DocValue = doc; return Self; } + /// + /// If `true`, the response includes the document count, sum of document frequencies, and sum of total term frequencies. + /// public MultiTermVectorsOperationDescriptor FieldStatistics(bool? fieldStatistics = true) { FieldStatisticsValue = fieldStatistics; return Self; } + /// + /// Comma-separated list or wildcard expressions of fields to include in the statistics.
Used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters.
+ ///
public MultiTermVectorsOperationDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) { FieldsValue = fields; return Self; } + /// + /// Filter terms based on their tf-idf scores. + /// public MultiTermVectorsOperationDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors.Filter? filter) { FilterDescriptor = null; @@ -135,42 +204,63 @@ public MultiTermVectorsOperationDescriptor Filter(Action + /// If `true`, the response includes term offsets. + ///
public MultiTermVectorsOperationDescriptor Offsets(bool? offsets = true) { OffsetsValue = offsets; return Self; } + /// + /// If `true`, the response includes term payloads. + /// public MultiTermVectorsOperationDescriptor Payloads(bool? payloads = true) { PayloadsValue = payloads; return Self; } + /// + /// If `true`, the response includes term positions. + /// public MultiTermVectorsOperationDescriptor Positions(bool? positions = true) { PositionsValue = positions; return Self; } + /// + /// Custom value used to route operations to a specific shard. + /// public MultiTermVectorsOperationDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) { RoutingValue = routing; return Self; } + /// + /// If true, the response includes term frequency and document frequency. + /// public MultiTermVectorsOperationDescriptor TermStatistics(bool? termStatistics = true) { TermStatisticsValue = termStatistics; return Self; } + /// + /// If `true`, returns the document version as part of a hit. + /// public MultiTermVectorsOperationDescriptor Version(long? version) { VersionValue = version; return Self; } + /// + /// Specific version type. + /// public MultiTermVectorsOperationDescriptor VersionType(Elastic.Clients.Elasticsearch.Serverless.VersionType? versionType) { VersionTypeValue = versionType; @@ -292,36 +382,54 @@ public MultiTermVectorsOperationDescriptor() : base() private long? VersionValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionTypeValue { get; set; } + /// + /// The ID of the document. + /// public MultiTermVectorsOperationDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id id) { IdValue = id; return Self; } + /// + /// The index of the document. + /// public MultiTermVectorsOperationDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName? index) { IndexValue = index; return Self; } + /// + /// An artificial document (a document not present in the index) for which you want to retrieve term vectors. + /// public MultiTermVectorsOperationDescriptor Doc(object? doc) { DocValue = doc; return Self; } + /// + /// If `true`, the response includes the document count, sum of document frequencies, and sum of total term frequencies. + /// public MultiTermVectorsOperationDescriptor FieldStatistics(bool? fieldStatistics = true) { FieldStatisticsValue = fieldStatistics; return Self; } + /// + /// Comma-separated list or wildcard expressions of fields to include in the statistics.
Used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters.
+ ///
public MultiTermVectorsOperationDescriptor Fields(Elastic.Clients.Elasticsearch.Serverless.Fields? fields) { FieldsValue = fields; return Self; } + /// + /// Filter terms based on their tf-idf scores. + /// public MultiTermVectorsOperationDescriptor Filter(Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors.Filter? filter) { FilterDescriptor = null; @@ -346,42 +454,63 @@ public MultiTermVectorsOperationDescriptor Filter(Action + /// If `true`, the response includes term offsets. + ///
public MultiTermVectorsOperationDescriptor Offsets(bool? offsets = true) { OffsetsValue = offsets; return Self; } + /// + /// If `true`, the response includes term payloads. + /// public MultiTermVectorsOperationDescriptor Payloads(bool? payloads = true) { PayloadsValue = payloads; return Self; } + /// + /// If `true`, the response includes term positions. + /// public MultiTermVectorsOperationDescriptor Positions(bool? positions = true) { PositionsValue = positions; return Self; } + /// + /// Custom value used to route operations to a specific shard. + /// public MultiTermVectorsOperationDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) { RoutingValue = routing; return Self; } + /// + /// If true, the response includes term frequency and document frequency. + /// public MultiTermVectorsOperationDescriptor TermStatistics(bool? termStatistics = true) { TermStatisticsValue = termStatistics; return Self; } + /// + /// If `true`, returns the document version as part of a hit. + /// public MultiTermVectorsOperationDescriptor Version(long? version) { VersionValue = version; return Self; } + /// + /// Specific version type. + /// public MultiTermVectorsOperationDescriptor VersionType(Elastic.Clients.Elasticsearch.Serverless.VersionType? versionType) { VersionTypeValue = versionType; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Reindex/Destination.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Reindex/Destination.g.cs new file mode 100644 index 00000000000..67fa69e84f3 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Reindex/Destination.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 Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Core.Reindex; + +public sealed partial class Destination +{ + /// + /// The name of the data stream, index, or index alias you are copying to. + /// + [JsonInclude, JsonPropertyName("index")] + public Elastic.Clients.Elasticsearch.Serverless.IndexName Index { get; set; } + + /// + /// Set to `create` to only index documents that do not already exist.
Important: To reindex to a data stream destination, this argument must be `create`.
+ ///
+ [JsonInclude, JsonPropertyName("op_type")] + public Elastic.Clients.Elasticsearch.Serverless.OpType? OpType { get; set; } + + /// + /// The name of the pipeline to use. + /// + [JsonInclude, JsonPropertyName("pipeline")] + public string? Pipeline { get; set; } + + /// + /// By default, a document's routing is preserved unless it’s changed by the script.
Set to `discard` to set routing to `null`, or `=value` to route using the specified `value`.
+ ///
+ [JsonInclude, JsonPropertyName("routing")] + public Elastic.Clients.Elasticsearch.Serverless.Routing? Routing { get; set; } + + /// + /// The versioning to use for the indexing operation. + /// + [JsonInclude, JsonPropertyName("version_type")] + public Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionType { get; set; } +} + +public sealed partial class DestinationDescriptor : SerializableDescriptor +{ + internal DestinationDescriptor(Action configure) => configure.Invoke(this); + + public DestinationDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Serverless.IndexName IndexValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.OpType? OpTypeValue { get; set; } + private string? PipelineValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Routing? RoutingValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.VersionType? VersionTypeValue { get; set; } + + /// + /// The name of the data stream, index, or index alias you are copying to. + /// + public DestinationDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.IndexName index) + { + IndexValue = index; + return Self; + } + + /// + /// Set to `create` to only index documents that do not already exist.
Important: To reindex to a data stream destination, this argument must be `create`.
+ ///
+ public DestinationDescriptor OpType(Elastic.Clients.Elasticsearch.Serverless.OpType? opType) + { + OpTypeValue = opType; + return Self; + } + + /// + /// The name of the pipeline to use. + /// + public DestinationDescriptor Pipeline(string? pipeline) + { + PipelineValue = pipeline; + return Self; + } + + /// + /// By default, a document's routing is preserved unless it’s changed by the script.
Set to `discard` to set routing to `null`, or `=value` to route using the specified `value`.
+ ///
+ public DestinationDescriptor Routing(Elastic.Clients.Elasticsearch.Serverless.Routing? routing) + { + RoutingValue = routing; + return Self; + } + + /// + /// The versioning to use for the indexing operation. + /// + public DestinationDescriptor VersionType(Elastic.Clients.Elasticsearch.Serverless.VersionType? versionType) + { + VersionTypeValue = versionType; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("index"); + JsonSerializer.Serialize(writer, IndexValue, options); + if (OpTypeValue is not null) + { + writer.WritePropertyName("op_type"); + JsonSerializer.Serialize(writer, OpTypeValue, options); + } + + if (!string.IsNullOrEmpty(PipelineValue)) + { + writer.WritePropertyName("pipeline"); + writer.WriteStringValue(PipelineValue); + } + + if (RoutingValue is not null) + { + writer.WritePropertyName("routing"); + JsonSerializer.Serialize(writer, RoutingValue, options); + } + + if (VersionTypeValue is not null) + { + writer.WritePropertyName("version_type"); + JsonSerializer.Serialize(writer, VersionTypeValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Reindex/RemoteSource.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Reindex/RemoteSource.g.cs new file mode 100644 index 00000000000..94db6f6823f --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Reindex/RemoteSource.g.cs @@ -0,0 +1,175 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Core.Reindex; + +public sealed partial class RemoteSource +{ + /// + /// The remote connection timeout.
Defaults to 30 seconds.
+ ///
+ [JsonInclude, JsonPropertyName("connect_timeout")] + public Elastic.Clients.Elasticsearch.Serverless.Duration? ConnectTimeout { get; set; } + + /// + /// An object containing the headers of the request. + /// + [JsonInclude, JsonPropertyName("headers")] + public IDictionary? Headers { get; set; } + + /// + /// The URL for the remote instance of Elasticsearch that you want to index from. + /// + [JsonInclude, JsonPropertyName("host")] + public string Host { get; set; } + + /// + /// The password to use for authentication with the remote host. + /// + [JsonInclude, JsonPropertyName("password")] + public string? Password { get; set; } + + /// + /// The remote socket read timeout. Defaults to 30 seconds. + /// + [JsonInclude, JsonPropertyName("socket_timeout")] + public Elastic.Clients.Elasticsearch.Serverless.Duration? SocketTimeout { get; set; } + + /// + /// The username to use for authentication with the remote host. + /// + [JsonInclude, JsonPropertyName("username")] + public Elastic.Clients.Elasticsearch.Serverless.Username? Username { get; set; } +} + +public sealed partial class RemoteSourceDescriptor : SerializableDescriptor +{ + internal RemoteSourceDescriptor(Action configure) => configure.Invoke(this); + + public RemoteSourceDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Serverless.Duration? ConnectTimeoutValue { get; set; } + private IDictionary? HeadersValue { get; set; } + private string HostValue { get; set; } + private string? PasswordValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Duration? SocketTimeoutValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Username? UsernameValue { get; set; } + + /// + /// The remote connection timeout.
Defaults to 30 seconds.
+ ///
+ public RemoteSourceDescriptor ConnectTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? connectTimeout) + { + ConnectTimeoutValue = connectTimeout; + return Self; + } + + /// + /// An object containing the headers of the request. + /// + public RemoteSourceDescriptor Headers(Func, FluentDictionary> selector) + { + HeadersValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + /// + /// The URL for the remote instance of Elasticsearch that you want to index from. + /// + public RemoteSourceDescriptor Host(string host) + { + HostValue = host; + return Self; + } + + /// + /// The password to use for authentication with the remote host. + /// + public RemoteSourceDescriptor Password(string? password) + { + PasswordValue = password; + return Self; + } + + /// + /// The remote socket read timeout. Defaults to 30 seconds. + /// + public RemoteSourceDescriptor SocketTimeout(Elastic.Clients.Elasticsearch.Serverless.Duration? socketTimeout) + { + SocketTimeoutValue = socketTimeout; + return Self; + } + + /// + /// The username to use for authentication with the remote host. + /// + public RemoteSourceDescriptor Username(Elastic.Clients.Elasticsearch.Serverless.Username? username) + { + UsernameValue = username; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ConnectTimeoutValue is not null) + { + writer.WritePropertyName("connect_timeout"); + JsonSerializer.Serialize(writer, ConnectTimeoutValue, options); + } + + if (HeadersValue is not null) + { + writer.WritePropertyName("headers"); + JsonSerializer.Serialize(writer, HeadersValue, options); + } + + writer.WritePropertyName("host"); + JsonSerializer.Serialize(writer, HostValue, options); + if (PasswordValue is not null) + { + writer.WritePropertyName("password"); + JsonSerializer.Serialize(writer, PasswordValue, options); + } + + if (SocketTimeoutValue is not null) + { + writer.WritePropertyName("socket_timeout"); + JsonSerializer.Serialize(writer, SocketTimeoutValue, options); + } + + if (UsernameValue is not null) + { + writer.WritePropertyName("username"); + JsonSerializer.Serialize(writer, UsernameValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Reindex/Source.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Reindex/Source.g.cs new file mode 100644 index 00000000000..1028fb67b43 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Reindex/Source.g.cs @@ -0,0 +1,631 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Core.Reindex; + +public sealed partial class Source +{ + /// + /// If `true` reindexes all source fields.
Set to a list to reindex select fields.
+ ///
+ [JsonInclude, JsonPropertyName("_source")] + public Elastic.Clients.Elasticsearch.Serverless.Fields? SourceFields { get; set; } + + /// + /// The name of the data stream, index, or alias you are copying from.
Accepts a comma-separated list to reindex from multiple sources.
+ ///
+ [JsonInclude, JsonPropertyName("index")] + public Elastic.Clients.Elasticsearch.Serverless.Indices Index { get; set; } + + /// + /// Specifies the documents to reindex using the Query DSL. + /// + [JsonInclude, JsonPropertyName("query")] + public Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? Query { get; set; } + + /// + /// A remote instance of Elasticsearch that you want to index from. + /// + [JsonInclude, JsonPropertyName("remote")] + public Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.RemoteSource? Remote { get; set; } + [JsonInclude, JsonPropertyName("runtime_mappings")] + public IDictionary? RuntimeMappings { get; set; } + + /// + /// The number of documents to index per batch.
Use when indexing from remote to ensure that the batches fit within the on-heap buffer, which defaults to a maximum size of 100 MB.
+ ///
+ [JsonInclude, JsonPropertyName("size")] + public int? Size { get; set; } + + /// + /// Slice the reindex request manually using the provided slice ID and total number of slices. + /// + [JsonInclude, JsonPropertyName("slice")] + public Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? Slice { get; set; } + [JsonInclude, JsonPropertyName("sort"), SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.SortOptions))] + public ICollection? Sort { get; set; } +} + +public sealed partial class SourceDescriptor : SerializableDescriptor> +{ + internal SourceDescriptor(Action> configure) => configure.Invoke(this); + + public SourceDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } + private QueryDsl.QueryDescriptor QueryDescriptor { get; set; } + private Action> QueryDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? SliceValue { get; set; } + private SlicedScrollDescriptor SliceDescriptor { get; set; } + private Action> SliceDescriptorAction { get; set; } + private ICollection? SortValue { get; set; } + private SortOptionsDescriptor SortDescriptor { get; set; } + private Action> SortDescriptorAction { get; set; } + private Action>[] SortDescriptorActions { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Fields? SourceFieldsValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Indices IndexValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.RemoteSource? RemoteValue { get; set; } + private RemoteSourceDescriptor RemoteDescriptor { get; set; } + private Action RemoteDescriptorAction { get; set; } + private IDictionary? RuntimeMappingsValue { get; set; } + private int? SizeValue { get; set; } + + /// + /// Specifies the documents to reindex using the Query DSL. + /// + public SourceDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) + { + QueryDescriptor = null; + QueryDescriptorAction = null; + QueryValue = query; + return Self; + } + + public SourceDescriptor Query(QueryDsl.QueryDescriptor descriptor) + { + QueryValue = null; + QueryDescriptorAction = null; + QueryDescriptor = descriptor; + return Self; + } + + public SourceDescriptor Query(Action> configure) + { + QueryValue = null; + QueryDescriptor = null; + QueryDescriptorAction = configure; + return Self; + } + + /// + /// Slice the reindex request manually using the provided slice ID and total number of slices. + /// + public SourceDescriptor Slice(Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? slice) + { + SliceDescriptor = null; + SliceDescriptorAction = null; + SliceValue = slice; + return Self; + } + + public SourceDescriptor Slice(SlicedScrollDescriptor descriptor) + { + SliceValue = null; + SliceDescriptorAction = null; + SliceDescriptor = descriptor; + return Self; + } + + public SourceDescriptor Slice(Action> configure) + { + SliceValue = null; + SliceDescriptor = null; + SliceDescriptorAction = configure; + return Self; + } + + public SourceDescriptor Sort(ICollection? sort) + { + SortDescriptor = null; + SortDescriptorAction = null; + SortDescriptorActions = null; + SortValue = sort; + return Self; + } + + public SourceDescriptor Sort(SortOptionsDescriptor descriptor) + { + SortValue = null; + SortDescriptorAction = null; + SortDescriptorActions = null; + SortDescriptor = descriptor; + return Self; + } + + public SourceDescriptor Sort(Action> configure) + { + SortValue = null; + SortDescriptor = null; + SortDescriptorActions = null; + SortDescriptorAction = configure; + return Self; + } + + public SourceDescriptor Sort(params Action>[] configure) + { + SortValue = null; + SortDescriptor = null; + SortDescriptorAction = null; + SortDescriptorActions = configure; + return Self; + } + + /// + /// If `true` reindexes all source fields.
Set to a list to reindex select fields.
+ ///
+ public SourceDescriptor SourceFields(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceFields) + { + SourceFieldsValue = sourceFields; + return Self; + } + + /// + /// The name of the data stream, index, or alias you are copying from.
Accepts a comma-separated list to reindex from multiple sources.
+ ///
+ public SourceDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.Indices index) + { + IndexValue = index; + return Self; + } + + /// + /// A remote instance of Elasticsearch that you want to index from. + /// + public SourceDescriptor Remote(Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.RemoteSource? remote) + { + RemoteDescriptor = null; + RemoteDescriptorAction = null; + RemoteValue = remote; + return Self; + } + + public SourceDescriptor Remote(RemoteSourceDescriptor descriptor) + { + RemoteValue = null; + RemoteDescriptorAction = null; + RemoteDescriptor = descriptor; + return Self; + } + + public SourceDescriptor Remote(Action configure) + { + RemoteValue = null; + RemoteDescriptor = null; + RemoteDescriptorAction = configure; + return Self; + } + + public SourceDescriptor RuntimeMappings(Func, FluentDictionary> selector) + { + RuntimeMappingsValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + /// + /// The number of documents to index per batch.
Use when indexing from remote to ensure that the batches fit within the on-heap buffer, which defaults to a maximum size of 100 MB.
+ ///
+ public SourceDescriptor Size(int? size) + { + SizeValue = size; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (QueryDescriptor is not null) + { + writer.WritePropertyName("query"); + JsonSerializer.Serialize(writer, QueryDescriptor, options); + } + else if (QueryDescriptorAction is not null) + { + writer.WritePropertyName("query"); + JsonSerializer.Serialize(writer, new QueryDsl.QueryDescriptor(QueryDescriptorAction), options); + } + else if (QueryValue is not null) + { + writer.WritePropertyName("query"); + JsonSerializer.Serialize(writer, QueryValue, options); + } + + if (SliceDescriptor is not null) + { + writer.WritePropertyName("slice"); + JsonSerializer.Serialize(writer, SliceDescriptor, options); + } + else if (SliceDescriptorAction is not null) + { + writer.WritePropertyName("slice"); + JsonSerializer.Serialize(writer, new SlicedScrollDescriptor(SliceDescriptorAction), options); + } + else if (SliceValue is not null) + { + writer.WritePropertyName("slice"); + JsonSerializer.Serialize(writer, SliceValue, options); + } + + if (SortDescriptor is not null) + { + writer.WritePropertyName("sort"); + JsonSerializer.Serialize(writer, SortDescriptor, options); + } + else if (SortDescriptorAction is not null) + { + writer.WritePropertyName("sort"); + JsonSerializer.Serialize(writer, new SortOptionsDescriptor(SortDescriptorAction), options); + } + else if (SortDescriptorActions is not null) + { + writer.WritePropertyName("sort"); + if (SortDescriptorActions.Length > 1) + writer.WriteStartArray(); + foreach (var action in SortDescriptorActions) + { + JsonSerializer.Serialize(writer, new SortOptionsDescriptor(action), options); + } + + if (SortDescriptorActions.Length > 1) + writer.WriteEndArray(); + } + else if (SortValue is not null) + { + writer.WritePropertyName("sort"); + SingleOrManySerializationHelper.Serialize(SortValue, writer, options); + } + + if (SourceFieldsValue is not null) + { + writer.WritePropertyName("_source"); + JsonSerializer.Serialize(writer, SourceFieldsValue, options); + } + + writer.WritePropertyName("index"); + JsonSerializer.Serialize(writer, IndexValue, options); + if (RemoteDescriptor is not null) + { + writer.WritePropertyName("remote"); + JsonSerializer.Serialize(writer, RemoteDescriptor, options); + } + else if (RemoteDescriptorAction is not null) + { + writer.WritePropertyName("remote"); + JsonSerializer.Serialize(writer, new RemoteSourceDescriptor(RemoteDescriptorAction), options); + } + else if (RemoteValue is not null) + { + writer.WritePropertyName("remote"); + JsonSerializer.Serialize(writer, RemoteValue, options); + } + + if (RuntimeMappingsValue is not null) + { + writer.WritePropertyName("runtime_mappings"); + JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); + } + + if (SizeValue.HasValue) + { + writer.WritePropertyName("size"); + writer.WriteNumberValue(SizeValue.Value); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class SourceDescriptor : SerializableDescriptor +{ + internal SourceDescriptor(Action configure) => configure.Invoke(this); + + public SourceDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? QueryValue { get; set; } + private QueryDsl.QueryDescriptor QueryDescriptor { get; set; } + private Action QueryDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? SliceValue { get; set; } + private SlicedScrollDescriptor SliceDescriptor { get; set; } + private Action SliceDescriptorAction { get; set; } + private ICollection? SortValue { get; set; } + private SortOptionsDescriptor SortDescriptor { get; set; } + private Action SortDescriptorAction { get; set; } + private Action[] SortDescriptorActions { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Fields? SourceFieldsValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Indices IndexValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.RemoteSource? RemoteValue { get; set; } + private RemoteSourceDescriptor RemoteDescriptor { get; set; } + private Action RemoteDescriptorAction { get; set; } + private IDictionary? RuntimeMappingsValue { get; set; } + private int? SizeValue { get; set; } + + /// + /// Specifies the documents to reindex using the Query DSL. + /// + public SourceDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.QueryDsl.Query? query) + { + QueryDescriptor = null; + QueryDescriptorAction = null; + QueryValue = query; + return Self; + } + + public SourceDescriptor Query(QueryDsl.QueryDescriptor descriptor) + { + QueryValue = null; + QueryDescriptorAction = null; + QueryDescriptor = descriptor; + return Self; + } + + public SourceDescriptor Query(Action configure) + { + QueryValue = null; + QueryDescriptor = null; + QueryDescriptorAction = configure; + return Self; + } + + /// + /// Slice the reindex request manually using the provided slice ID and total number of slices. + /// + public SourceDescriptor Slice(Elastic.Clients.Elasticsearch.Serverless.SlicedScroll? slice) + { + SliceDescriptor = null; + SliceDescriptorAction = null; + SliceValue = slice; + return Self; + } + + public SourceDescriptor Slice(SlicedScrollDescriptor descriptor) + { + SliceValue = null; + SliceDescriptorAction = null; + SliceDescriptor = descriptor; + return Self; + } + + public SourceDescriptor Slice(Action configure) + { + SliceValue = null; + SliceDescriptor = null; + SliceDescriptorAction = configure; + return Self; + } + + public SourceDescriptor Sort(ICollection? sort) + { + SortDescriptor = null; + SortDescriptorAction = null; + SortDescriptorActions = null; + SortValue = sort; + return Self; + } + + public SourceDescriptor Sort(SortOptionsDescriptor descriptor) + { + SortValue = null; + SortDescriptorAction = null; + SortDescriptorActions = null; + SortDescriptor = descriptor; + return Self; + } + + public SourceDescriptor Sort(Action configure) + { + SortValue = null; + SortDescriptor = null; + SortDescriptorActions = null; + SortDescriptorAction = configure; + return Self; + } + + public SourceDescriptor Sort(params Action[] configure) + { + SortValue = null; + SortDescriptor = null; + SortDescriptorAction = null; + SortDescriptorActions = configure; + return Self; + } + + /// + /// If `true` reindexes all source fields.
Set to a list to reindex select fields.
+ ///
+ public SourceDescriptor SourceFields(Elastic.Clients.Elasticsearch.Serverless.Fields? sourceFields) + { + SourceFieldsValue = sourceFields; + return Self; + } + + /// + /// The name of the data stream, index, or alias you are copying from.
Accepts a comma-separated list to reindex from multiple sources.
+ ///
+ public SourceDescriptor Index(Elastic.Clients.Elasticsearch.Serverless.Indices index) + { + IndexValue = index; + return Self; + } + + /// + /// A remote instance of Elasticsearch that you want to index from. + /// + public SourceDescriptor Remote(Elastic.Clients.Elasticsearch.Serverless.Core.Reindex.RemoteSource? remote) + { + RemoteDescriptor = null; + RemoteDescriptorAction = null; + RemoteValue = remote; + return Self; + } + + public SourceDescriptor Remote(RemoteSourceDescriptor descriptor) + { + RemoteValue = null; + RemoteDescriptorAction = null; + RemoteDescriptor = descriptor; + return Self; + } + + public SourceDescriptor Remote(Action configure) + { + RemoteValue = null; + RemoteDescriptor = null; + RemoteDescriptorAction = configure; + return Self; + } + + public SourceDescriptor RuntimeMappings(Func, FluentDictionary> selector) + { + RuntimeMappingsValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + /// + /// The number of documents to index per batch.
Use when indexing from remote to ensure that the batches fit within the on-heap buffer, which defaults to a maximum size of 100 MB.
+ ///
+ public SourceDescriptor Size(int? size) + { + SizeValue = size; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (QueryDescriptor is not null) + { + writer.WritePropertyName("query"); + JsonSerializer.Serialize(writer, QueryDescriptor, options); + } + else if (QueryDescriptorAction is not null) + { + writer.WritePropertyName("query"); + JsonSerializer.Serialize(writer, new QueryDsl.QueryDescriptor(QueryDescriptorAction), options); + } + else if (QueryValue is not null) + { + writer.WritePropertyName("query"); + JsonSerializer.Serialize(writer, QueryValue, options); + } + + if (SliceDescriptor is not null) + { + writer.WritePropertyName("slice"); + JsonSerializer.Serialize(writer, SliceDescriptor, options); + } + else if (SliceDescriptorAction is not null) + { + writer.WritePropertyName("slice"); + JsonSerializer.Serialize(writer, new SlicedScrollDescriptor(SliceDescriptorAction), options); + } + else if (SliceValue is not null) + { + writer.WritePropertyName("slice"); + JsonSerializer.Serialize(writer, SliceValue, options); + } + + if (SortDescriptor is not null) + { + writer.WritePropertyName("sort"); + JsonSerializer.Serialize(writer, SortDescriptor, options); + } + else if (SortDescriptorAction is not null) + { + writer.WritePropertyName("sort"); + JsonSerializer.Serialize(writer, new SortOptionsDescriptor(SortDescriptorAction), options); + } + else if (SortDescriptorActions is not null) + { + writer.WritePropertyName("sort"); + if (SortDescriptorActions.Length > 1) + writer.WriteStartArray(); + foreach (var action in SortDescriptorActions) + { + JsonSerializer.Serialize(writer, new SortOptionsDescriptor(action), options); + } + + if (SortDescriptorActions.Length > 1) + writer.WriteEndArray(); + } + else if (SortValue is not null) + { + writer.WritePropertyName("sort"); + SingleOrManySerializationHelper.Serialize(SortValue, writer, options); + } + + if (SourceFieldsValue is not null) + { + writer.WritePropertyName("_source"); + JsonSerializer.Serialize(writer, SourceFieldsValue, options); + } + + writer.WritePropertyName("index"); + JsonSerializer.Serialize(writer, IndexValue, options); + if (RemoteDescriptor is not null) + { + writer.WritePropertyName("remote"); + JsonSerializer.Serialize(writer, RemoteDescriptor, options); + } + else if (RemoteDescriptorAction is not null) + { + writer.WritePropertyName("remote"); + JsonSerializer.Serialize(writer, new RemoteSourceDescriptor(RemoteDescriptorAction), options); + } + else if (RemoteValue is not null) + { + writer.WritePropertyName("remote"); + JsonSerializer.Serialize(writer, RemoteValue, options); + } + + if (RuntimeMappingsValue is not null) + { + writer.WritePropertyName("runtime_mappings"); + JsonSerializer.Serialize(writer, RuntimeMappingsValue, options); + } + + if (SizeValue.HasValue) + { + writer.WritePropertyName("size"); + writer.WriteNumberValue(SizeValue.Value); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/TemplateMapping.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/ReindexRethrottle/ReindexNode.g.cs similarity index 64% rename from src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/TemplateMapping.g.cs rename to src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/ReindexRethrottle/ReindexNode.g.cs index 86ee14af79c..3590e39355d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/TemplateMapping.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/ReindexRethrottle/ReindexNode.g.cs @@ -25,21 +25,22 @@ using System.Text.Json; using System.Text.Json.Serialization; -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; +namespace Elastic.Clients.Elasticsearch.Serverless.Core.ReindexRethrottle; -public sealed partial class TemplateMapping +public sealed partial class ReindexNode { - [JsonInclude, JsonPropertyName("aliases")] - [ReadOnlyIndexNameDictionaryConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.Alias))] - public IReadOnlyDictionary Aliases { get; init; } - [JsonInclude, JsonPropertyName("index_patterns")] - public IReadOnlyCollection IndexPatterns { get; init; } - [JsonInclude, JsonPropertyName("mappings")] - public Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping Mappings { get; init; } - [JsonInclude, JsonPropertyName("order")] - public int Order { get; init; } - [JsonInclude, JsonPropertyName("settings")] - public IReadOnlyDictionary Settings { get; init; } - [JsonInclude, JsonPropertyName("version")] - public long? Version { get; init; } + [JsonInclude, JsonPropertyName("attributes")] + public IReadOnlyDictionary Attributes { get; init; } + [JsonInclude, JsonPropertyName("host")] + public string Host { get; init; } + [JsonInclude, JsonPropertyName("ip")] + public string Ip { get; init; } + [JsonInclude, JsonPropertyName("name")] + public string Name { get; init; } + [JsonInclude, JsonPropertyName("roles")] + public IReadOnlyCollection? Roles { get; init; } + [JsonInclude, JsonPropertyName("tasks")] + public IReadOnlyDictionary Tasks { get; init; } + [JsonInclude, JsonPropertyName("transport_address")] + public string TransportAddress { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/ReindexRethrottle/ReindexStatus.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/ReindexRethrottle/ReindexStatus.g.cs new file mode 100644 index 00000000000..778a03ca4de --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/ReindexRethrottle/ReindexStatus.g.cs @@ -0,0 +1,101 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Core.ReindexRethrottle; + +public sealed partial class ReindexStatus +{ + /// + /// The number of scroll responses pulled back by the reindex. + /// + [JsonInclude, JsonPropertyName("batches")] + public long Batches { get; init; } + + /// + /// The number of documents that were successfully created. + /// + [JsonInclude, JsonPropertyName("created")] + public long Created { get; init; } + + /// + /// The number of documents that were successfully deleted. + /// + [JsonInclude, JsonPropertyName("deleted")] + public long Deleted { get; init; } + + /// + /// The number of documents that were ignored because the script used for the reindex returned a `noop` value for `ctx.op`. + /// + [JsonInclude, JsonPropertyName("noops")] + public long Noops { get; init; } + + /// + /// The number of requests per second effectively executed during the reindex. + /// + [JsonInclude, JsonPropertyName("requests_per_second")] + public float RequestsPerSecond { get; init; } + + /// + /// The number of retries attempted by reindex. `bulk` is the number of bulk actions retried and `search` is the number of search actions retried. + /// + [JsonInclude, JsonPropertyName("retries")] + public Elastic.Clients.Elasticsearch.Serverless.Retries Retries { get; init; } + [JsonInclude, JsonPropertyName("throttled")] + public Elastic.Clients.Elasticsearch.Serverless.Duration? Throttled { get; init; } + + /// + /// Number of milliseconds the request slept to conform to `requests_per_second`. + /// + [JsonInclude, JsonPropertyName("throttled_millis")] + public long ThrottledMillis { get; init; } + [JsonInclude, JsonPropertyName("throttled_until")] + public Elastic.Clients.Elasticsearch.Serverless.Duration? ThrottledUntil { get; init; } + + /// + /// This field should always be equal to zero in a `_reindex` response.
It only has meaning when using the Task API, where it indicates the next time (in milliseconds since epoch) a throttled request will be executed again in order to conform to `requests_per_second`.
+ ///
+ [JsonInclude, JsonPropertyName("throttled_until_millis")] + public long ThrottledUntilMillis { get; init; } + + /// + /// The number of documents that were successfully processed. + /// + [JsonInclude, JsonPropertyName("total")] + public long Total { get; init; } + + /// + /// The number of documents that were successfully updated, for example, a document with same ID already existed prior to reindex updating it. + /// + [JsonInclude, JsonPropertyName("updated")] + public long Updated { get; init; } + + /// + /// The number of version conflicts that reindex hits. + /// + [JsonInclude, JsonPropertyName("version_conflicts")] + public long VersionConflicts { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/ReindexRethrottle/ReindexTask.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/ReindexRethrottle/ReindexTask.g.cs new file mode 100644 index 00000000000..c753a624ed1 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/ReindexRethrottle/ReindexTask.g.cs @@ -0,0 +1,52 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Core.ReindexRethrottle; + +public sealed partial class ReindexTask +{ + [JsonInclude, JsonPropertyName("action")] + public string Action { get; init; } + [JsonInclude, JsonPropertyName("cancellable")] + public bool Cancellable { get; init; } + [JsonInclude, JsonPropertyName("description")] + public string Description { get; init; } + [JsonInclude, JsonPropertyName("headers")] + public IReadOnlyDictionary> Headers { get; init; } + [JsonInclude, JsonPropertyName("id")] + public long Id { get; init; } + [JsonInclude, JsonPropertyName("node")] + public string Node { get; init; } + [JsonInclude, JsonPropertyName("running_time_in_nanos")] + public long RunningTimeInNanos { get; init; } + [JsonInclude, JsonPropertyName("start_time_in_millis")] + public long StartTimeInMillis { get; init; } + [JsonInclude, JsonPropertyName("status")] + public Elastic.Clients.Elasticsearch.Serverless.Core.ReindexRethrottle.ReindexStatus Status { get; init; } + [JsonInclude, JsonPropertyName("type")] + public string Type { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/CompletionContext.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/CompletionContext.g.cs index 0e668c19cb9..a7cd51b9752 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/CompletionContext.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/CompletionContext.g.cs @@ -29,14 +29,33 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search; public sealed partial class CompletionContext { + /// + /// The factor by which the score of the suggestion should be boosted.
The score is computed by multiplying the boost with the suggestion weight.
+ ///
[JsonInclude, JsonPropertyName("boost")] public double? Boost { get; set; } + + /// + /// The value of the category to filter/boost on. + /// [JsonInclude, JsonPropertyName("context")] public Elastic.Clients.Elasticsearch.Serverless.Core.Search.Context Context { get; set; } + + /// + /// An array of precision values at which neighboring geohashes should be taken into account.
Precision value can be a distance value (`5m`, `10km`, etc.) or a raw geohash precision (`1`..`12`).
Defaults to generating neighbors for index time precision level.
+ ///
[JsonInclude, JsonPropertyName("neighbours")] public ICollection? Neighbours { get; set; } + + /// + /// The precision of the geohash to encode the query geo point.
Can be specified as a distance value (`5m`, `10km`, etc.), or as a raw geohash precision (`1`..`12`).
Defaults to index time precision level.
+ ///
[JsonInclude, JsonPropertyName("precision")] public Elastic.Clients.Elasticsearch.Serverless.GeohashPrecision? Precision { get; set; } + + /// + /// Whether the category value should be treated as a prefix or not. + /// [JsonInclude, JsonPropertyName("prefix")] public bool? Prefix { get; set; } } @@ -55,30 +74,45 @@ public CompletionContextDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.GeohashPrecision? PrecisionValue { get; set; } private bool? PrefixValue { get; set; } + /// + /// The factor by which the score of the suggestion should be boosted.
The score is computed by multiplying the boost with the suggestion weight.
+ ///
public CompletionContextDescriptor Boost(double? boost) { BoostValue = boost; return Self; } + /// + /// The value of the category to filter/boost on. + /// public CompletionContextDescriptor Context(Elastic.Clients.Elasticsearch.Serverless.Core.Search.Context context) { ContextValue = context; return Self; } + /// + /// An array of precision values at which neighboring geohashes should be taken into account.
Precision value can be a distance value (`5m`, `10km`, etc.) or a raw geohash precision (`1`..`12`).
Defaults to generating neighbors for index time precision level.
+ ///
public CompletionContextDescriptor Neighbours(ICollection? neighbours) { NeighboursValue = neighbours; return Self; } + /// + /// The precision of the geohash to encode the query geo point.
Can be specified as a distance value (`5m`, `10km`, etc.), or as a raw geohash precision (`1`..`12`).
Defaults to index time precision level.
+ ///
public CompletionContextDescriptor Precision(Elastic.Clients.Elasticsearch.Serverless.GeohashPrecision? precision) { PrecisionValue = precision; return Self; } + /// + /// Whether the category value should be treated as a prefix or not. + /// public CompletionContextDescriptor Prefix(bool? prefix = true) { PrefixValue = prefix; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/CompletionSuggester.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/CompletionSuggester.g.cs index 08c4942f65f..fdb82a75f93 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/CompletionSuggester.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/CompletionSuggester.g.cs @@ -31,16 +31,32 @@ public sealed partial class CompletionSuggester { [JsonInclude, JsonPropertyName("analyzer")] public string? Analyzer { get; set; } + + /// + /// A value, geo point object, or a geo hash string to filter or boost the suggestion on. + /// [JsonInclude, JsonPropertyName("contexts")] public IDictionary>? Contexts { get; set; } [JsonInclude, JsonPropertyName("field")] public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } + + /// + /// Enables fuzziness, meaning you can have a typo in your search and still get results back. + /// [JsonInclude, JsonPropertyName("fuzzy")] public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggestFuzziness? Fuzzy { get; set; } + + /// + /// A regex query that expresses a prefix as a regular expression. + /// [JsonInclude, JsonPropertyName("regex")] public Elastic.Clients.Elasticsearch.Serverless.Core.Search.RegexOptions? Regex { get; set; } [JsonInclude, JsonPropertyName("size")] public int? Size { get; set; } + + /// + /// Whether duplicate suggestions should be filtered out. + /// [JsonInclude, JsonPropertyName("skip_duplicates")] public bool? SkipDuplicates { get; set; } @@ -73,6 +89,9 @@ public CompletionSuggesterDescriptor Analyzer(string? analyzer) return Self; } + /// + /// A value, geo point object, or a geo hash string to filter or boost the suggestion on. + /// public CompletionSuggesterDescriptor Contexts(Func>, FluentDictionary>> selector) { ContextsValue = selector?.Invoke(new FluentDictionary>()); @@ -91,6 +110,9 @@ public CompletionSuggesterDescriptor Field(Expression + /// Enables fuzziness, meaning you can have a typo in your search and still get results back. + ///
public CompletionSuggesterDescriptor Fuzzy(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggestFuzziness? fuzzy) { FuzzyDescriptor = null; @@ -115,6 +137,9 @@ public CompletionSuggesterDescriptor Fuzzy(Action + /// A regex query that expresses a prefix as a regular expression. + /// public CompletionSuggesterDescriptor Regex(Elastic.Clients.Elasticsearch.Serverless.Core.Search.RegexOptions? regex) { RegexDescriptor = null; @@ -145,6 +170,9 @@ public CompletionSuggesterDescriptor Size(int? size) return Self; } + /// + /// Whether duplicate suggestions should be filtered out. + /// public CompletionSuggesterDescriptor SkipDuplicates(bool? skipDuplicates = true) { SkipDuplicatesValue = skipDuplicates; @@ -242,6 +270,9 @@ public CompletionSuggesterDescriptor Analyzer(string? analyzer) return Self; } + /// + /// A value, geo point object, or a geo hash string to filter or boost the suggestion on. + /// public CompletionSuggesterDescriptor Contexts(Func>, FluentDictionary>> selector) { ContextsValue = selector?.Invoke(new FluentDictionary>()); @@ -266,6 +297,9 @@ public CompletionSuggesterDescriptor Field(Expression + /// Enables fuzziness, meaning you can have a typo in your search and still get results back. + /// public CompletionSuggesterDescriptor Fuzzy(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggestFuzziness? fuzzy) { FuzzyDescriptor = null; @@ -290,6 +324,9 @@ public CompletionSuggesterDescriptor Fuzzy(Action co return Self; } + /// + /// A regex query that expresses a prefix as a regular expression. + /// public CompletionSuggesterDescriptor Regex(Elastic.Clients.Elasticsearch.Serverless.Core.Search.RegexOptions? regex) { RegexDescriptor = null; @@ -320,6 +357,9 @@ public CompletionSuggesterDescriptor Size(int? size) return Self; } + /// + /// Whether duplicate suggestions should be filtered out. + /// public CompletionSuggesterDescriptor SkipDuplicates(bool? skipDuplicates = true) { SkipDuplicatesValue = skipDuplicates; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DirectGenerator.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DirectGenerator.g.cs index abdcd495c3d..e0159f0e998 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DirectGenerator.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/DirectGenerator.g.cs @@ -29,26 +29,69 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search; public sealed partial class DirectGenerator { + /// + /// The field to fetch the candidate suggestions from.
Needs to be set globally or per suggestion.
+ ///
[JsonInclude, JsonPropertyName("field")] public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } + + /// + /// The maximum edit distance candidate suggestions can have in order to be considered as a suggestion.
Can only be `1` or `2`.
+ ///
[JsonInclude, JsonPropertyName("max_edits")] public int? MaxEdits { get; set; } + + /// + /// A factor that is used to multiply with the shard_size in order to inspect more candidate spelling corrections on the shard level.
Can improve accuracy at the cost of performance.
+ ///
[JsonInclude, JsonPropertyName("max_inspections")] public float? MaxInspections { get; set; } + + /// + /// The maximum threshold in number of documents in which a suggest text token can exist in order to be included.
This can be used to exclude high frequency terms — which are usually spelled correctly — from being spellchecked.
Can be a relative percentage number (for example `0.4`) or an absolute number to represent document frequencies.
If a value higher than 1 is specified, then fractional can not be specified.
+ ///
[JsonInclude, JsonPropertyName("max_term_freq")] public float? MaxTermFreq { get; set; } + + /// + /// The minimal threshold in number of documents a suggestion should appear in.
This can improve quality by only suggesting high frequency terms.
Can be specified as an absolute number or as a relative percentage of number of documents.
If a value higher than 1 is specified, the number cannot be fractional.
+ ///
[JsonInclude, JsonPropertyName("min_doc_freq")] public float? MinDocFreq { get; set; } + + /// + /// The minimum length a suggest text term must have in order to be included. + /// [JsonInclude, JsonPropertyName("min_word_length")] public int? MinWordLength { get; set; } + + /// + /// A filter (analyzer) that is applied to each of the generated tokens before they are passed to the actual phrase scorer. + /// [JsonInclude, JsonPropertyName("post_filter")] public string? PostFilter { get; set; } + + /// + /// A filter (analyzer) that is applied to each of the tokens passed to this candidate generator.
This filter is applied to the original token before candidates are generated.
+ ///
[JsonInclude, JsonPropertyName("pre_filter")] public string? PreFilter { get; set; } + + /// + /// The number of minimal prefix characters that must match in order be a candidate suggestions.
Increasing this number improves spellcheck performance.
+ ///
[JsonInclude, JsonPropertyName("prefix_length")] public int? PrefixLength { get; set; } + + /// + /// The maximum corrections to be returned per suggest text token. + /// [JsonInclude, JsonPropertyName("size")] public int? Size { get; set; } + + /// + /// Controls what suggestions are included on the suggestions generated on each shard. + /// [JsonInclude, JsonPropertyName("suggest_mode")] public Elastic.Clients.Elasticsearch.Serverless.SuggestMode? SuggestMode { get; set; } } @@ -73,72 +116,108 @@ public DirectGeneratorDescriptor() : base() private int? SizeValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.SuggestMode? SuggestModeValue { get; set; } + /// + /// The field to fetch the candidate suggestions from.
Needs to be set globally or per suggestion.
+ ///
public DirectGeneratorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) { FieldValue = field; return Self; } + /// + /// The field to fetch the candidate suggestions from.
Needs to be set globally or per suggestion.
+ ///
public DirectGeneratorDescriptor Field(Expression> field) { FieldValue = field; return Self; } + /// + /// The maximum edit distance candidate suggestions can have in order to be considered as a suggestion.
Can only be `1` or `2`.
+ ///
public DirectGeneratorDescriptor MaxEdits(int? maxEdits) { MaxEditsValue = maxEdits; return Self; } + /// + /// A factor that is used to multiply with the shard_size in order to inspect more candidate spelling corrections on the shard level.
Can improve accuracy at the cost of performance.
+ ///
public DirectGeneratorDescriptor MaxInspections(float? maxInspections) { MaxInspectionsValue = maxInspections; return Self; } + /// + /// The maximum threshold in number of documents in which a suggest text token can exist in order to be included.
This can be used to exclude high frequency terms — which are usually spelled correctly — from being spellchecked.
Can be a relative percentage number (for example `0.4`) or an absolute number to represent document frequencies.
If a value higher than 1 is specified, then fractional can not be specified.
+ ///
public DirectGeneratorDescriptor MaxTermFreq(float? maxTermFreq) { MaxTermFreqValue = maxTermFreq; return Self; } + /// + /// The minimal threshold in number of documents a suggestion should appear in.
This can improve quality by only suggesting high frequency terms.
Can be specified as an absolute number or as a relative percentage of number of documents.
If a value higher than 1 is specified, the number cannot be fractional.
+ ///
public DirectGeneratorDescriptor MinDocFreq(float? minDocFreq) { MinDocFreqValue = minDocFreq; return Self; } + /// + /// The minimum length a suggest text term must have in order to be included. + /// public DirectGeneratorDescriptor MinWordLength(int? minWordLength) { MinWordLengthValue = minWordLength; return Self; } + /// + /// A filter (analyzer) that is applied to each of the generated tokens before they are passed to the actual phrase scorer. + /// public DirectGeneratorDescriptor PostFilter(string? postFilter) { PostFilterValue = postFilter; return Self; } + /// + /// A filter (analyzer) that is applied to each of the tokens passed to this candidate generator.
This filter is applied to the original token before candidates are generated.
+ ///
public DirectGeneratorDescriptor PreFilter(string? preFilter) { PreFilterValue = preFilter; return Self; } + /// + /// The number of minimal prefix characters that must match in order be a candidate suggestions.
Increasing this number improves spellcheck performance.
+ ///
public DirectGeneratorDescriptor PrefixLength(int? prefixLength) { PrefixLengthValue = prefixLength; return Self; } + /// + /// The maximum corrections to be returned per suggest text token. + /// public DirectGeneratorDescriptor Size(int? size) { SizeValue = size; return Self; } + /// + /// Controls what suggestions are included on the suggestions generated on each shard. + /// public DirectGeneratorDescriptor SuggestMode(Elastic.Clients.Elasticsearch.Serverless.SuggestMode? suggestMode) { SuggestModeValue = suggestMode; @@ -234,78 +313,117 @@ public DirectGeneratorDescriptor() : base() private int? SizeValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.SuggestMode? SuggestModeValue { get; set; } + /// + /// The field to fetch the candidate suggestions from.
Needs to be set globally or per suggestion.
+ ///
public DirectGeneratorDescriptor Field(Elastic.Clients.Elasticsearch.Serverless.Field field) { FieldValue = field; return Self; } + /// + /// The field to fetch the candidate suggestions from.
Needs to be set globally or per suggestion.
+ ///
public DirectGeneratorDescriptor Field(Expression> field) { FieldValue = field; return Self; } + /// + /// The field to fetch the candidate suggestions from.
Needs to be set globally or per suggestion.
+ ///
public DirectGeneratorDescriptor Field(Expression> field) { FieldValue = field; return Self; } + /// + /// The maximum edit distance candidate suggestions can have in order to be considered as a suggestion.
Can only be `1` or `2`.
+ ///
public DirectGeneratorDescriptor MaxEdits(int? maxEdits) { MaxEditsValue = maxEdits; return Self; } + /// + /// A factor that is used to multiply with the shard_size in order to inspect more candidate spelling corrections on the shard level.
Can improve accuracy at the cost of performance.
+ ///
public DirectGeneratorDescriptor MaxInspections(float? maxInspections) { MaxInspectionsValue = maxInspections; return Self; } + /// + /// The maximum threshold in number of documents in which a suggest text token can exist in order to be included.
This can be used to exclude high frequency terms — which are usually spelled correctly — from being spellchecked.
Can be a relative percentage number (for example `0.4`) or an absolute number to represent document frequencies.
If a value higher than 1 is specified, then fractional can not be specified.
+ ///
public DirectGeneratorDescriptor MaxTermFreq(float? maxTermFreq) { MaxTermFreqValue = maxTermFreq; return Self; } + /// + /// The minimal threshold in number of documents a suggestion should appear in.
This can improve quality by only suggesting high frequency terms.
Can be specified as an absolute number or as a relative percentage of number of documents.
If a value higher than 1 is specified, the number cannot be fractional.
+ ///
public DirectGeneratorDescriptor MinDocFreq(float? minDocFreq) { MinDocFreqValue = minDocFreq; return Self; } + /// + /// The minimum length a suggest text term must have in order to be included. + /// public DirectGeneratorDescriptor MinWordLength(int? minWordLength) { MinWordLengthValue = minWordLength; return Self; } + /// + /// A filter (analyzer) that is applied to each of the generated tokens before they are passed to the actual phrase scorer. + /// public DirectGeneratorDescriptor PostFilter(string? postFilter) { PostFilterValue = postFilter; return Self; } + /// + /// A filter (analyzer) that is applied to each of the tokens passed to this candidate generator.
This filter is applied to the original token before candidates are generated.
+ ///
public DirectGeneratorDescriptor PreFilter(string? preFilter) { PreFilterValue = preFilter; return Self; } + /// + /// The number of minimal prefix characters that must match in order be a candidate suggestions.
Increasing this number improves spellcheck performance.
+ ///
public DirectGeneratorDescriptor PrefixLength(int? prefixLength) { PrefixLengthValue = prefixLength; return Self; } + /// + /// The maximum corrections to be returned per suggest text token. + /// public DirectGeneratorDescriptor Size(int? size) { SizeValue = size; return Self; } + /// + /// Controls what suggestions are included on the suggestions generated on each shard. + /// public DirectGeneratorDescriptor SuggestMode(Elastic.Clients.Elasticsearch.Serverless.SuggestMode? suggestMode) { SuggestModeValue = suggestMode; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/FieldSuggester.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/FieldSuggester.g.cs index 3bc8a715cef..1bb5f89b586 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/FieldSuggester.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/FieldSuggester.g.cs @@ -49,10 +49,21 @@ internal FieldSuggester(string variantName, object variant) public static FieldSuggester Phrase(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggester phraseSuggester) => new FieldSuggester("phrase", phraseSuggester); public static FieldSuggester Term(Elastic.Clients.Elasticsearch.Serverless.Core.Search.TermSuggester termSuggester) => new FieldSuggester("term", termSuggester); + /// + /// Prefix used to search for suggestions. + /// [JsonInclude, JsonPropertyName("prefix")] public string? Prefix { get; set; } + + /// + /// A prefix expressed as a regular expression. + /// [JsonInclude, JsonPropertyName("regex")] public string? Regex { get; set; } + + /// + /// The text to use as input for the suggester.
Needs to be set globally or per suggestion.
+ ///
[JsonInclude, JsonPropertyName("text")] public string? Text { get; set; } } @@ -212,18 +223,27 @@ private FieldSuggesterDescriptor Set(object variant, string variantNa private string? RegexValue { get; set; } private string? TextValue { get; set; } + /// + /// Prefix used to search for suggestions. + /// public FieldSuggesterDescriptor Prefix(string? prefix) { PrefixValue = prefix; return Self; } + /// + /// A prefix expressed as a regular expression. + /// public FieldSuggesterDescriptor Regex(string? regex) { RegexValue = regex; return Self; } + /// + /// The text to use as input for the suggester.
Needs to be set globally or per suggestion.
+ ///
public FieldSuggesterDescriptor Text(string? text) { TextValue = text; @@ -310,18 +330,27 @@ private FieldSuggesterDescriptor Set(object variant, string variantName) private string? RegexValue { get; set; } private string? TextValue { get; set; } + /// + /// Prefix used to search for suggestions. + /// public FieldSuggesterDescriptor Prefix(string? prefix) { PrefixValue = prefix; return Self; } + /// + /// A prefix expressed as a regular expression. + /// public FieldSuggesterDescriptor Regex(string? regex) { RegexValue = regex; return Self; } + /// + /// The text to use as input for the suggester.
Needs to be set globally or per suggestion.
+ ///
public FieldSuggesterDescriptor Text(string? text) { TextValue = text; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/LaplaceSmoothingModel.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/LaplaceSmoothingModel.g.cs index 3a8dd69445e..b5ef8780781 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/LaplaceSmoothingModel.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/LaplaceSmoothingModel.g.cs @@ -29,6 +29,9 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search; public sealed partial class LaplaceSmoothingModel { + /// + /// A constant that is added to all counts to balance weights. + /// [JsonInclude, JsonPropertyName("alpha")] public double Alpha { get; set; } @@ -45,6 +48,9 @@ public LaplaceSmoothingModelDescriptor() : base() private double AlphaValue { get; set; } + /// + /// A constant that is added to all counts to balance weights. + /// public LaplaceSmoothingModelDescriptor Alpha(double alpha) { AlphaValue = alpha; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggestCollate.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggestCollate.g.cs index 7f177fea9e2..281753a1260 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggestCollate.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggestCollate.g.cs @@ -29,10 +29,21 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search; public sealed partial class PhraseSuggestCollate { + /// + /// Parameters to use if the query is templated. + /// [JsonInclude, JsonPropertyName("params")] public IDictionary? Params { get; set; } + + /// + /// Returns all suggestions with an extra `collate_match` option indicating whether the generated phrase matched any document. + /// [JsonInclude, JsonPropertyName("prune")] public bool? Prune { get; set; } + + /// + /// A collate query that is run once for every suggestion. + /// [JsonInclude, JsonPropertyName("query")] public Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestCollateQuery Query { get; set; } } @@ -51,18 +62,27 @@ public PhraseSuggestCollateDescriptor() : base() private PhraseSuggestCollateQueryDescriptor QueryDescriptor { get; set; } private Action QueryDescriptorAction { get; set; } + /// + /// Parameters to use if the query is templated. + /// public PhraseSuggestCollateDescriptor Params(Func, FluentDictionary> selector) { ParamsValue = selector?.Invoke(new FluentDictionary()); return Self; } + /// + /// Returns all suggestions with an extra `collate_match` option indicating whether the generated phrase matched any document. + /// public PhraseSuggestCollateDescriptor Prune(bool? prune = true) { PruneValue = prune; return Self; } + /// + /// A collate query that is run once for every suggestion. + /// public PhraseSuggestCollateDescriptor Query(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestCollateQuery query) { QueryDescriptor = null; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggestCollateQuery.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggestCollateQuery.g.cs index 72dce3059ab..e9a9adc0d1f 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggestCollateQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggestCollateQuery.g.cs @@ -29,8 +29,15 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search; public sealed partial class PhraseSuggestCollateQuery { + /// + /// The search template ID. + /// [JsonInclude, JsonPropertyName("id")] public Elastic.Clients.Elasticsearch.Serverless.Id? Id { get; set; } + + /// + /// The query source. + /// [JsonInclude, JsonPropertyName("source")] public string? Source { get; set; } } @@ -46,12 +53,18 @@ public PhraseSuggestCollateQueryDescriptor() : base() private Elastic.Clients.Elasticsearch.Serverless.Id? IdValue { get; set; } private string? SourceValue { get; set; } + /// + /// The search template ID. + /// public PhraseSuggestCollateQueryDescriptor Id(Elastic.Clients.Elasticsearch.Serverless.Id? id) { IdValue = id; return Self; } + /// + /// The query source. + /// public PhraseSuggestCollateQueryDescriptor Source(string? source) { SourceValue = source; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggestHighlight.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggestHighlight.g.cs index c0c4e1e4d06..e5389e9d768 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggestHighlight.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggestHighlight.g.cs @@ -29,8 +29,15 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search; public sealed partial class PhraseSuggestHighlight { + /// + /// Use in conjunction with `pre_tag` to define the HTML tags to use for the highlighted text. + /// [JsonInclude, JsonPropertyName("post_tag")] public string PostTag { get; set; } + + /// + /// Use in conjunction with `post_tag` to define the HTML tags to use for the highlighted text. + /// [JsonInclude, JsonPropertyName("pre_tag")] public string PreTag { get; set; } } @@ -46,12 +53,18 @@ public PhraseSuggestHighlightDescriptor() : base() private string PostTagValue { get; set; } private string PreTagValue { get; set; } + /// + /// Use in conjunction with `pre_tag` to define the HTML tags to use for the highlighted text. + /// public PhraseSuggestHighlightDescriptor PostTag(string postTag) { PostTagValue = postTag; return Self; } + /// + /// Use in conjunction with `post_tag` to define the HTML tags to use for the highlighted text. + /// public PhraseSuggestHighlightDescriptor PreTag(string preTag) { PreTagValue = preTag; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggester.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggester.g.cs index 2ab166ea6ad..121397cb19b 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggester.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/PhraseSuggester.g.cs @@ -31,32 +31,76 @@ public sealed partial class PhraseSuggester { [JsonInclude, JsonPropertyName("analyzer")] public string? Analyzer { get; set; } + + /// + /// Checks each suggestion against the specified query to prune suggestions for which no matching docs exist in the index. + /// [JsonInclude, JsonPropertyName("collate")] public Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestCollate? Collate { get; set; } + + /// + /// Defines a factor applied to the input phrases score, which is used as a threshold for other suggest candidates.
Only candidates that score higher than the threshold will be included in the result.
+ ///
[JsonInclude, JsonPropertyName("confidence")] public double? Confidence { get; set; } + + /// + /// A list of candidate generators that produce a list of possible terms per term in the given text. + /// [JsonInclude, JsonPropertyName("direct_generator")] public ICollection? DirectGenerator { get; set; } [JsonInclude, JsonPropertyName("field")] public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } [JsonInclude, JsonPropertyName("force_unigrams")] public bool? ForceUnigrams { get; set; } + + /// + /// Sets max size of the n-grams (shingles) in the field.
If the field doesn’t contain n-grams (shingles), this should be omitted or set to `1`.
If the field uses a shingle filter, the `gram_size` is set to the `max_shingle_size` if not explicitly set.
+ ///
[JsonInclude, JsonPropertyName("gram_size")] public int? GramSize { get; set; } + + /// + /// Sets up suggestion highlighting.
If not provided, no highlighted field is returned.
+ ///
[JsonInclude, JsonPropertyName("highlight")] public Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestHighlight? Highlight { get; set; } + + /// + /// The maximum percentage of the terms considered to be misspellings in order to form a correction.
This method accepts a float value in the range `[0..1)` as a fraction of the actual query terms or a number `>=1` as an absolute number of query terms.
+ ///
[JsonInclude, JsonPropertyName("max_errors")] public double? MaxErrors { get; set; } + + /// + /// The likelihood of a term being misspelled even if the term exists in the dictionary. + /// [JsonInclude, JsonPropertyName("real_word_error_likelihood")] public double? RealWordErrorLikelihood { get; set; } + + /// + /// The separator that is used to separate terms in the bigram field.
If not set, the whitespace character is used as a separator.
+ ///
[JsonInclude, JsonPropertyName("separator")] public string? Separator { get; set; } + + /// + /// Sets the maximum number of suggested terms to be retrieved from each individual shard. + /// [JsonInclude, JsonPropertyName("shard_size")] public int? ShardSize { get; set; } [JsonInclude, JsonPropertyName("size")] public int? Size { get; set; } + + /// + /// The smoothing model used to balance weight between infrequent grams (grams (shingles) are not existing in the index) and frequent grams (appear at least once in the index).
The default model is Stupid Backoff.
+ ///
[JsonInclude, JsonPropertyName("smoothing")] public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SmoothingModel? Smoothing { get; set; } + + /// + /// The text/query to provide suggestions for. + /// [JsonInclude, JsonPropertyName("text")] public string? Text { get; set; } [JsonInclude, JsonPropertyName("token_limit")] @@ -99,6 +143,9 @@ public PhraseSuggesterDescriptor() : base() private string? TextValue { get; set; } private int? TokenLimitValue { get; set; } + /// + /// A list of candidate generators that produce a list of possible terms per term in the given text. + /// public PhraseSuggesterDescriptor DirectGenerator(ICollection? directGenerator) { DirectGeneratorDescriptor = null; @@ -141,6 +188,9 @@ public PhraseSuggesterDescriptor Analyzer(string? analyzer) return Self; } + /// + /// Checks each suggestion against the specified query to prune suggestions for which no matching docs exist in the index. + /// public PhraseSuggesterDescriptor Collate(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestCollate? collate) { CollateDescriptor = null; @@ -165,6 +215,9 @@ public PhraseSuggesterDescriptor Collate(Action + /// Defines a factor applied to the input phrases score, which is used as a threshold for other suggest candidates.
Only candidates that score higher than the threshold will be included in the result.
+ /// public PhraseSuggesterDescriptor Confidence(double? confidence) { ConfidenceValue = confidence; @@ -189,12 +242,18 @@ public PhraseSuggesterDescriptor ForceUnigrams(bool? forceUnigrams = return Self; } + /// + /// Sets max size of the n-grams (shingles) in the field.
If the field doesn’t contain n-grams (shingles), this should be omitted or set to `1`.
If the field uses a shingle filter, the `gram_size` is set to the `max_shingle_size` if not explicitly set.
+ ///
public PhraseSuggesterDescriptor GramSize(int? gramSize) { GramSizeValue = gramSize; return Self; } + /// + /// Sets up suggestion highlighting.
If not provided, no highlighted field is returned.
+ ///
public PhraseSuggesterDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestHighlight? highlight) { HighlightDescriptor = null; @@ -219,24 +278,36 @@ public PhraseSuggesterDescriptor Highlight(Action + /// The maximum percentage of the terms considered to be misspellings in order to form a correction.
This method accepts a float value in the range `[0..1)` as a fraction of the actual query terms or a number `>=1` as an absolute number of query terms.
+ /// public PhraseSuggesterDescriptor MaxErrors(double? maxErrors) { MaxErrorsValue = maxErrors; return Self; } + /// + /// The likelihood of a term being misspelled even if the term exists in the dictionary. + /// public PhraseSuggesterDescriptor RealWordErrorLikelihood(double? realWordErrorLikelihood) { RealWordErrorLikelihoodValue = realWordErrorLikelihood; return Self; } + /// + /// The separator that is used to separate terms in the bigram field.
If not set, the whitespace character is used as a separator.
+ ///
public PhraseSuggesterDescriptor Separator(string? separator) { SeparatorValue = separator; return Self; } + /// + /// Sets the maximum number of suggested terms to be retrieved from each individual shard. + /// public PhraseSuggesterDescriptor ShardSize(int? shardSize) { ShardSizeValue = shardSize; @@ -249,6 +320,9 @@ public PhraseSuggesterDescriptor Size(int? size) return Self; } + /// + /// The smoothing model used to balance weight between infrequent grams (grams (shingles) are not existing in the index) and frequent grams (appear at least once in the index).
The default model is Stupid Backoff.
+ ///
public PhraseSuggesterDescriptor Smoothing(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SmoothingModel? smoothing) { SmoothingDescriptor = null; @@ -273,6 +347,9 @@ public PhraseSuggesterDescriptor Smoothing(Action + /// The text/query to provide suggestions for. + /// public PhraseSuggesterDescriptor Text(string? text) { TextValue = text; @@ -473,6 +550,9 @@ public PhraseSuggesterDescriptor() : base() private string? TextValue { get; set; } private int? TokenLimitValue { get; set; } + /// + /// A list of candidate generators that produce a list of possible terms per term in the given text. + /// public PhraseSuggesterDescriptor DirectGenerator(ICollection? directGenerator) { DirectGeneratorDescriptor = null; @@ -515,6 +595,9 @@ public PhraseSuggesterDescriptor Analyzer(string? analyzer) return Self; } + /// + /// Checks each suggestion against the specified query to prune suggestions for which no matching docs exist in the index. + /// public PhraseSuggesterDescriptor Collate(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestCollate? collate) { CollateDescriptor = null; @@ -539,6 +622,9 @@ public PhraseSuggesterDescriptor Collate(Action return Self; } + /// + /// Defines a factor applied to the input phrases score, which is used as a threshold for other suggest candidates.
Only candidates that score higher than the threshold will be included in the result.
+ ///
public PhraseSuggesterDescriptor Confidence(double? confidence) { ConfidenceValue = confidence; @@ -569,12 +655,18 @@ public PhraseSuggesterDescriptor ForceUnigrams(bool? forceUnigrams = true) return Self; } + /// + /// Sets max size of the n-grams (shingles) in the field.
If the field doesn’t contain n-grams (shingles), this should be omitted or set to `1`.
If the field uses a shingle filter, the `gram_size` is set to the `max_shingle_size` if not explicitly set.
+ ///
public PhraseSuggesterDescriptor GramSize(int? gramSize) { GramSizeValue = gramSize; return Self; } + /// + /// Sets up suggestion highlighting.
If not provided, no highlighted field is returned.
+ ///
public PhraseSuggesterDescriptor Highlight(Elastic.Clients.Elasticsearch.Serverless.Core.Search.PhraseSuggestHighlight? highlight) { HighlightDescriptor = null; @@ -599,24 +691,36 @@ public PhraseSuggesterDescriptor Highlight(Action + /// The maximum percentage of the terms considered to be misspellings in order to form a correction.
This method accepts a float value in the range `[0..1)` as a fraction of the actual query terms or a number `>=1` as an absolute number of query terms.
+ /// public PhraseSuggesterDescriptor MaxErrors(double? maxErrors) { MaxErrorsValue = maxErrors; return Self; } + /// + /// The likelihood of a term being misspelled even if the term exists in the dictionary. + /// public PhraseSuggesterDescriptor RealWordErrorLikelihood(double? realWordErrorLikelihood) { RealWordErrorLikelihoodValue = realWordErrorLikelihood; return Self; } + /// + /// The separator that is used to separate terms in the bigram field.
If not set, the whitespace character is used as a separator.
+ ///
public PhraseSuggesterDescriptor Separator(string? separator) { SeparatorValue = separator; return Self; } + /// + /// Sets the maximum number of suggested terms to be retrieved from each individual shard. + /// public PhraseSuggesterDescriptor ShardSize(int? shardSize) { ShardSizeValue = shardSize; @@ -629,6 +733,9 @@ public PhraseSuggesterDescriptor Size(int? size) return Self; } + /// + /// The smoothing model used to balance weight between infrequent grams (grams (shingles) are not existing in the index) and frequent grams (appear at least once in the index).
The default model is Stupid Backoff.
+ ///
public PhraseSuggesterDescriptor Smoothing(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SmoothingModel? smoothing) { SmoothingDescriptor = null; @@ -653,6 +760,9 @@ public PhraseSuggesterDescriptor Smoothing(Action conf return Self; } + /// + /// The text/query to provide suggestions for. + /// public PhraseSuggesterDescriptor Text(string? text) { TextValue = text; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/RegexOptions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/RegexOptions.g.cs index 7937e4eeeea..b2057ad107d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/RegexOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/RegexOptions.g.cs @@ -29,8 +29,15 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search; public sealed partial class RegexOptions { + /// + /// Optional operators for the regular expression. + /// [JsonInclude, JsonPropertyName("flags")] public Union? Flags { get; set; } + + /// + /// Maximum number of automaton states required for the query. + /// [JsonInclude, JsonPropertyName("max_determinized_states")] public int? MaxDeterminizedStates { get; set; } } @@ -46,12 +53,18 @@ public RegexOptionsDescriptor() : base() private Union? FlagsValue { get; set; } private int? MaxDeterminizedStatesValue { get; set; } + /// + /// Optional operators for the regular expression. + /// public RegexOptionsDescriptor Flags(Union? flags) { FlagsValue = flags; return Self; } + /// + /// Maximum number of automaton states required for the query. + /// public RegexOptionsDescriptor MaxDeterminizedStates(int? maxDeterminizedStates) { MaxDeterminizedStatesValue = maxDeterminizedStates; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/StupidBackoffSmoothingModel.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/StupidBackoffSmoothingModel.g.cs index c5dbb96d453..21355e2f8a0 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/StupidBackoffSmoothingModel.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/StupidBackoffSmoothingModel.g.cs @@ -29,6 +29,9 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search; public sealed partial class StupidBackoffSmoothingModel { + /// + /// A constant factor that the lower order n-gram model is discounted by. + /// [JsonInclude, JsonPropertyName("discount")] public double Discount { get; set; } @@ -45,6 +48,9 @@ public StupidBackoffSmoothingModelDescriptor() : base() private double DiscountValue { get; set; } + /// + /// A constant factor that the lower order n-gram model is discounted by. + /// public StupidBackoffSmoothingModelDescriptor Discount(double discount) { DiscountValue = discount; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/SuggestFuzziness.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/SuggestFuzziness.g.cs index b9878dfb536..9f7f0343bb8 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/SuggestFuzziness.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/SuggestFuzziness.g.cs @@ -29,14 +29,33 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.Search; public sealed partial class SuggestFuzziness { + /// + /// The fuzziness factor. + /// [JsonInclude, JsonPropertyName("fuzziness")] public Elastic.Clients.Elasticsearch.Serverless.Fuzziness? Fuzziness { get; set; } + + /// + /// Minimum length of the input before fuzzy suggestions are returned. + /// [JsonInclude, JsonPropertyName("min_length")] public int? MinLength { get; set; } + + /// + /// Minimum length of the input, which is not checked for fuzzy alternatives. + /// [JsonInclude, JsonPropertyName("prefix_length")] public int? PrefixLength { get; set; } + + /// + /// If set to `true`, transpositions are counted as one change instead of two. + /// [JsonInclude, JsonPropertyName("transpositions")] public bool? Transpositions { get; set; } + + /// + /// If `true`, all measurements (like fuzzy edit distance, transpositions, and lengths) are measured in Unicode code points instead of in bytes.
This is slightly slower than raw bytes.
+ ///
[JsonInclude, JsonPropertyName("unicode_aware")] public bool? UnicodeAware { get; set; } } @@ -55,30 +74,45 @@ public SuggestFuzzinessDescriptor() : base() private bool? TranspositionsValue { get; set; } private bool? UnicodeAwareValue { get; set; } + /// + /// The fuzziness factor. + /// public SuggestFuzzinessDescriptor Fuzziness(Elastic.Clients.Elasticsearch.Serverless.Fuzziness? fuzziness) { FuzzinessValue = fuzziness; return Self; } + /// + /// Minimum length of the input before fuzzy suggestions are returned. + /// public SuggestFuzzinessDescriptor MinLength(int? minLength) { MinLengthValue = minLength; return Self; } + /// + /// Minimum length of the input, which is not checked for fuzzy alternatives. + /// public SuggestFuzzinessDescriptor PrefixLength(int? prefixLength) { PrefixLengthValue = prefixLength; return Self; } + /// + /// If set to `true`, transpositions are counted as one change instead of two. + /// public SuggestFuzzinessDescriptor Transpositions(bool? transpositions = true) { TranspositionsValue = transpositions; return Self; } + /// + /// If `true`, all measurements (like fuzzy edit distance, transpositions, and lengths) are measured in Unicode code points instead of in bytes.
This is slightly slower than raw bytes.
+ ///
public SuggestFuzzinessDescriptor UnicodeAware(bool? unicodeAware = true) { UnicodeAwareValue = unicodeAware; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/TermSuggester.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/TermSuggester.g.cs index 8ed8b50eeb9..cdee35b3fbe 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/TermSuggester.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/Search/TermSuggester.g.cs @@ -35,28 +35,72 @@ public sealed partial class TermSuggester public Elastic.Clients.Elasticsearch.Serverless.Field Field { get; set; } [JsonInclude, JsonPropertyName("lowercase_terms")] public bool? LowercaseTerms { get; set; } + + /// + /// The maximum edit distance candidate suggestions can have in order to be considered as a suggestion.
Can only be `1` or `2`.
+ ///
[JsonInclude, JsonPropertyName("max_edits")] public int? MaxEdits { get; set; } + + /// + /// A factor that is used to multiply with the shard_size in order to inspect more candidate spelling corrections on the shard level.
Can improve accuracy at the cost of performance.
+ ///
[JsonInclude, JsonPropertyName("max_inspections")] public int? MaxInspections { get; set; } + + /// + /// The maximum threshold in number of documents in which a suggest text token can exist in order to be included.
Can be a relative percentage number (for example `0.4`) or an absolute number to represent document frequencies.
If a value higher than 1 is specified, then fractional can not be specified.
+ ///
[JsonInclude, JsonPropertyName("max_term_freq")] public float? MaxTermFreq { get; set; } + + /// + /// The minimal threshold in number of documents a suggestion should appear in.
This can improve quality by only suggesting high frequency terms.
Can be specified as an absolute number or as a relative percentage of number of documents.
If a value higher than 1 is specified, then the number cannot be fractional.
+ ///
[JsonInclude, JsonPropertyName("min_doc_freq")] public float? MinDocFreq { get; set; } + + /// + /// The minimum length a suggest text term must have in order to be included. + /// [JsonInclude, JsonPropertyName("min_word_length")] public int? MinWordLength { get; set; } + + /// + /// The number of minimal prefix characters that must match in order be a candidate for suggestions.
Increasing this number improves spellcheck performance.
+ ///
[JsonInclude, JsonPropertyName("prefix_length")] public int? PrefixLength { get; set; } + + /// + /// Sets the maximum number of suggestions to be retrieved from each individual shard. + /// [JsonInclude, JsonPropertyName("shard_size")] public int? ShardSize { get; set; } [JsonInclude, JsonPropertyName("size")] public int? Size { get; set; } + + /// + /// Defines how suggestions should be sorted per suggest text term. + /// [JsonInclude, JsonPropertyName("sort")] public Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggestSort? Sort { get; set; } + + /// + /// The string distance implementation to use for comparing how similar suggested terms are. + /// [JsonInclude, JsonPropertyName("string_distance")] public Elastic.Clients.Elasticsearch.Serverless.Core.Search.StringDistance? StringDistance { get; set; } + + /// + /// Controls what suggestions are included or controls for what suggest text terms, suggestions should be suggested. + /// [JsonInclude, JsonPropertyName("suggest_mode")] public Elastic.Clients.Elasticsearch.Serverless.SuggestMode? SuggestMode { get; set; } + + /// + /// The suggest text.
Needs to be set globally or per suggestion.
+ ///
[JsonInclude, JsonPropertyName("text")] public string? Text { get; set; } @@ -111,42 +155,63 @@ public TermSuggesterDescriptor LowercaseTerms(bool? lowercaseTerms = return Self; } + /// + /// The maximum edit distance candidate suggestions can have in order to be considered as a suggestion.
Can only be `1` or `2`.
+ ///
public TermSuggesterDescriptor MaxEdits(int? maxEdits) { MaxEditsValue = maxEdits; return Self; } + /// + /// A factor that is used to multiply with the shard_size in order to inspect more candidate spelling corrections on the shard level.
Can improve accuracy at the cost of performance.
+ ///
public TermSuggesterDescriptor MaxInspections(int? maxInspections) { MaxInspectionsValue = maxInspections; return Self; } + /// + /// The maximum threshold in number of documents in which a suggest text token can exist in order to be included.
Can be a relative percentage number (for example `0.4`) or an absolute number to represent document frequencies.
If a value higher than 1 is specified, then fractional can not be specified.
+ ///
public TermSuggesterDescriptor MaxTermFreq(float? maxTermFreq) { MaxTermFreqValue = maxTermFreq; return Self; } + /// + /// The minimal threshold in number of documents a suggestion should appear in.
This can improve quality by only suggesting high frequency terms.
Can be specified as an absolute number or as a relative percentage of number of documents.
If a value higher than 1 is specified, then the number cannot be fractional.
+ ///
public TermSuggesterDescriptor MinDocFreq(float? minDocFreq) { MinDocFreqValue = minDocFreq; return Self; } + /// + /// The minimum length a suggest text term must have in order to be included. + /// public TermSuggesterDescriptor MinWordLength(int? minWordLength) { MinWordLengthValue = minWordLength; return Self; } + /// + /// The number of minimal prefix characters that must match in order be a candidate for suggestions.
Increasing this number improves spellcheck performance.
+ ///
public TermSuggesterDescriptor PrefixLength(int? prefixLength) { PrefixLengthValue = prefixLength; return Self; } + /// + /// Sets the maximum number of suggestions to be retrieved from each individual shard. + /// public TermSuggesterDescriptor ShardSize(int? shardSize) { ShardSizeValue = shardSize; @@ -159,24 +224,36 @@ public TermSuggesterDescriptor Size(int? size) return Self; } + /// + /// Defines how suggestions should be sorted per suggest text term. + /// public TermSuggesterDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggestSort? sort) { SortValue = sort; return Self; } + /// + /// The string distance implementation to use for comparing how similar suggested terms are. + /// public TermSuggesterDescriptor StringDistance(Elastic.Clients.Elasticsearch.Serverless.Core.Search.StringDistance? stringDistance) { StringDistanceValue = stringDistance; return Self; } + /// + /// Controls what suggestions are included or controls for what suggest text terms, suggestions should be suggested. + /// public TermSuggesterDescriptor SuggestMode(Elastic.Clients.Elasticsearch.Serverless.SuggestMode? suggestMode) { SuggestModeValue = suggestMode; return Self; } + /// + /// The suggest text.
Needs to be set globally or per suggestion.
+ ///
public TermSuggesterDescriptor Text(string? text) { TextValue = text; @@ -330,42 +407,63 @@ public TermSuggesterDescriptor LowercaseTerms(bool? lowercaseTerms = true) return Self; } + /// + /// The maximum edit distance candidate suggestions can have in order to be considered as a suggestion.
Can only be `1` or `2`.
+ ///
public TermSuggesterDescriptor MaxEdits(int? maxEdits) { MaxEditsValue = maxEdits; return Self; } + /// + /// A factor that is used to multiply with the shard_size in order to inspect more candidate spelling corrections on the shard level.
Can improve accuracy at the cost of performance.
+ ///
public TermSuggesterDescriptor MaxInspections(int? maxInspections) { MaxInspectionsValue = maxInspections; return Self; } + /// + /// The maximum threshold in number of documents in which a suggest text token can exist in order to be included.
Can be a relative percentage number (for example `0.4`) or an absolute number to represent document frequencies.
If a value higher than 1 is specified, then fractional can not be specified.
+ ///
public TermSuggesterDescriptor MaxTermFreq(float? maxTermFreq) { MaxTermFreqValue = maxTermFreq; return Self; } + /// + /// The minimal threshold in number of documents a suggestion should appear in.
This can improve quality by only suggesting high frequency terms.
Can be specified as an absolute number or as a relative percentage of number of documents.
If a value higher than 1 is specified, then the number cannot be fractional.
+ ///
public TermSuggesterDescriptor MinDocFreq(float? minDocFreq) { MinDocFreqValue = minDocFreq; return Self; } + /// + /// The minimum length a suggest text term must have in order to be included. + /// public TermSuggesterDescriptor MinWordLength(int? minWordLength) { MinWordLengthValue = minWordLength; return Self; } + /// + /// The number of minimal prefix characters that must match in order be a candidate for suggestions.
Increasing this number improves spellcheck performance.
+ ///
public TermSuggesterDescriptor PrefixLength(int? prefixLength) { PrefixLengthValue = prefixLength; return Self; } + /// + /// Sets the maximum number of suggestions to be retrieved from each individual shard. + /// public TermSuggesterDescriptor ShardSize(int? shardSize) { ShardSizeValue = shardSize; @@ -378,24 +476,36 @@ public TermSuggesterDescriptor Size(int? size) return Self; } + /// + /// Defines how suggestions should be sorted per suggest text term. + /// public TermSuggesterDescriptor Sort(Elastic.Clients.Elasticsearch.Serverless.Core.Search.SuggestSort? sort) { SortValue = sort; return Self; } + /// + /// The string distance implementation to use for comparing how similar suggested terms are. + /// public TermSuggesterDescriptor StringDistance(Elastic.Clients.Elasticsearch.Serverless.Core.Search.StringDistance? stringDistance) { StringDistanceValue = stringDistance; return Self; } + /// + /// Controls what suggestions are included or controls for what suggest text terms, suggestions should be suggested. + /// public TermSuggesterDescriptor SuggestMode(Elastic.Clients.Elasticsearch.Serverless.SuggestMode? suggestMode) { SuggestModeValue = suggestMode; return Self; } + /// + /// The suggest text.
Needs to be set globally or per suggestion.
+ ///
public TermSuggesterDescriptor Text(string? text) { TextValue = text; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/TermVectors/Filter.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/TermVectors/Filter.g.cs index 3be5168e0a1..ff5c0262ab2 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/TermVectors/Filter.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/TermVectors/Filter.g.cs @@ -29,18 +29,45 @@ namespace Elastic.Clients.Elasticsearch.Serverless.Core.TermVectors; public sealed partial class Filter { + /// + /// Ignore words which occur in more than this many docs.
Defaults to unbounded.
+ ///
[JsonInclude, JsonPropertyName("max_doc_freq")] public int? MaxDocFreq { get; set; } + + /// + /// Maximum number of terms that must be returned per field. + /// [JsonInclude, JsonPropertyName("max_num_terms")] public int? MaxNumTerms { get; set; } + + /// + /// Ignore words with more than this frequency in the source doc.
Defaults to unbounded.
+ ///
[JsonInclude, JsonPropertyName("max_term_freq")] public int? MaxTermFreq { get; set; } + + /// + /// The maximum word length above which words will be ignored.
Defaults to unbounded.
+ ///
[JsonInclude, JsonPropertyName("max_word_length")] public int? MaxWordLength { get; set; } + + /// + /// Ignore terms which do not occur in at least this many docs. + /// [JsonInclude, JsonPropertyName("min_doc_freq")] public int? MinDocFreq { get; set; } + + /// + /// Ignore words with less than this frequency in the source doc. + /// [JsonInclude, JsonPropertyName("min_term_freq")] public int? MinTermFreq { get; set; } + + /// + /// The minimum word length below which words will be ignored. + /// [JsonInclude, JsonPropertyName("min_word_length")] public int? MinWordLength { get; set; } } @@ -61,42 +88,63 @@ public FilterDescriptor() : base() private int? MinTermFreqValue { get; set; } private int? MinWordLengthValue { get; set; } + /// + /// Ignore words which occur in more than this many docs.
Defaults to unbounded.
+ ///
public FilterDescriptor MaxDocFreq(int? maxDocFreq) { MaxDocFreqValue = maxDocFreq; return Self; } + /// + /// Maximum number of terms that must be returned per field. + /// public FilterDescriptor MaxNumTerms(int? maxNumTerms) { MaxNumTermsValue = maxNumTerms; return Self; } + /// + /// Ignore words with more than this frequency in the source doc.
Defaults to unbounded.
+ ///
public FilterDescriptor MaxTermFreq(int? maxTermFreq) { MaxTermFreqValue = maxTermFreq; return Self; } + /// + /// The maximum word length above which words will be ignored.
Defaults to unbounded.
+ ///
public FilterDescriptor MaxWordLength(int? maxWordLength) { MaxWordLengthValue = maxWordLength; return Self; } + /// + /// Ignore terms which do not occur in at least this many docs. + /// public FilterDescriptor MinDocFreq(int? minDocFreq) { MinDocFreqValue = minDocFreq; return Self; } + /// + /// Ignore words with less than this frequency in the source doc. + /// public FilterDescriptor MinTermFreq(int? minTermFreq) { MinTermFreqValue = minTermFreq; return Self; } + /// + /// The minimum word length below which words will be ignored. + /// public FilterDescriptor MinWordLength(int? minWordLength) { MinWordLengthValue = minWordLength; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/UpdateByQueryRethrottle/UpdateByQueryRethrottleNode.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/UpdateByQueryRethrottle/UpdateByQueryRethrottleNode.g.cs new file mode 100644 index 00000000000..1585b66f55a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Core/UpdateByQueryRethrottle/UpdateByQueryRethrottleNode.g.cs @@ -0,0 +1,46 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Core.UpdateByQueryRethrottle; + +public sealed partial class UpdateByQueryRethrottleNode +{ + [JsonInclude, JsonPropertyName("attributes")] + public IReadOnlyDictionary Attributes { get; init; } + [JsonInclude, JsonPropertyName("host")] + public string Host { get; init; } + [JsonInclude, JsonPropertyName("ip")] + public string Ip { get; init; } + [JsonInclude, JsonPropertyName("name")] + public string Name { get; init; } + [JsonInclude, JsonPropertyName("roles")] + public IReadOnlyCollection? Roles { get; init; } + [JsonInclude, JsonPropertyName("tasks")] + public IReadOnlyDictionary Tasks { get; init; } + [JsonInclude, JsonPropertyName("transport_address")] + public string TransportAddress { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Core.Search.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Core.Search.g.cs index f2b50a3247f..59543788673 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Core.Search.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Core.Search.g.cs @@ -352,14 +352,29 @@ public override void Write(Utf8JsonWriter writer, ScoreMode value, JsonSerialize [JsonConverter(typeof(StringDistanceConverter))] public enum StringDistance { + /// + /// String distance algorithm based on character n-grams. + /// [EnumMember(Value = "ngram")] Ngram, + /// + /// String distance algorithm based on the Levenshtein edit distance algorithm. + /// [EnumMember(Value = "levenshtein")] Levenshtein, + /// + /// String distance algorithm based on Jaro-Winkler algorithm. + /// [EnumMember(Value = "jaro_winkler")] JaroWinkler, + /// + /// Based on the Damerau-Levenshtein algorithm, but highly optimized for comparing string distance for terms inside the index. + /// [EnumMember(Value = "internal")] Internal, + /// + /// String distance algorithm based on Damerau-Levenshtein algorithm. + /// [EnumMember(Value = "damerau_levenshtein")] DamerauLevenshtein } @@ -414,8 +429,14 @@ public override void Write(Utf8JsonWriter writer, StringDistance value, JsonSeri [JsonConverter(typeof(SuggestSortConverter))] public enum SuggestSort { + /// + /// Sort by score first, then document frequency and then the term itself. + /// [EnumMember(Value = "score")] Score, + /// + /// Sort by document frequency first, then similarity score and then the term itself. + /// [EnumMember(Value = "frequency")] Frequency } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Eql.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Eql.g.cs new file mode 100644 index 00000000000..d20740d24fc --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Eql.g.cs @@ -0,0 +1,76 @@ +// 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.Runtime.Serialization; +using System.Text; +using System.Text.Json; +using System.Text.Json.Serialization; +using Elastic.Clients.Elasticsearch.Serverless.Core; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport; + +namespace Elastic.Clients.Elasticsearch.Serverless.Eql; + +[JsonConverter(typeof(ResultPositionConverter))] +public enum ResultPosition +{ + /// + /// Return the most recent matches, similar to the Unix tail command. + /// + [EnumMember(Value = "tail")] + Tail, + /// + /// Return the earliest matches, similar to the Unix head command. + /// + [EnumMember(Value = "head")] + Head +} + +internal sealed class ResultPositionConverter : JsonConverter +{ + public override ResultPosition Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "tail": + return ResultPosition.Tail; + case "head": + return ResultPosition.Head; + } + + ThrowHelper.ThrowJsonException(); return default; + } + + public override void Write(Utf8JsonWriter writer, ResultPosition value, JsonSerializerOptions options) + { + switch (value) + { + case ResultPosition.Tail: + writer.WriteStringValue("tail"); + return; + case ResultPosition.Head: + writer.WriteStringValue("head"); + return; + } + + writer.WriteNullValue(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Mapping.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Mapping.g.cs index b0740fba797..596f016f76f 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Mapping.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Mapping.g.cs @@ -90,6 +90,8 @@ public enum FieldType TokenCount, [EnumMember(Value = "text")] Text, + [EnumMember(Value = "sparse_vector")] + SparseVector, [EnumMember(Value = "short")] Short, [EnumMember(Value = "shape")] @@ -183,6 +185,8 @@ public override FieldType Read(ref Utf8JsonReader reader, Type typeToConvert, Js return FieldType.TokenCount; case "text": return FieldType.Text; + case "sparse_vector": + return FieldType.SparseVector; case "short": return FieldType.Short; case "shape": @@ -278,6 +282,9 @@ public override void Write(Utf8JsonWriter writer, FieldType value, JsonSerialize case FieldType.Text: writer.WriteStringValue("text"); return; + case FieldType.SparseVector: + writer.WriteStringValue("sparse_vector"); + return; case FieldType.Short: writer.WriteStringValue("short"); return; diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.NoNamespace.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.NoNamespace.g.cs index 3ae3ea0d3fc..589ae9648eb 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.NoNamespace.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.NoNamespace.g.cs @@ -93,8 +93,14 @@ public override void Write(Utf8JsonWriter writer, ClusterSearchStatus value, Jso [JsonConverter(typeof(ConflictsConverter))] public enum Conflicts { + /// + /// Continue reindexing even if there are conflicts. + /// [EnumMember(Value = "proceed")] Proceed, + /// + /// Stop reindexing if there are conflicts. + /// [EnumMember(Value = "abort")] Abort } @@ -829,6 +835,131 @@ public override void Write(Utf8JsonWriter writer, Level value, JsonSerializerOpt } } +[JsonConverter(typeof(NodeRoleConverter))] +public enum NodeRole +{ + [EnumMember(Value = "voting_only")] + VotingOnly, + [EnumMember(Value = "transform")] + Transform, + [EnumMember(Value = "remote_cluster_client")] + RemoteClusterClient, + [EnumMember(Value = "ml")] + Ml, + [EnumMember(Value = "master")] + Master, + [EnumMember(Value = "ingest")] + Ingest, + [EnumMember(Value = "data_warm")] + DataWarm, + [EnumMember(Value = "data_hot")] + DataHot, + [EnumMember(Value = "data_frozen")] + DataFrozen, + [EnumMember(Value = "data_content")] + DataContent, + [EnumMember(Value = "data_cold")] + DataCold, + [EnumMember(Value = "data")] + Data, + [EnumMember(Value = "coordinating_only")] + CoordinatingOnly, + [EnumMember(Value = "client")] + Client +} + +internal sealed class NodeRoleConverter : JsonConverter +{ + public override NodeRole Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "voting_only": + return NodeRole.VotingOnly; + case "transform": + return NodeRole.Transform; + case "remote_cluster_client": + return NodeRole.RemoteClusterClient; + case "ml": + return NodeRole.Ml; + case "master": + return NodeRole.Master; + case "ingest": + return NodeRole.Ingest; + case "data_warm": + return NodeRole.DataWarm; + case "data_hot": + return NodeRole.DataHot; + case "data_frozen": + return NodeRole.DataFrozen; + case "data_content": + return NodeRole.DataContent; + case "data_cold": + return NodeRole.DataCold; + case "data": + return NodeRole.Data; + case "coordinating_only": + return NodeRole.CoordinatingOnly; + case "client": + return NodeRole.Client; + } + + ThrowHelper.ThrowJsonException(); return default; + } + + public override void Write(Utf8JsonWriter writer, NodeRole value, JsonSerializerOptions options) + { + switch (value) + { + case NodeRole.VotingOnly: + writer.WriteStringValue("voting_only"); + return; + case NodeRole.Transform: + writer.WriteStringValue("transform"); + return; + case NodeRole.RemoteClusterClient: + writer.WriteStringValue("remote_cluster_client"); + return; + case NodeRole.Ml: + writer.WriteStringValue("ml"); + return; + case NodeRole.Master: + writer.WriteStringValue("master"); + return; + case NodeRole.Ingest: + writer.WriteStringValue("ingest"); + return; + case NodeRole.DataWarm: + writer.WriteStringValue("data_warm"); + return; + case NodeRole.DataHot: + writer.WriteStringValue("data_hot"); + return; + case NodeRole.DataFrozen: + writer.WriteStringValue("data_frozen"); + return; + case NodeRole.DataContent: + writer.WriteStringValue("data_content"); + return; + case NodeRole.DataCold: + writer.WriteStringValue("data_cold"); + return; + case NodeRole.Data: + writer.WriteStringValue("data"); + return; + case NodeRole.CoordinatingOnly: + writer.WriteStringValue("coordinating_only"); + return; + case NodeRole.Client: + writer.WriteStringValue("client"); + return; + } + + writer.WriteNullValue(); + } +} + [JsonConverter(typeof(NormalizationConverter))] public enum Normalization { @@ -1239,10 +1370,19 @@ public override void Write(Utf8JsonWriter writer, SortOrder value, JsonSerialize [JsonConverter(typeof(SuggestModeConverter))] public enum SuggestMode { + /// + /// Only suggest terms that occur in more docs on the shard than the original term. + /// [EnumMember(Value = "popular")] Popular, + /// + /// Only generate suggestions for terms that are not in the shard. + /// [EnumMember(Value = "missing")] Missing, + /// + /// Suggest any matching suggestions based on terms in the suggest text. + /// [EnumMember(Value = "always")] Always } @@ -1363,12 +1503,21 @@ public override void Write(Utf8JsonWriter writer, TimeUnit value, JsonSerializer [JsonConverter(typeof(VersionTypeConverter))] public enum VersionType { + /// + /// Use internal versioning that starts at 1 and increments with each update or delete. + /// [EnumMember(Value = "internal")] Internal, [EnumMember(Value = "force")] Force, + /// + /// Only index the document if the given version is equal or higher than the version of the stored document or if there is no existing document.
Note: the external_gte version type is meant for special use cases and should be used with care.
If used incorrectly, it can result in loss of data.
+ ///
[EnumMember(Value = "external_gte")] ExternalGte, + /// + /// Only index the document if the given version is strictly higher than the version of the stored document or if there is no existing document. + /// [EnumMember(Value = "external")] External } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Tasks.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Tasks.g.cs new file mode 100644 index 00000000000..6ecd283d80c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Enums/Enums.Tasks.g.cs @@ -0,0 +1,86 @@ +// 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.Runtime.Serialization; +using System.Text; +using System.Text.Json; +using System.Text.Json.Serialization; +using Elastic.Clients.Elasticsearch.Serverless.Core; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport; + +namespace Elastic.Clients.Elasticsearch.Serverless.Tasks; + +[JsonConverter(typeof(GroupByConverter))] +public enum GroupBy +{ + /// + /// Parent task ID + /// + [EnumMember(Value = "parents")] + Parents, + /// + /// Do not group tasks. + /// + [EnumMember(Value = "none")] + None, + /// + /// Node ID + /// + [EnumMember(Value = "nodes")] + Nodes +} + +internal sealed class GroupByConverter : JsonConverter +{ + public override GroupBy Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "parents": + return GroupBy.Parents; + case "none": + return GroupBy.None; + case "nodes": + return GroupBy.Nodes; + } + + ThrowHelper.ThrowJsonException(); return default; + } + + public override void Write(Utf8JsonWriter writer, GroupBy value, JsonSerializerOptions options) + { + switch (value) + { + case GroupBy.Parents: + writer.WriteStringValue("parents"); + return; + case GroupBy.None: + writer.WriteStringValue("none"); + return; + case GroupBy.Nodes: + writer.WriteStringValue("nodes"); + return; + } + + writer.WriteNullValue(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Eql/EqlHits.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Eql/EqlHits.g.cs new file mode 100644 index 00000000000..7a4ec3db0c5 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Eql/EqlHits.g.cs @@ -0,0 +1,49 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Eql; + +public sealed partial class EqlHits +{ + /// + /// Contains events matching the query. Each object represents a matching event. + /// + [JsonInclude, JsonPropertyName("events")] + public IReadOnlyCollection>? Events { get; init; } + + /// + /// Contains event sequences matching the query. Each object represents a matching sequence. This parameter is only returned for EQL queries containing a sequence. + /// + [JsonInclude, JsonPropertyName("sequences")] + public IReadOnlyCollection>? Sequences { get; init; } + + /// + /// Metadata about the number of matching events or sequences. + /// + [JsonInclude, JsonPropertyName("total")] + public Elastic.Clients.Elasticsearch.Serverless.Core.Search.TotalHits? Total { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Eql/HitsEvent.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Eql/HitsEvent.g.cs new file mode 100644 index 00000000000..a1c66d03be9 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Eql/HitsEvent.g.cs @@ -0,0 +1,52 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Eql; + +public sealed partial class HitsEvent +{ + /// + /// Unique identifier for the event. This ID is only unique within the index. + /// + [JsonInclude, JsonPropertyName("_id")] + public string Id { get; init; } + + /// + /// Name of the index containing the event. + /// + [JsonInclude, JsonPropertyName("_index")] + public string Index { get; init; } + + /// + /// Original JSON body passed for the event at index time. + /// + [JsonInclude, JsonPropertyName("_source")] + public TEvent Source { get; init; } + [JsonInclude, JsonPropertyName("fields")] + [ReadOnlyFieldDictionaryConverter(typeof(IReadOnlyCollection))] + public IReadOnlyDictionary>? Fields { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Eql/HitsSequence.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Eql/HitsSequence.g.cs new file mode 100644 index 00000000000..9f291a12fad --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Eql/HitsSequence.g.cs @@ -0,0 +1,43 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Eql; + +public sealed partial class HitsSequence +{ + /// + /// Contains events matching the query. Each object represents a matching event. + /// + [JsonInclude, JsonPropertyName("events")] + public IReadOnlyCollection> Events { get; init; } + + /// + /// Shared field values used to constrain matches in the sequence. These are defined using the by keyword in the EQL query syntax. + /// + [JsonInclude, JsonPropertyName("join_keys")] + public IReadOnlyCollection JoinKeys { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStream.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStream.g.cs index cbfec13f296..767ac3a9ebd 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStream.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStream.g.cs @@ -69,7 +69,7 @@ public sealed partial class DataStream /// Contains the configuration for the data lifecycle management of this data stream. /// [JsonInclude, JsonPropertyName("lifecycle")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataLifecycleWithRollover? Lifecycle { get; init; } + public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleWithRollover? Lifecycle { get; init; } /// /// Name of the data stream. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs index 8c1e85d2b17..dd4b9fa2a51 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs @@ -27,10 +27,88 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; +/// +/// Data lifecycle denotes that a data stream is managed by the data stream lifecycle and contains the configuration. +/// public sealed partial class DataStreamLifecycle { - [JsonInclude, JsonPropertyName("lifecycle")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataLifecycle? Lifecycle { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } + [JsonInclude, JsonPropertyName("data_retention")] + public Elastic.Clients.Elasticsearch.Serverless.Duration? DataRetention { get; set; } + [JsonInclude, JsonPropertyName("downsampling")] + public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDownsampling? Downsampling { get; set; } +} + +/// +/// Data lifecycle denotes that a data stream is managed by the data stream lifecycle and contains the configuration. +/// +public sealed partial class DataStreamLifecycleDescriptor : SerializableDescriptor +{ + internal DataStreamLifecycleDescriptor(Action configure) => configure.Invoke(this); + + public DataStreamLifecycleDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Serverless.Duration? DataRetentionValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDownsampling? DownsamplingValue { get; set; } + private DataStreamLifecycleDownsamplingDescriptor DownsamplingDescriptor { get; set; } + private Action DownsamplingDescriptorAction { get; set; } + + public DataStreamLifecycleDescriptor DataRetention(Elastic.Clients.Elasticsearch.Serverless.Duration? dataRetention) + { + DataRetentionValue = dataRetention; + return Self; + } + + public DataStreamLifecycleDescriptor Downsampling(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDownsampling? downsampling) + { + DownsamplingDescriptor = null; + DownsamplingDescriptorAction = null; + DownsamplingValue = downsampling; + return Self; + } + + public DataStreamLifecycleDescriptor Downsampling(DataStreamLifecycleDownsamplingDescriptor descriptor) + { + DownsamplingValue = null; + DownsamplingDescriptorAction = null; + DownsamplingDescriptor = descriptor; + return Self; + } + + public DataStreamLifecycleDescriptor Downsampling(Action configure) + { + DownsamplingValue = null; + DownsamplingDescriptor = null; + DownsamplingDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (DataRetentionValue is not null) + { + writer.WritePropertyName("data_retention"); + JsonSerializer.Serialize(writer, DataRetentionValue, options); + } + + if (DownsamplingDescriptor is not null) + { + writer.WritePropertyName("downsampling"); + JsonSerializer.Serialize(writer, DownsamplingDescriptor, options); + } + else if (DownsamplingDescriptorAction is not null) + { + writer.WritePropertyName("downsampling"); + JsonSerializer.Serialize(writer, new DataStreamLifecycleDownsamplingDescriptor(DownsamplingDescriptorAction), options); + } + else if (DownsamplingValue is not null) + { + writer.WritePropertyName("downsampling"); + JsonSerializer.Serialize(writer, DownsamplingValue, options); + } + + writer.WriteEndObject(); + } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleDownsampling.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleDownsampling.g.cs new file mode 100644 index 00000000000..7cf82d806fe --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleDownsampling.g.cs @@ -0,0 +1,127 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; + +public sealed partial class DataStreamLifecycleDownsampling +{ + /// + /// The list of downsampling rounds to execute as part of this downsampling configuration + /// + [JsonInclude, JsonPropertyName("rounds")] + public ICollection Rounds { get; set; } +} + +public sealed partial class DataStreamLifecycleDownsamplingDescriptor : SerializableDescriptor +{ + internal DataStreamLifecycleDownsamplingDescriptor(Action configure) => configure.Invoke(this); + + public DataStreamLifecycleDownsamplingDescriptor() : base() + { + } + + private ICollection RoundsValue { get; set; } + private DownsamplingRoundDescriptor RoundsDescriptor { get; set; } + private Action RoundsDescriptorAction { get; set; } + private Action[] RoundsDescriptorActions { get; set; } + + /// + /// The list of downsampling rounds to execute as part of this downsampling configuration + /// + public DataStreamLifecycleDownsamplingDescriptor Rounds(ICollection rounds) + { + RoundsDescriptor = null; + RoundsDescriptorAction = null; + RoundsDescriptorActions = null; + RoundsValue = rounds; + return Self; + } + + public DataStreamLifecycleDownsamplingDescriptor Rounds(DownsamplingRoundDescriptor descriptor) + { + RoundsValue = null; + RoundsDescriptorAction = null; + RoundsDescriptorActions = null; + RoundsDescriptor = descriptor; + return Self; + } + + public DataStreamLifecycleDownsamplingDescriptor Rounds(Action configure) + { + RoundsValue = null; + RoundsDescriptor = null; + RoundsDescriptorActions = null; + RoundsDescriptorAction = configure; + return Self; + } + + public DataStreamLifecycleDownsamplingDescriptor Rounds(params Action[] configure) + { + RoundsValue = null; + RoundsDescriptor = null; + RoundsDescriptorAction = null; + RoundsDescriptorActions = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (RoundsDescriptor is not null) + { + writer.WritePropertyName("rounds"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, RoundsDescriptor, options); + writer.WriteEndArray(); + } + else if (RoundsDescriptorAction is not null) + { + writer.WritePropertyName("rounds"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new DownsamplingRoundDescriptor(RoundsDescriptorAction), options); + writer.WriteEndArray(); + } + else if (RoundsDescriptorActions is not null) + { + writer.WritePropertyName("rounds"); + writer.WriteStartArray(); + foreach (var action in RoundsDescriptorActions) + { + JsonSerializer.Serialize(writer, new DownsamplingRoundDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else + { + writer.WritePropertyName("rounds"); + JsonSerializer.Serialize(writer, RoundsValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataLifecycleExplain.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleExplain.g.cs similarity index 91% rename from src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataLifecycleExplain.g.cs rename to src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleExplain.g.cs index 706a9dd2b13..ceeb604e547 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataLifecycleExplain.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleExplain.g.cs @@ -27,7 +27,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; -public sealed partial class DataLifecycleExplain +public sealed partial class DataStreamLifecycleExplain { [JsonInclude, JsonPropertyName("error")] public string? Error { get; init; } @@ -38,9 +38,9 @@ public sealed partial class DataLifecycleExplain [JsonInclude, JsonPropertyName("index_creation_date_millis")] public long? IndexCreationDateMillis { get; init; } [JsonInclude, JsonPropertyName("lifecycle")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataLifecycleWithRollover? Lifecycle { get; init; } - [JsonInclude, JsonPropertyName("managed_by_dlm")] - public bool ManagedByDlm { get; init; } + public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleWithRollover? Lifecycle { get; init; } + [JsonInclude, JsonPropertyName("managed_by_lifecycle")] + public bool ManagedByLifecycle { get; init; } [JsonInclude, JsonPropertyName("rollover_date_millis")] public long? RolloverDateMillis { get; init; } [JsonInclude, JsonPropertyName("time_since_index_creation")] diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DlmRolloverConditions.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleRolloverConditions.g.cs similarity index 97% rename from src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DlmRolloverConditions.g.cs rename to src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleRolloverConditions.g.cs index 5deaddd1d3f..77837c6a2b1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DlmRolloverConditions.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleRolloverConditions.g.cs @@ -27,7 +27,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; -public sealed partial class DlmRolloverConditions +public sealed partial class DataStreamLifecycleRolloverConditions { [JsonInclude, JsonPropertyName("max_age")] public string? MaxAge { get; init; } diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataLifecycleWithRollover.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleWithRollover.g.cs similarity index 85% rename from src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataLifecycleWithRollover.g.cs rename to src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleWithRollover.g.cs index 6dfd7fa2cbf..22f9fa2aea1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataLifecycleWithRollover.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamLifecycleWithRollover.g.cs @@ -30,7 +30,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; /// /// Data lifecycle with rollover can be used to display the configuration including the default rollover conditions,
if asked.
///
-public sealed partial class DataLifecycleWithRollover +public sealed partial class DataStreamLifecycleWithRollover { /// /// If defined, every document added to this data stream will be stored at least for this time frame.
Any time after this duration the document could be deleted.
When empty, every document in this data stream will be stored indefinitely.
@@ -38,9 +38,15 @@ public sealed partial class DataLifecycleWithRollover [JsonInclude, JsonPropertyName("data_retention")] public Elastic.Clients.Elasticsearch.Serverless.Duration? DataRetention { get; init; } + /// + /// The downsampling configuration to execute for the managed backing index after rollover. + /// + [JsonInclude, JsonPropertyName("downsampling")] + public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleDownsampling? Downsampling { get; init; } + /// /// The conditions which will trigger the rollover of a backing index as configured by the cluster setting `cluster.lifecycle.default.rollover`.
This property is an implementation detail and it will only be retrieved when the query param `include_defaults` is set to true.
The contents of this field are subject to change.
///
[JsonInclude, JsonPropertyName("rollover")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DlmRolloverConditions? Rollover { get; init; } + public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleRolloverConditions? Rollover { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs new file mode 100644 index 00000000000..8094905750c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs @@ -0,0 +1,36 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; + +public sealed partial class DataStreamWithLifecycle +{ + [JsonInclude, JsonPropertyName("lifecycle")] + public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle? Lifecycle { get; init; } + [JsonInclude, JsonPropertyName("name")] + public string Name { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataLifecycle.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DownsampleConfig.g.cs similarity index 60% rename from src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataLifecycle.g.cs rename to src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DownsampleConfig.g.cs index ccb98f655ae..feb7e5d3984 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DataLifecycle.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DownsampleConfig.g.cs @@ -27,43 +27,39 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; -/// -/// Data lifecycle denotes that a data stream is managed by DLM and contains the configuration. -/// -public sealed partial class DataLifecycle +public sealed partial class DownsampleConfig { - [JsonInclude, JsonPropertyName("data_retention")] - public Elastic.Clients.Elasticsearch.Serverless.Duration? DataRetention { get; set; } + /// + /// The interval at which to aggregate the original time series index. + /// + [JsonInclude, JsonPropertyName("fixed_interval")] + public string FixedInterval { get; set; } } -/// -/// Data lifecycle denotes that a data stream is managed by DLM and contains the configuration. -/// -public sealed partial class DataLifecycleDescriptor : SerializableDescriptor +public sealed partial class DownsampleConfigDescriptor : SerializableDescriptor { - internal DataLifecycleDescriptor(Action configure) => configure.Invoke(this); + internal DownsampleConfigDescriptor(Action configure) => configure.Invoke(this); - public DataLifecycleDescriptor() : base() + public DownsampleConfigDescriptor() : base() { } - private Elastic.Clients.Elasticsearch.Serverless.Duration? DataRetentionValue { get; set; } + private string FixedIntervalValue { get; set; } - public DataLifecycleDescriptor DataRetention(Elastic.Clients.Elasticsearch.Serverless.Duration? dataRetention) + /// + /// The interval at which to aggregate the original time series index. + /// + public DownsampleConfigDescriptor FixedInterval(string fixedInterval) { - DataRetentionValue = dataRetention; + FixedIntervalValue = fixedInterval; return Self; } protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - if (DataRetentionValue is not null) - { - writer.WritePropertyName("data_retention"); - JsonSerializer.Serialize(writer, DataRetentionValue, options); - } - + writer.WritePropertyName("fixed_interval"); + JsonSerializer.Serialize(writer, FixedIntervalValue, options); writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DownsamplingRound.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DownsamplingRound.g.cs new file mode 100644 index 00000000000..fa1e551f397 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/DownsamplingRound.g.cs @@ -0,0 +1,117 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; + +public sealed partial class DownsamplingRound +{ + /// + /// The duration since rollover when this downsampling round should execute + /// + [JsonInclude, JsonPropertyName("after")] + public Elastic.Clients.Elasticsearch.Serverless.Duration After { get; set; } + + /// + /// The downsample configuration to execute. + /// + [JsonInclude, JsonPropertyName("config")] + public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DownsampleConfig Config { get; set; } +} + +public sealed partial class DownsamplingRoundDescriptor : SerializableDescriptor +{ + internal DownsamplingRoundDescriptor(Action configure) => configure.Invoke(this); + + public DownsamplingRoundDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Serverless.Duration AfterValue { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DownsampleConfig ConfigValue { get; set; } + private DownsampleConfigDescriptor ConfigDescriptor { get; set; } + private Action ConfigDescriptorAction { get; set; } + + /// + /// The duration since rollover when this downsampling round should execute + /// + public DownsamplingRoundDescriptor After(Elastic.Clients.Elasticsearch.Serverless.Duration after) + { + AfterValue = after; + return Self; + } + + /// + /// The downsample configuration to execute. + /// + public DownsamplingRoundDescriptor Config(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DownsampleConfig config) + { + ConfigDescriptor = null; + ConfigDescriptorAction = null; + ConfigValue = config; + return Self; + } + + public DownsamplingRoundDescriptor Config(DownsampleConfigDescriptor descriptor) + { + ConfigValue = null; + ConfigDescriptorAction = null; + ConfigDescriptor = descriptor; + return Self; + } + + public DownsamplingRoundDescriptor Config(Action configure) + { + ConfigValue = null; + ConfigDescriptor = null; + ConfigDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("after"); + JsonSerializer.Serialize(writer, AfterValue, options); + if (ConfigDescriptor is not null) + { + writer.WritePropertyName("config"); + JsonSerializer.Serialize(writer, ConfigDescriptor, options); + } + else if (ConfigDescriptorAction is not null) + { + writer.WritePropertyName("config"); + JsonSerializer.Serialize(writer, new DownsampleConfigDescriptor(ConfigDescriptorAction), options); + } + else + { + writer.WritePropertyName("config"); + JsonSerializer.Serialize(writer, ConfigValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexState.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexState.g.cs index d4f3cb6564c..6657a582ce1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexState.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexState.g.cs @@ -44,7 +44,7 @@ public sealed partial class IndexState /// Data lifecycle applicable if this is a data stream. ///
[JsonInclude, JsonPropertyName("lifecycle")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataLifecycle? Lifecycle { get; set; } + public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle? Lifecycle { get; set; } [JsonInclude, JsonPropertyName("mappings")] public Elastic.Clients.Elasticsearch.Serverless.Mapping.TypeMapping? Mappings { get; set; } [JsonInclude, JsonPropertyName("settings")] @@ -70,9 +70,9 @@ public IndexStateDescriptor() : base() private Action> SettingsDescriptorAction { get; set; } private IDictionary? AliasesValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.DataStreamName? DataStreamValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataLifecycle? LifecycleValue { get; set; } - private DataLifecycleDescriptor LifecycleDescriptor { get; set; } - private Action LifecycleDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle? LifecycleValue { get; set; } + private DataStreamLifecycleDescriptor LifecycleDescriptor { get; set; } + private Action LifecycleDescriptorAction { get; set; } /// /// Default settings, included when the request's `include_default` is `true`. @@ -164,7 +164,7 @@ public IndexStateDescriptor DataStream(Elastic.Clients.Elasticsearch. /// /// Data lifecycle applicable if this is a data stream. /// - public IndexStateDescriptor Lifecycle(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataLifecycle? lifecycle) + public IndexStateDescriptor Lifecycle(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle? lifecycle) { LifecycleDescriptor = null; LifecycleDescriptorAction = null; @@ -172,7 +172,7 @@ public IndexStateDescriptor Lifecycle(Elastic.Clients.Elasticsearch.S return Self; } - public IndexStateDescriptor Lifecycle(DataLifecycleDescriptor descriptor) + public IndexStateDescriptor Lifecycle(DataStreamLifecycleDescriptor descriptor) { LifecycleValue = null; LifecycleDescriptorAction = null; @@ -180,7 +180,7 @@ public IndexStateDescriptor Lifecycle(DataLifecycleDescriptor descrip return Self; } - public IndexStateDescriptor Lifecycle(Action configure) + public IndexStateDescriptor Lifecycle(Action configure) { LifecycleValue = null; LifecycleDescriptor = null; @@ -259,7 +259,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o else if (LifecycleDescriptorAction is not null) { writer.WritePropertyName("lifecycle"); - JsonSerializer.Serialize(writer, new DataLifecycleDescriptor(LifecycleDescriptorAction), options); + JsonSerializer.Serialize(writer, new DataStreamLifecycleDescriptor(LifecycleDescriptorAction), options); } else if (LifecycleValue is not null) { @@ -290,9 +290,9 @@ public IndexStateDescriptor() : base() private Action SettingsDescriptorAction { get; set; } private IDictionary? AliasesValue { get; set; } private Elastic.Clients.Elasticsearch.Serverless.DataStreamName? DataStreamValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataLifecycle? LifecycleValue { get; set; } - private DataLifecycleDescriptor LifecycleDescriptor { get; set; } - private Action LifecycleDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle? LifecycleValue { get; set; } + private DataStreamLifecycleDescriptor LifecycleDescriptor { get; set; } + private Action LifecycleDescriptorAction { get; set; } /// /// Default settings, included when the request's `include_default` is `true`. @@ -384,7 +384,7 @@ public IndexStateDescriptor DataStream(Elastic.Clients.Elasticsearch.Serverless. /// /// Data lifecycle applicable if this is a data stream. /// - public IndexStateDescriptor Lifecycle(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataLifecycle? lifecycle) + public IndexStateDescriptor Lifecycle(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle? lifecycle) { LifecycleDescriptor = null; LifecycleDescriptorAction = null; @@ -392,7 +392,7 @@ public IndexStateDescriptor Lifecycle(Elastic.Clients.Elasticsearch.Serverless.I return Self; } - public IndexStateDescriptor Lifecycle(DataLifecycleDescriptor descriptor) + public IndexStateDescriptor Lifecycle(DataStreamLifecycleDescriptor descriptor) { LifecycleValue = null; LifecycleDescriptorAction = null; @@ -400,7 +400,7 @@ public IndexStateDescriptor Lifecycle(DataLifecycleDescriptor descriptor) return Self; } - public IndexStateDescriptor Lifecycle(Action configure) + public IndexStateDescriptor Lifecycle(Action configure) { LifecycleValue = null; LifecycleDescriptor = null; @@ -479,7 +479,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o else if (LifecycleDescriptorAction is not null) { writer.WritePropertyName("lifecycle"); - JsonSerializer.Serialize(writer, new DataLifecycleDescriptor(LifecycleDescriptorAction), options); + JsonSerializer.Serialize(writer, new DataStreamLifecycleDescriptor(LifecycleDescriptorAction), options); } else if (LifecycleValue is not null) { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplateMapping.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplateMapping.g.cs index 75f9ea365a7..0967ddf9688 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplateMapping.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplateMapping.g.cs @@ -35,7 +35,7 @@ public sealed partial class IndexTemplateMapping [JsonInclude, JsonPropertyName("aliases")] public IDictionary? Aliases { get; set; } [JsonInclude, JsonPropertyName("lifecycle")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataLifecycle? Lifecycle { get; set; } + public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle? Lifecycle { get; set; } /// /// Mapping for fields in the index.
If specified, this mapping can include field names, field data types, and mapping parameters.
@@ -65,9 +65,9 @@ public IndexTemplateMappingDescriptor() : base() private IndexSettingsDescriptor SettingsDescriptor { get; set; } private Action> SettingsDescriptorAction { get; set; } private IDictionary? AliasesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataLifecycle? LifecycleValue { get; set; } - private DataLifecycleDescriptor LifecycleDescriptor { get; set; } - private Action LifecycleDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle? LifecycleValue { get; set; } + private DataStreamLifecycleDescriptor LifecycleDescriptor { get; set; } + private Action LifecycleDescriptorAction { get; set; } /// /// Mapping for fields in the index.
If specified, this mapping can include field names, field data types, and mapping parameters.
@@ -132,7 +132,7 @@ public IndexTemplateMappingDescriptor Aliases(Func Lifecycle(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataLifecycle? lifecycle) + public IndexTemplateMappingDescriptor Lifecycle(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle? lifecycle) { LifecycleDescriptor = null; LifecycleDescriptorAction = null; @@ -140,7 +140,7 @@ public IndexTemplateMappingDescriptor Lifecycle(Elastic.Clients.Elast return Self; } - public IndexTemplateMappingDescriptor Lifecycle(DataLifecycleDescriptor descriptor) + public IndexTemplateMappingDescriptor Lifecycle(DataStreamLifecycleDescriptor descriptor) { LifecycleValue = null; LifecycleDescriptorAction = null; @@ -148,7 +148,7 @@ public IndexTemplateMappingDescriptor Lifecycle(DataLifecycleDescript return Self; } - public IndexTemplateMappingDescriptor Lifecycle(Action configure) + public IndexTemplateMappingDescriptor Lifecycle(Action configure) { LifecycleValue = null; LifecycleDescriptor = null; @@ -205,7 +205,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o else if (LifecycleDescriptorAction is not null) { writer.WritePropertyName("lifecycle"); - JsonSerializer.Serialize(writer, new DataLifecycleDescriptor(LifecycleDescriptorAction), options); + JsonSerializer.Serialize(writer, new DataStreamLifecycleDescriptor(LifecycleDescriptorAction), options); } else if (LifecycleValue is not null) { @@ -232,9 +232,9 @@ public IndexTemplateMappingDescriptor() : base() private IndexSettingsDescriptor SettingsDescriptor { get; set; } private Action SettingsDescriptorAction { get; set; } private IDictionary? AliasesValue { get; set; } - private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataLifecycle? LifecycleValue { get; set; } - private DataLifecycleDescriptor LifecycleDescriptor { get; set; } - private Action LifecycleDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycle? LifecycleValue { get; set; } + private DataStreamLifecycleDescriptor LifecycleDescriptor { get; set; } + private Action LifecycleDescriptorAction { get; set; } /// /// Mapping for fields in the index.
If specified, this mapping can include field names, field data types, and mapping parameters.
@@ -299,7 +299,7 @@ public IndexTemplateMappingDescriptor Aliases(Func configure) + public IndexTemplateMappingDescriptor Lifecycle(Action configure) { LifecycleValue = null; LifecycleDescriptor = null; @@ -372,7 +372,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o else if (LifecycleDescriptorAction is not null) { writer.WritePropertyName("lifecycle"); - JsonSerializer.Serialize(writer, new DataLifecycleDescriptor(LifecycleDescriptorAction), options); + JsonSerializer.Serialize(writer, new DataStreamLifecycleDescriptor(LifecycleDescriptorAction), options); } else if (LifecycleValue is not null) { diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplateSummary.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplateSummary.g.cs index 51ce582bba1..63f12296520 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplateSummary.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/IndexManagement/IndexTemplateSummary.g.cs @@ -36,7 +36,7 @@ public sealed partial class IndexTemplateSummary [ReadOnlyIndexNameDictionaryConverter(typeof(Elastic.Clients.Elasticsearch.Serverless.IndexManagement.Alias))] public IReadOnlyDictionary? Aliases { get; init; } [JsonInclude, JsonPropertyName("lifecycle")] - public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataLifecycleWithRollover? Lifecycle { get; init; } + public Elastic.Clients.Elasticsearch.Serverless.IndexManagement.DataStreamLifecycleWithRollover? Lifecycle { get; init; } /// /// Mapping for fields in the index.
If specified, this mapping can include field names, field data types, and mapping parameters.
diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Sql/Column.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Sql/Column.g.cs new file mode 100644 index 00000000000..89f4e40f009 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Sql/Column.g.cs @@ -0,0 +1,36 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Sql; + +public sealed partial class Column +{ + [JsonInclude, JsonPropertyName("name")] + public string Name { get; init; } + [JsonInclude, JsonPropertyName("type")] + public string Type { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TaskFailure.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TaskFailure.g.cs new file mode 100644 index 00000000000..5ca1c93d417 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/TaskFailure.g.cs @@ -0,0 +1,40 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless; + +public sealed partial class TaskFailure +{ + [JsonInclude, JsonPropertyName("node_id")] + public string NodeId { get; init; } + [JsonInclude, JsonPropertyName("reason")] + public Elastic.Clients.Elasticsearch.Serverless.ErrorCause Reason { get; init; } + [JsonInclude, JsonPropertyName("status")] + public string Status { get; init; } + [JsonInclude, JsonPropertyName("task_id")] + public long TaskId { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/NodeTasks.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/NodeTasks.g.cs new file mode 100644 index 00000000000..cc5ab990522 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/NodeTasks.g.cs @@ -0,0 +1,46 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Tasks; + +public sealed partial class NodeTasks +{ + [JsonInclude, JsonPropertyName("attributes")] + public IReadOnlyDictionary? Attributes { get; init; } + [JsonInclude, JsonPropertyName("host")] + public string? Host { get; init; } + [JsonInclude, JsonPropertyName("ip")] + public string? Ip { get; init; } + [JsonInclude, JsonPropertyName("name")] + public string? Name { get; init; } + [JsonInclude, JsonPropertyName("roles")] + public IReadOnlyCollection? Roles { get; init; } + [JsonInclude, JsonPropertyName("tasks")] + public IReadOnlyDictionary Tasks { get; init; } + [JsonInclude, JsonPropertyName("transport_address")] + public string? TransportAddress { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/ParentTaskInfo.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/ParentTaskInfo.g.cs new file mode 100644 index 00000000000..4a0dacf03d0 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/ParentTaskInfo.g.cs @@ -0,0 +1,60 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Tasks; + +public sealed partial class ParentTaskInfo +{ + [JsonInclude, JsonPropertyName("action")] + public string Action { get; init; } + [JsonInclude, JsonPropertyName("cancellable")] + public bool Cancellable { get; init; } + [JsonInclude, JsonPropertyName("cancelled")] + public bool? Cancelled { get; init; } + [JsonInclude, JsonPropertyName("children")] + public IReadOnlyCollection? Children { get; init; } + [JsonInclude, JsonPropertyName("description")] + public string? Description { get; init; } + [JsonInclude, JsonPropertyName("headers")] + public IReadOnlyDictionary Headers { get; init; } + [JsonInclude, JsonPropertyName("id")] + public long Id { get; init; } + [JsonInclude, JsonPropertyName("node")] + public string Node { get; init; } + [JsonInclude, JsonPropertyName("parent_task_id")] + public Elastic.Clients.Elasticsearch.Serverless.TaskId? ParentTaskId { get; init; } + [JsonInclude, JsonPropertyName("running_time")] + public Elastic.Clients.Elasticsearch.Serverless.Duration? RunningTime { get; init; } + [JsonInclude, JsonPropertyName("running_time_in_nanos")] + public long RunningTimeInNanos { get; init; } + [JsonInclude, JsonPropertyName("start_time_in_millis")] + public long StartTimeInMillis { get; init; } + [JsonInclude, JsonPropertyName("status")] + public object? Status { get; init; } + [JsonInclude, JsonPropertyName("type")] + public string Type { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/TaskInfos.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/TaskInfos.g.cs new file mode 100644 index 00000000000..8be7e3c7cff --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Types/Tasks/TaskInfos.g.cs @@ -0,0 +1,42 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Serverless.Core; +using Elastic.Clients.Elasticsearch.Serverless.Fluent; +using Elastic.Clients.Elasticsearch.Serverless.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Serverless.Tasks; + +public sealed partial class TaskInfos : Union, IReadOnlyDictionary> +{ + public TaskInfos(IReadOnlyCollection flat) : base(flat) + { + } + + public TaskInfos(IReadOnlyDictionary grouped) : base(grouped) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Api/IndexManagement/GetTemplateResponse.cs b/src/Elastic.Clients.Elasticsearch/Api/IndexManagement/GetTemplateResponse.cs similarity index 81% rename from src/Elastic.Clients.Elasticsearch.Shared/Api/IndexManagement/GetTemplateResponse.cs rename to src/Elastic.Clients.Elasticsearch/Api/IndexManagement/GetTemplateResponse.cs index b73a4f1aeea..bc09793b8ad 100644 --- a/src/Elastic.Clients.Elasticsearch.Shared/Api/IndexManagement/GetTemplateResponse.cs +++ b/src/Elastic.Clients.Elasticsearch/Api/IndexManagement/GetTemplateResponse.cs @@ -5,11 +5,7 @@ using System.Collections.Generic; using System.Text.Json.Serialization; -#if ELASTICSEARCH_SERVERLESS -namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement; -#else namespace Elastic.Clients.Elasticsearch.IndexManagement; -#endif public partial class GetTemplateResponse { diff --git a/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj b/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj index bbe4db80562..dffe7951bb9 100644 --- a/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj +++ b/src/Elastic.Clients.Elasticsearch/Elastic.Clients.Elasticsearch.csproj @@ -40,5 +40,8 @@ + + + \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs index b139da2e320..ae8e875fd6d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/BulkRequest.g.cs @@ -32,53 +32,53 @@ namespace Elastic.Clients.Elasticsearch; public sealed class BulkRequestParameters : RequestParameters { /// - /// The pipeline id to preprocess incoming documents with + /// ID of the pipeline to use to preprocess incoming documents.
If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request.
If a final pipeline is configured it will always run, regardless of the value of this parameter.
///
public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } /// - /// If `true` 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` (the default) then do nothing with refreshes. + /// If `true`, Elasticsearch refreshes 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` do nothing with refreshes.
Valid values: `true`, `false`, `wait_for`.
///
public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specific routing value + /// Custom value used to route operations to a specific shard. /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// True or false to return the _source field or not, or default list of fields to return, can be overridden on each sub-request + /// `true` or `false` to return the `_source` field or not, or a list of fields to return. /// public Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } /// - /// Default list of fields to exclude from the returned _source field, can be overridden on each sub-request + /// A comma-separated list of source fields to exclude from the response. /// public Elastic.Clients.Elasticsearch.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } /// - /// Default list of fields to extract and return from the _source field, can be overridden on each sub-request + /// A comma-separated list of source fields to include in the response. /// public Elastic.Clients.Elasticsearch.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } /// - /// Explicit operation timeout + /// Period each action waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Sets the number of shard copies that must be active before proceeding with the bulk operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// The number of shard copies that must be active before proceeding with the operation.
Set to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } /// - /// Sets require_alias for all incoming documents. Defaults to unset (false) + /// If `true`, the request’s actions must target an index alias. /// public bool? RequireAlias { get => Q("require_alias"); set => Q("require_alias", value); } } /// -/// Allows to perform multiple index/update/delete operations in a single request. +/// Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
///
public sealed partial class BulkRequest : PlainRequest { @@ -99,62 +99,62 @@ public BulkRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r => r internal override string OperationName => "bulk"; /// - /// The pipeline id to preprocess incoming documents with + /// ID of the pipeline to use to preprocess incoming documents.
If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request.
If a final pipeline is configured it will always run, regardless of the value of this parameter.
///
[JsonIgnore] public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } /// - /// If `true` 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` (the default) then do nothing with refreshes. + /// If `true`, Elasticsearch refreshes 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` do nothing with refreshes.
Valid values: `true`, `false`, `wait_for`.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specific routing value + /// Custom value used to route operations to a specific shard. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// True or false to return the _source field or not, or default list of fields to return, can be overridden on each sub-request + /// `true` or `false` to return the `_source` field or not, or a list of fields to return. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } /// - /// Default list of fields to exclude from the returned _source field, can be overridden on each sub-request + /// A comma-separated list of source fields to exclude from the response. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } /// - /// Default list of fields to extract and return from the _source field, can be overridden on each sub-request + /// A comma-separated list of source fields to include in the response. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } /// - /// Explicit operation timeout + /// Period each action waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Sets the number of shard copies that must be active before proceeding with the bulk operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// The number of shard copies that must be active before proceeding with the operation.
Set to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } /// - /// Sets require_alias for all incoming documents. Defaults to unset (false) + /// If `true`, the request’s actions must target an index alias. /// [JsonIgnore] public bool? RequireAlias { get => Q("require_alias"); set => Q("require_alias", value); } } /// -/// Allows to perform multiple index/update/delete operations in a single request. +/// Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
///
public sealed partial class BulkRequestDescriptor : RequestDescriptor, BulkRequestParameters> { @@ -194,7 +194,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Allows to perform multiple index/update/delete operations in a single request. +/// Performs multiple indexing or delete operations in a single API call.
This reduces overhead and can greatly increase indexing speed.
///
public sealed partial class BulkRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollRequest.g.cs index a79849c8f98..a16e7da0f75 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClearScrollRequest.g.cs @@ -34,7 +34,7 @@ public sealed class ClearScrollRequestParameters : RequestParameters } /// -/// Explicitly clears the search context for a scroll. +/// Clears the search context and results for a scrolling search. /// public sealed partial class ClearScrollRequest : PlainRequest { @@ -46,12 +46,15 @@ public sealed partial class ClearScrollRequest : PlainRequest "clear_scroll"; + /// + /// Scroll IDs to clear.
To clear all scroll IDs, use `_all`.
+ ///
[JsonInclude, JsonPropertyName("scroll_id")] public Elastic.Clients.Elasticsearch.ScrollIds? ScrollId { get; set; } } /// -/// Explicitly clears the search context for a scroll. +/// Clears the search context and results for a scrolling search. /// public sealed partial class ClearScrollRequestDescriptor : RequestDescriptor { @@ -71,6 +74,9 @@ public ClearScrollRequestDescriptor() private Elastic.Clients.Elasticsearch.ScrollIds? ScrollIdValue { get; set; } + /// + /// Scroll IDs to clear.
To clear all scroll IDs, use `_all`.
+ ///
public ClearScrollRequestDescriptor ScrollId(Elastic.Clients.Elasticsearch.ScrollIds? scrollId) { ScrollIdValue = scrollId; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeRequest.g.cs index 2f4780c3143..39f62ef7457 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ClosePointInTimeRequest.g.cs @@ -34,7 +34,7 @@ public sealed class ClosePointInTimeRequestParameters : RequestParameters } /// -/// Close a point in time +/// Closes a point-in-time. /// public sealed partial class ClosePointInTimeRequest : PlainRequest { @@ -46,12 +46,15 @@ public sealed partial class ClosePointInTimeRequest : PlainRequest "close_point_in_time"; + /// + /// The ID of the point-in-time. + /// [JsonInclude, JsonPropertyName("id")] public Elastic.Clients.Elasticsearch.Id Id { get; set; } } /// -/// Close a point in time +/// Closes a point-in-time. /// public sealed partial class ClosePointInTimeRequestDescriptor : RequestDescriptor { @@ -71,6 +74,9 @@ public ClosePointInTimeRequestDescriptor() private Elastic.Clients.Elasticsearch.Id IdValue { get; set; } + /// + /// The ID of the point-in-time. + /// public ClosePointInTimeRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id id) { IdValue = id; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs index 96f54759085..e7efa60f0a2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs @@ -32,72 +32,72 @@ namespace Elastic.Clients.Elasticsearch; public sealed class CountRequestParameters : RequestParameters { /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) + /// 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.
///
public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } /// - /// The analyzer to use for the query string + /// Analyzer to use for the query string.
This parameter can only be used when the `q` query string parameter is specified.
///
public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } /// - /// Specify whether wildcard and prefix queries should be analyzed (default: false) + /// If `true`, wildcard and prefix queries are analyzed.
This parameter can only be used when the `q` query string parameter is specified.
///
public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } /// - /// The default operator for query string query (AND or OR) + /// The default operator for query string query: `AND` or `OR`.
This parameter can only be used when the `q` query string parameter is specified.
///
public Elastic.Clients.Elasticsearch.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } /// - /// The field to use as default where no field prefix is given in the query string + /// Field to use as default where no field prefix is given in the query string.
This parameter can only be used when the `q` query string parameter is specified.
///
public string? Df { get => Q("df"); set => Q("df", value); } /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. + /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`.
///
public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } /// - /// Whether specified concrete, expanded or aliased indices should be ignored when throttled + /// If `true`, concrete, expanded or aliased indices are ignored when frozen. /// public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If `false`, the request returns an error if it targets a missing or closed index. /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } /// - /// Specify whether format-based query failures (such as providing text to a numeric field) should be ignored + /// If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. /// public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } /// - /// Include only documents with a specific `_score` value in the result + /// Sets the minimum `_score` value that documents must have to be included in the result. /// public double? MinScore { get => Q("min_score"); set => Q("min_score", value); } /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// A comma-separated list of specific routing values + /// Custom value used to route operations to a specific shard. /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// The maximum count for each shard, upon reaching which the query execution will terminate early + /// Maximum number of documents to collect for each shard.
If a query reaches this limit, Elasticsearch terminates the query early.
Elasticsearch collects documents before sorting.
///
public long? TerminateAfter { get => Q("terminate_after"); set => Q("terminate_after", value); } /// - /// Query in the Lucene query string syntax + /// Query in the Lucene query string syntax. /// public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } } @@ -124,88 +124,92 @@ public CountRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => internal override string OperationName => "count"; /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) + /// 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.
///
[JsonIgnore] public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } /// - /// The analyzer to use for the query string + /// Analyzer to use for the query string.
This parameter can only be used when the `q` query string parameter is specified.
///
[JsonIgnore] public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } /// - /// Specify whether wildcard and prefix queries should be analyzed (default: false) + /// If `true`, wildcard and prefix queries are analyzed.
This parameter can only be used when the `q` query string parameter is specified.
///
[JsonIgnore] public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } /// - /// The default operator for query string query (AND or OR) + /// The default operator for query string query: `AND` or `OR`.
This parameter can only be used when the `q` query string parameter is specified.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } /// - /// The field to use as default where no field prefix is given in the query string + /// Field to use as default where no field prefix is given in the query string.
This parameter can only be used when the `q` query string parameter is specified.
///
[JsonIgnore] public string? Df { get => Q("df"); set => Q("df", value); } /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. + /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`.
///
[JsonIgnore] public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } /// - /// Whether specified concrete, expanded or aliased indices should be ignored when throttled + /// If `true`, concrete, expanded or aliased indices are ignored when frozen. /// [JsonIgnore] public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If `false`, the request returns an error if it targets a missing or closed index. /// [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } /// - /// Specify whether format-based query failures (such as providing text to a numeric field) should be ignored + /// If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. /// [JsonIgnore] public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } /// - /// Include only documents with a specific `_score` value in the result + /// Sets the minimum `_score` value that documents must have to be included in the result. /// [JsonIgnore] public double? MinScore { get => Q("min_score"); set => Q("min_score", value); } /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
[JsonIgnore] public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// A comma-separated list of specific routing values + /// Custom value used to route operations to a specific shard. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// The maximum count for each shard, upon reaching which the query execution will terminate early + /// Maximum number of documents to collect for each shard.
If a query reaches this limit, Elasticsearch terminates the query early.
Elasticsearch collects documents before sorting.
///
[JsonIgnore] public long? TerminateAfter { get => Q("terminate_after"); set => Q("terminate_after", value); } /// - /// Query in the Lucene query string syntax + /// Query in the Lucene query string syntax. /// [JsonIgnore] public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } + + /// + /// Defines the search definition using the Query DSL. + /// [JsonInclude, JsonPropertyName("query")] public Elastic.Clients.Elasticsearch.QueryDsl.Query? Query { get; set; } } @@ -258,6 +262,9 @@ public CountRequestDescriptor Indices(Elastic.Clients.Elasticsearch.I private QueryDsl.QueryDescriptor QueryDescriptor { get; set; } private Action> QueryDescriptorAction { get; set; } + /// + /// Defines the search definition using the Query DSL. + /// public CountRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query? query) { QueryDescriptor = null; @@ -353,6 +360,9 @@ public CountRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? ind private QueryDsl.QueryDescriptor QueryDescriptor { get; set; } private Action QueryDescriptorAction { get; set; } + /// + /// Defines the search definition using the Query DSL. + /// public CountRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query? query) { QueryDescriptor = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateRequest.g.cs index d5de217049f..506b4fda85b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CreateRequest.g.cs @@ -32,44 +32,43 @@ namespace Elastic.Clients.Elasticsearch; public sealed class CreateRequestParameters : RequestParameters { /// - /// The pipeline id to preprocess incoming documents with + /// ID of the pipeline to use to preprocess incoming documents.
If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request.
If a final pipeline is configured it will always run, regardless of the value of this parameter.
///
public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } /// - /// If `true` 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` (the default) then do nothing with refreshes. + /// If `true`, Elasticsearch refreshes 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` do nothing with refreshes.
Valid values: `true`, `false`, `wait_for`.
///
public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specific routing value + /// Custom value used to route operations to a specific shard. /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Explicit operation timeout + /// Period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Explicit version number for concurrency control + /// Explicit version number for concurrency control.
The specified version must match the current version of the document for the request to succeed.
///
public long? Version { get => Q("version"); set => Q("version", value); } /// - /// Specific version type + /// Specific version type: `external`, `external_gte`. /// public Elastic.Clients.Elasticsearch.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } /// - /// Sets the number of shard copies that must be active before proceeding with the index operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// The number of shard copies that must be active before proceeding with the operation.
Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } } /// -/// Creates a new document in the index. -/// Returns a 409 response when a document with a same ID already exists in the index. +/// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
///
public sealed partial class CreateRequest : PlainRequest { @@ -89,51 +88,50 @@ public CreateRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie public TDocument Document { get; set; } /// - /// The pipeline id to preprocess incoming documents with + /// ID of the pipeline to use to preprocess incoming documents.
If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request.
If a final pipeline is configured it will always run, regardless of the value of this parameter.
///
[JsonIgnore] public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } /// - /// If `true` 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` (the default) then do nothing with refreshes. + /// If `true`, Elasticsearch refreshes 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` do nothing with refreshes.
Valid values: `true`, `false`, `wait_for`.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specific routing value + /// Custom value used to route operations to a specific shard. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Explicit operation timeout + /// Period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Explicit version number for concurrency control + /// Explicit version number for concurrency control.
The specified version must match the current version of the document for the request to succeed.
///
[JsonIgnore] public long? Version { get => Q("version"); set => Q("version", value); } /// - /// Specific version type + /// Specific version type: `external`, `external_gte`. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } /// - /// Sets the number of shard copies that must be active before proceeding with the index operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// The number of shard copies that must be active before proceeding with the operation.
Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } } /// -/// Creates a new document in the index. -/// Returns a 409 response when a document with a same ID already exists in the index. +/// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
///
public sealed partial class CreateRequestDescriptor : RequestDescriptor, CreateRequestParameters> { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs index 29410972eb7..3496d817a04 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs @@ -32,37 +32,37 @@ namespace Elastic.Clients.Elasticsearch; public sealed class DeleteByQueryRequestParameters : RequestParameters { /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) + /// 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`.
///
public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } /// - /// The analyzer to use for the query string + /// Analyzer to use for the query string. /// public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } /// - /// Specify whether wildcard and prefix queries should be analyzed (default: false) + /// If `true`, wildcard and prefix queries are analyzed. /// public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } /// - /// What to do when the delete by query hits version conflicts? + /// What to do if delete by query hits version conflicts: `abort` or `proceed`. /// public Elastic.Clients.Elasticsearch.Conflicts? Conflicts { get => Q("conflicts"); set => Q("conflicts", value); } /// - /// The default operator for query string query (AND or OR) + /// The default operator for query string query: `AND` or `OR`. /// public Elastic.Clients.Elasticsearch.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } /// - /// The field to use as default where no field prefix is given in the query string + /// Field to use as default where no field prefix is given in the query string. /// public string? Df { get => Q("df"); set => Q("df", value); } /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. + /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
///
public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } @@ -72,108 +72,108 @@ public sealed class DeleteByQueryRequestParameters : RequestParameters public long? From { get => Q("from"); set => Q("from", value); } /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If `false`, the request returns an error if it targets a missing or closed index. /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } /// - /// Specify whether format-based query failures (such as providing text to a numeric field) should be ignored + /// If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. /// public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Should the affected indexes be refreshed? + /// If `true`, Elasticsearch refreshes all shards involved in the delete by query after the request completes. /// public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specify if request cache should be used for this request or not, defaults to index level setting + /// If `true`, the request cache is used for this request.
Defaults to the index-level setting.
///
public bool? RequestCache { get => Q("request_cache"); set => Q("request_cache", value); } /// - /// The throttle for this request in sub-requests per second. -1 means no throttle. + /// The throttle for this request in sub-requests per second. /// public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } /// - /// A comma-separated list of specific routing values + /// Custom value used to route operations to a specific shard. /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Query in the Lucene query string syntax + /// Query in the Lucene query string syntax. /// public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } /// - /// Specify how long a consistent view of the index should be maintained for scrolled search + /// Period to retain the search context for scrolling. /// public Elastic.Clients.Elasticsearch.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); } /// - /// Size on the scroll request powering the delete by query + /// Size of the scroll request that powers the operation. /// public long? ScrollSize { get => Q("scroll_size"); set => Q("scroll_size", value); } /// - /// Explicit timeout for each search request. Defaults to no timeout. + /// Explicit timeout for each search request.
Defaults to no timeout.
///
public Elastic.Clients.Elasticsearch.Duration? SearchTimeout { get => Q("search_timeout"); set => Q("search_timeout", value); } /// - /// Search operation type + /// The type of the search operation.
Available options: `query_then_fetch`, `dfs_query_then_fetch`.
///
public Elastic.Clients.Elasticsearch.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } /// - /// The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be set to `auto`. + /// The number of slices this task should be divided into. /// public Elastic.Clients.Elasticsearch.Slices? Slices { get => Q("slices"); set => Q("slices", value); } /// - /// A comma-separated list of : pairs + /// A comma-separated list of : pairs. /// public ICollection? Sort { get => Q?>("sort"); set => Q("sort", value); } /// - /// Specific 'tag' of the request for logging and statistical purposes + /// Specific `tag` of the request for logging and statistical purposes. /// public ICollection? Stats { get => Q?>("stats"); set => Q("stats", value); } /// - /// The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early. + /// Maximum number of documents to collect for each shard.
If a query reaches this limit, Elasticsearch terminates the query early.
Elasticsearch collects documents before sorting.
Use with caution.
Elasticsearch applies this parameter to each shard handling the request.
When possible, let Elasticsearch perform early termination automatically.
Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers.
///
public long? TerminateAfter { get => Q("terminate_after"); set => Q("terminate_after", value); } /// - /// Time each individual bulk request should wait for shards that are unavailable. + /// Period each deletion request waits for active shards. /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Specify whether to return document version as part of a hit + /// If `true`, returns the document version as part of a hit. /// public bool? Version { get => Q("version"); set => Q("version", value); } /// - /// Sets the number of shard copies that must be active before proceeding with the delete by query operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// The number of shard copies that must be active before proceeding with the operation.
Set to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } /// - /// Should the request should block until the delete by query is complete. + /// If `true`, the request blocks until the operation is complete. /// public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } } /// -/// Deletes documents matching the provided query. +/// Deletes documents that match the specified query. /// public sealed partial class DeleteByQueryRequest : PlainRequest { @@ -190,43 +190,43 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas internal override string OperationName => "delete_by_query"; /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) + /// 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`.
///
[JsonIgnore] public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } /// - /// The analyzer to use for the query string + /// Analyzer to use for the query string. /// [JsonIgnore] public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } /// - /// Specify whether wildcard and prefix queries should be analyzed (default: false) + /// If `true`, wildcard and prefix queries are analyzed. /// [JsonIgnore] public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } /// - /// What to do when the delete by query hits version conflicts? + /// What to do if delete by query hits version conflicts: `abort` or `proceed`. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Conflicts? Conflicts { get => Q("conflicts"); set => Q("conflicts", value); } /// - /// The default operator for query string query (AND or OR) + /// The default operator for query string query: `AND` or `OR`. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } /// - /// The field to use as default where no field prefix is given in the query string + /// Field to use as default where no field prefix is given in the query string. /// [JsonIgnore] public string? Df { get => Q("df"); set => Q("df", value); } /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. + /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
///
[JsonIgnore] public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } @@ -238,134 +238,146 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas public long? From { get => Q("from"); set => Q("from", value); } /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If `false`, the request returns an error if it targets a missing or closed index. /// [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } /// - /// Specify whether format-based query failures (such as providing text to a numeric field) should be ignored + /// If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. /// [JsonIgnore] public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
[JsonIgnore] public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Should the affected indexes be refreshed? + /// If `true`, Elasticsearch refreshes all shards involved in the delete by query after the request completes. /// [JsonIgnore] public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specify if request cache should be used for this request or not, defaults to index level setting + /// If `true`, the request cache is used for this request.
Defaults to the index-level setting.
///
[JsonIgnore] public bool? RequestCache { get => Q("request_cache"); set => Q("request_cache", value); } /// - /// The throttle for this request in sub-requests per second. -1 means no throttle. + /// The throttle for this request in sub-requests per second. /// [JsonIgnore] public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } /// - /// A comma-separated list of specific routing values + /// Custom value used to route operations to a specific shard. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Query in the Lucene query string syntax + /// Query in the Lucene query string syntax. /// [JsonIgnore] public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } /// - /// Specify how long a consistent view of the index should be maintained for scrolled search + /// Period to retain the search context for scrolling. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); } /// - /// Size on the scroll request powering the delete by query + /// Size of the scroll request that powers the operation. /// [JsonIgnore] public long? ScrollSize { get => Q("scroll_size"); set => Q("scroll_size", value); } /// - /// Explicit timeout for each search request. Defaults to no timeout. + /// Explicit timeout for each search request.
Defaults to no timeout.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? SearchTimeout { get => Q("search_timeout"); set => Q("search_timeout", value); } /// - /// Search operation type + /// The type of the search operation.
Available options: `query_then_fetch`, `dfs_query_then_fetch`.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } /// - /// The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be set to `auto`. + /// The number of slices this task should be divided into. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Slices? Slices { get => Q("slices"); set => Q("slices", value); } /// - /// A comma-separated list of : pairs + /// A comma-separated list of : pairs. /// [JsonIgnore] public ICollection? Sort { get => Q?>("sort"); set => Q("sort", value); } /// - /// Specific 'tag' of the request for logging and statistical purposes + /// Specific `tag` of the request for logging and statistical purposes. /// [JsonIgnore] public ICollection? Stats { get => Q?>("stats"); set => Q("stats", value); } /// - /// The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early. + /// Maximum number of documents to collect for each shard.
If a query reaches this limit, Elasticsearch terminates the query early.
Elasticsearch collects documents before sorting.
Use with caution.
Elasticsearch applies this parameter to each shard handling the request.
When possible, let Elasticsearch perform early termination automatically.
Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers.
///
[JsonIgnore] public long? TerminateAfter { get => Q("terminate_after"); set => Q("terminate_after", value); } /// - /// Time each individual bulk request should wait for shards that are unavailable. + /// Period each deletion request waits for active shards. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Specify whether to return document version as part of a hit + /// If `true`, returns the document version as part of a hit. /// [JsonIgnore] public bool? Version { get => Q("version"); set => Q("version", value); } /// - /// Sets the number of shard copies that must be active before proceeding with the delete by query operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// The number of shard copies that must be active before proceeding with the operation.
Set to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } /// - /// Should the request should block until the delete by query is complete. + /// If `true`, the request blocks until the operation is complete. /// [JsonIgnore] public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } + + /// + /// The maximum number of documents to delete. + /// [JsonInclude, JsonPropertyName("max_docs")] public long? MaxDocs { get; set; } + + /// + /// Specifies the documents to delete using the Query DSL. + /// [JsonInclude, JsonPropertyName("query")] public Elastic.Clients.Elasticsearch.QueryDsl.Query? Query { get; set; } + + /// + /// Slice the request manually using the provided slice ID and total number of slices. + /// [JsonInclude, JsonPropertyName("slice")] public Elastic.Clients.Elasticsearch.SlicedScroll? Slice { get; set; } } /// -/// Deletes documents matching the provided query. +/// Deletes documents that match the specified query. /// public sealed partial class DeleteByQueryRequestDescriptor : RequestDescriptor, DeleteByQueryRequestParameters> { @@ -430,6 +442,9 @@ public DeleteByQueryRequestDescriptor Indices(Elastic.Clients.Elastic private Action> SliceDescriptorAction { get; set; } private long? MaxDocsValue { get; set; } + /// + /// Specifies the documents to delete using the Query DSL. + /// public DeleteByQueryRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query? query) { QueryDescriptor = null; @@ -454,6 +469,9 @@ public DeleteByQueryRequestDescriptor Query(Action + /// Slice the request manually using the provided slice ID and total number of slices. + ///
public DeleteByQueryRequestDescriptor Slice(Elastic.Clients.Elasticsearch.SlicedScroll? slice) { SliceDescriptor = null; @@ -478,6 +496,9 @@ public DeleteByQueryRequestDescriptor Slice(Action + /// The maximum number of documents to delete. + ///
public DeleteByQueryRequestDescriptor MaxDocs(long? maxDocs) { MaxDocsValue = maxDocs; @@ -530,7 +551,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Deletes documents matching the provided query. +/// Deletes documents that match the specified query. /// public sealed partial class DeleteByQueryRequestDescriptor : RequestDescriptor { @@ -595,6 +616,9 @@ public DeleteByQueryRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indi private Action SliceDescriptorAction { get; set; } private long? MaxDocsValue { get; set; } + /// + /// Specifies the documents to delete using the Query DSL. + /// public DeleteByQueryRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query? query) { QueryDescriptor = null; @@ -619,6 +643,9 @@ public DeleteByQueryRequestDescriptor Query(Action con return Self; } + /// + /// Slice the request manually using the provided slice ID and total number of slices. + /// public DeleteByQueryRequestDescriptor Slice(Elastic.Clients.Elasticsearch.SlicedScroll? slice) { SliceDescriptor = null; @@ -643,6 +670,9 @@ public DeleteByQueryRequestDescriptor Slice(Action confi return Self; } + /// + /// The maximum number of documents to delete. + /// public DeleteByQueryRequestDescriptor MaxDocs(long? maxDocs) { MaxDocsValue = maxDocs; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs index d4c5116c90f..71cd430b8bc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRethrottleRequest.g.cs @@ -32,7 +32,7 @@ namespace Elastic.Clients.Elasticsearch; public sealed class DeleteByQueryRethrottleRequestParameters : RequestParameters { /// - /// The throttle to set on this request in floating sub-requests per second. -1 means set no throttle. + /// The throttle for this request in sub-requests per second. /// public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } } @@ -55,7 +55,7 @@ public DeleteByQueryRethrottleRequest(Elastic.Clients.Elasticsearch.TaskId task_ internal override string OperationName => "delete_by_query_rethrottle"; /// - /// The throttle to set on this request in floating sub-requests per second. -1 means set no throttle. + /// The throttle for this request in sub-requests per second. /// [JsonIgnore] public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteRequest.g.cs index 857322b414e..5c732dbe512 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteRequest.g.cs @@ -32,48 +32,48 @@ namespace Elastic.Clients.Elasticsearch; public sealed class DeleteRequestParameters : RequestParameters { /// - /// only perform the delete operation if the last operation that has changed the document has the specified primary term + /// Only perform the operation if the document has this primary term. /// public long? IfPrimaryTerm { get => Q("if_primary_term"); set => Q("if_primary_term", value); } /// - /// only perform the delete operation if the last operation that has changed the document has the specified sequence number + /// Only perform the operation if the document has this sequence number. /// public long? IfSeqNo { get => Q("if_seq_no"); set => Q("if_seq_no", value); } /// - /// If `true` 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` (the default) then do nothing with refreshes. + /// If `true`, Elasticsearch refreshes 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` do nothing with refreshes.
Valid values: `true`, `false`, `wait_for`.
///
public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specific routing value + /// Custom value used to route operations to a specific shard. /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Explicit operation timeout + /// Period to wait for active shards. /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Explicit version number for concurrency control + /// Explicit version number for concurrency control.
The specified version must match the current version of the document for the request to succeed.
///
public long? Version { get => Q("version"); set => Q("version", value); } /// - /// Specific version type + /// Specific version type: `external`, `external_gte`. /// public Elastic.Clients.Elasticsearch.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } /// - /// Sets the number of shard copies that must be active before proceeding with the delete operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// The number of shard copies that must be active before proceeding with the operation.
Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } } /// -/// Removes a document from the index. +/// Removes a JSON document from the specified index. /// public partial class DeleteRequest : PlainRequest { @@ -90,56 +90,56 @@ public DeleteRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie internal override string OperationName => "delete"; /// - /// only perform the delete operation if the last operation that has changed the document has the specified primary term + /// Only perform the operation if the document has this primary term. /// [JsonIgnore] public long? IfPrimaryTerm { get => Q("if_primary_term"); set => Q("if_primary_term", value); } /// - /// only perform the delete operation if the last operation that has changed the document has the specified sequence number + /// Only perform the operation if the document has this sequence number. /// [JsonIgnore] public long? IfSeqNo { get => Q("if_seq_no"); set => Q("if_seq_no", value); } /// - /// If `true` 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` (the default) then do nothing with refreshes. + /// If `true`, Elasticsearch refreshes 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` do nothing with refreshes.
Valid values: `true`, `false`, `wait_for`.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specific routing value + /// Custom value used to route operations to a specific shard. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Explicit operation timeout + /// Period to wait for active shards. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Explicit version number for concurrency control + /// Explicit version number for concurrency control.
The specified version must match the current version of the document for the request to succeed.
///
[JsonIgnore] public long? Version { get => Q("version"); set => Q("version", value); } /// - /// Specific version type + /// Specific version type: `external`, `external_gte`. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } /// - /// Sets the number of shard copies that must be active before proceeding with the delete operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// The number of shard copies that must be active before proceeding with the operation.
Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } } /// -/// Removes a document from the index. +/// Removes a JSON document from the specified index. /// public sealed partial class DeleteRequestDescriptor : RequestDescriptor, DeleteRequestParameters> { @@ -208,7 +208,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Removes a document from the index. +/// Removes a JSON document from the specified index. /// public sealed partial class DeleteRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteScriptRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteScriptRequest.g.cs index e294395d16a..1bc36e9d911 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteScriptRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteScriptRequest.g.cs @@ -32,18 +32,18 @@ namespace Elastic.Clients.Elasticsearch; public sealed class DeleteScriptRequestParameters : RequestParameters { /// - /// Specify timeout for connection to master + /// Period to wait for a connection to the master node.
If no response is received before the timeout expires, the request fails and returns an error.
///
public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } /// - /// Explicit operation timeout + /// Period to wait for a response.
If no response is received before the timeout expires, the request fails and returns an error.
///
public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// -/// Deletes a script. +/// Deletes a stored script or search template. /// public sealed partial class DeleteScriptRequest : PlainRequest { @@ -60,20 +60,20 @@ public DeleteScriptRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Re internal override string OperationName => "delete_script"; /// - /// Specify timeout for connection to master + /// Period to wait for a connection to the master node.
If no response is received before the timeout expires, the request fails and returns an error.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } /// - /// Explicit operation timeout + /// Period to wait for a response.
If no response is received before the timeout expires, the request fails and returns an error.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// -/// Deletes a script. +/// Deletes a stored script or search template. /// public sealed partial class DeleteScriptRequestDescriptor : RequestDescriptor, DeleteScriptRequestParameters> { @@ -110,7 +110,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Deletes a script. +/// Deletes a stored script or search template. /// public sealed partial class DeleteScriptRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsRequest.g.cs index b2999304f8f..c572c4d5215 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsRequest.g.cs @@ -32,58 +32,58 @@ namespace Elastic.Clients.Elasticsearch; public sealed class ExistsRequestParameters : RequestParameters { /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Specify whether to perform the operation in realtime or search mode + /// If `true`, the request is real-time as opposed to near-real-time. /// public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } /// - /// Refresh the shard containing the document before performing the operation + /// If `true`, Elasticsearch refreshes all shards involved in the delete by query after the request completes. /// public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specific routing value + /// Target the specified primary shard. /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// True or false to return the _source field or not, or a list of fields to return + /// `true` or `false` to return the `_source` field or not, or a list of fields to return. /// public Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } /// - /// A list of fields to exclude from the returned _source field + /// A comma-separated list of source fields to exclude in the response. /// public Elastic.Clients.Elasticsearch.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } /// - /// A list of fields to extract and return from the _source field + /// A comma-separated list of source fields to include in the response. /// public Elastic.Clients.Elasticsearch.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } /// - /// A comma-separated list of stored fields to return in the response + /// List of stored fields to return as part of a hit.
If no fields are specified, no stored fields are included in the response.
If this field is specified, the `_source` parameter defaults to false.
///
public Elastic.Clients.Elasticsearch.Fields? StoredFields { get => Q("stored_fields"); set => Q("stored_fields", value); } /// - /// Explicit version number for concurrency control + /// Explicit version number for concurrency control.
The specified version must match the current version of the document for the request to succeed.
///
public long? Version { get => Q("version"); set => Q("version", value); } /// - /// Specific version type + /// Specific version type: `external`, `external_gte`. /// public Elastic.Clients.Elasticsearch.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } } /// -/// Returns information about whether a document exists in an index. +/// Checks if a document in an index exists. /// public sealed partial class ExistsRequest : PlainRequest { @@ -100,68 +100,68 @@ public ExistsRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clie internal override string OperationName => "exists"; /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
[JsonIgnore] public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Specify whether to perform the operation in realtime or search mode + /// If `true`, the request is real-time as opposed to near-real-time. /// [JsonIgnore] public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } /// - /// Refresh the shard containing the document before performing the operation + /// If `true`, Elasticsearch refreshes all shards involved in the delete by query after the request completes. /// [JsonIgnore] public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specific routing value + /// Target the specified primary shard. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// True or false to return the _source field or not, or a list of fields to return + /// `true` or `false` to return the `_source` field or not, or a list of fields to return. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } /// - /// A list of fields to exclude from the returned _source field + /// A comma-separated list of source fields to exclude in the response. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } /// - /// A list of fields to extract and return from the _source field + /// A comma-separated list of source fields to include in the response. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } /// - /// A comma-separated list of stored fields to return in the response + /// List of stored fields to return as part of a hit.
If no fields are specified, no stored fields are included in the response.
If this field is specified, the `_source` parameter defaults to false.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Fields? StoredFields { get => Q("stored_fields"); set => Q("stored_fields", value); } /// - /// Explicit version number for concurrency control + /// Explicit version number for concurrency control.
The specified version must match the current version of the document for the request to succeed.
///
[JsonIgnore] public long? Version { get => Q("version"); set => Q("version", value); } /// - /// Specific version type + /// Specific version type: `external`, `external_gte`. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } } /// -/// Returns information about whether a document exists in an index. +/// Checks if a document in an index exists. /// public sealed partial class ExistsRequestDescriptor : RequestDescriptor, ExistsRequestParameters> { @@ -232,7 +232,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Returns information about whether a document exists in an index. +/// Checks if a document in an index exists. /// public sealed partial class ExistsRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsSourceRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsSourceRequest.g.cs index 191cdb5fa3a..ad1b22276ca 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsSourceRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExistsSourceRequest.g.cs @@ -32,53 +32,53 @@ namespace Elastic.Clients.Elasticsearch; public sealed class ExistsSourceRequestParameters : RequestParameters { /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Specify whether to perform the operation in realtime or search mode + /// If true, the request is real-time as opposed to near-real-time. /// public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } /// - /// Refresh the shard containing the document before performing the operation + /// If `true`, Elasticsearch refreshes all shards involved in the delete by query after the request completes. /// public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specific routing value + /// Target the specified primary shard. /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// True or false to return the _source field or not, or a list of fields to return + /// `true` or `false` to return the `_source` field or not, or a list of fields to return. /// public Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } /// - /// A list of fields to exclude from the returned _source field + /// A comma-separated list of source fields to exclude in the response. /// public Elastic.Clients.Elasticsearch.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } /// - /// A list of fields to extract and return from the _source field + /// A comma-separated list of source fields to include in the response. /// public Elastic.Clients.Elasticsearch.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } /// - /// Explicit version number for concurrency control + /// Explicit version number for concurrency control.
The specified version must match the current version of the document for the request to succeed.
///
public long? Version { get => Q("version"); set => Q("version", value); } /// - /// Specific version type + /// Specific version type: `external`, `external_gte`. /// public Elastic.Clients.Elasticsearch.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } } /// -/// Returns information about whether a document source exists in an index. +/// Checks if a document's `_source` is stored. /// public sealed partial class ExistsSourceRequest : PlainRequest { @@ -95,62 +95,62 @@ public ExistsSourceRequest(Elastic.Clients.Elasticsearch.IndexName index, Elasti internal override string OperationName => "exists_source"; /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
[JsonIgnore] public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Specify whether to perform the operation in realtime or search mode + /// If true, the request is real-time as opposed to near-real-time. /// [JsonIgnore] public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } /// - /// Refresh the shard containing the document before performing the operation + /// If `true`, Elasticsearch refreshes all shards involved in the delete by query after the request completes. /// [JsonIgnore] public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specific routing value + /// Target the specified primary shard. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// True or false to return the _source field or not, or a list of fields to return + /// `true` or `false` to return the `_source` field or not, or a list of fields to return. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } /// - /// A list of fields to exclude from the returned _source field + /// A comma-separated list of source fields to exclude in the response. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } /// - /// A list of fields to extract and return from the _source field + /// A comma-separated list of source fields to include in the response. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } /// - /// Explicit version number for concurrency control + /// Explicit version number for concurrency control.
The specified version must match the current version of the document for the request to succeed.
///
[JsonIgnore] public long? Version { get => Q("version"); set => Q("version", value); } /// - /// Specific version type + /// Specific version type: `external`, `external_gte`. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } } /// -/// Returns information about whether a document source exists in an index. +/// Checks if a document's `_source` is stored. /// public sealed partial class ExistsSourceRequestDescriptor : RequestDescriptor, ExistsSourceRequestParameters> { @@ -220,7 +220,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Returns information about whether a document source exists in an index. +/// Checks if a document's `_source` is stored. /// public sealed partial class ExistsSourceRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExplainRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExplainRequest.g.cs index 65de5a4b491..0ede5112208 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExplainRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ExplainRequest.g.cs @@ -32,68 +32,68 @@ namespace Elastic.Clients.Elasticsearch; public sealed class ExplainRequestParameters : RequestParameters { /// - /// The analyzer for the query string query + /// Analyzer to use for the query string.
This parameter can only be used when the `q` query string parameter is specified.
///
public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } /// - /// Specify whether wildcards and prefix queries in the query string query should be analyzed (default: false) + /// If `true`, wildcard and prefix queries are analyzed. /// public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } /// - /// The default operator for query string query (AND or OR) + /// The default operator for query string query: `AND` or `OR`. /// public Elastic.Clients.Elasticsearch.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } /// - /// The default field for query string query (default: _all) + /// Field to use as default where no field prefix is given in the query string. /// public string? Df { get => Q("df"); set => Q("df", value); } /// - /// Specify whether format-based query failures (such as providing text to a numeric field) should be ignored + /// If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. /// public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Specific routing value + /// Custom value used to route operations to a specific shard. /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// True or false to return the _source field or not, or a list of fields to return + /// True or false to return the `_source` field or not, or a list of fields to return. /// public Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } /// - /// A list of fields to exclude from the returned _source field + /// A comma-separated list of source fields to exclude from the response. /// public Elastic.Clients.Elasticsearch.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } /// - /// A list of fields to extract and return from the _source field + /// A comma-separated list of source fields to include in the response. /// public Elastic.Clients.Elasticsearch.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } /// - /// A comma-separated list of stored fields to return in the response + /// A comma-separated list of stored fields to return in the response. /// public Elastic.Clients.Elasticsearch.Fields? StoredFields { get => Q("stored_fields"); set => Q("stored_fields", value); } /// - /// Query in the Lucene query string syntax + /// Query in the Lucene query string syntax. /// public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } } /// -/// Returns information about why a specific matches (or doesn't match) a query. +/// Returns information about why a specific document matches (or doesn’t match) a query. /// public sealed partial class ExplainRequest : PlainRequest { @@ -110,82 +110,86 @@ public ExplainRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Cli internal override string OperationName => "explain"; /// - /// The analyzer for the query string query + /// Analyzer to use for the query string.
This parameter can only be used when the `q` query string parameter is specified.
///
[JsonIgnore] public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } /// - /// Specify whether wildcards and prefix queries in the query string query should be analyzed (default: false) + /// If `true`, wildcard and prefix queries are analyzed. /// [JsonIgnore] public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } /// - /// The default operator for query string query (AND or OR) + /// The default operator for query string query: `AND` or `OR`. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } /// - /// The default field for query string query (default: _all) + /// Field to use as default where no field prefix is given in the query string. /// [JsonIgnore] public string? Df { get => Q("df"); set => Q("df", value); } /// - /// Specify whether format-based query failures (such as providing text to a numeric field) should be ignored + /// If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. /// [JsonIgnore] public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
[JsonIgnore] public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Specific routing value + /// Custom value used to route operations to a specific shard. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// True or false to return the _source field or not, or a list of fields to return + /// True or false to return the `_source` field or not, or a list of fields to return. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Core.Search.SourceConfigParam? Source { get => Q("_source"); set => Q("_source", value); } /// - /// A list of fields to exclude from the returned _source field + /// A comma-separated list of source fields to exclude from the response. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Fields? SourceExcludes { get => Q("_source_excludes"); set => Q("_source_excludes", value); } /// - /// A list of fields to extract and return from the _source field + /// A comma-separated list of source fields to include in the response. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } /// - /// A comma-separated list of stored fields to return in the response + /// A comma-separated list of stored fields to return in the response. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Fields? StoredFields { get => Q("stored_fields"); set => Q("stored_fields", value); } /// - /// Query in the Lucene query string syntax + /// Query in the Lucene query string syntax. /// [JsonIgnore] public string? QueryLuceneSyntax { get => Q("q"); set => Q("q", value); } + + /// + /// Defines the search definition using the Query DSL. + /// [JsonInclude, JsonPropertyName("query")] public Elastic.Clients.Elasticsearch.QueryDsl.Query? Query { get; set; } } /// -/// Returns information about why a specific matches (or doesn't match) a query. +/// Returns information about why a specific document matches (or doesn’t match) a query. /// public sealed partial class ExplainRequestDescriptor : RequestDescriptor, ExplainRequestParameters> { @@ -256,6 +260,9 @@ public ExplainRequestDescriptor Index(Elastic.Clients.Elasticsearch.I private QueryDsl.QueryDescriptor QueryDescriptor { get; set; } private Action> QueryDescriptorAction { get; set; } + /// + /// Defines the search definition using the Query DSL. + /// public ExplainRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query? query) { QueryDescriptor = null; @@ -304,7 +311,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Returns information about why a specific matches (or doesn't match) a query. +/// Returns information about why a specific document matches (or doesn’t match) a query. /// public sealed partial class ExplainRequestDescriptor : RequestDescriptor { @@ -355,6 +362,9 @@ public ExplainRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName in private QueryDsl.QueryDescriptor QueryDescriptor { get; set; } private Action QueryDescriptorAction { get; set; } + /// + /// Defines the search definition using the Query DSL. + /// public ExplainRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query? query) { QueryDescriptor = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetRequest.g.cs index 4dbc5417363..340753b0357 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetRequest.g.cs @@ -37,7 +37,7 @@ public sealed class GetRequestParameters : RequestParameters public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Boolean) If true, the request is real-time as opposed to near-real-time. + /// If `true`, the request is real-time as opposed to near-real-time. /// public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } @@ -67,7 +67,7 @@ public sealed class GetRequestParameters : RequestParameters public Elastic.Clients.Elasticsearch.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } /// - /// A comma-separated list of stored fields to return in the response + /// List of stored fields to return as part of a hit.
If no fields are specified, no stored fields are included in the response.
If this field is specified, the `_source` parameter defaults to false.
///
public Elastic.Clients.Elasticsearch.Fields? StoredFields { get => Q("stored_fields"); set => Q("stored_fields", value); } @@ -106,7 +106,7 @@ public GetRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Boolean) If true, the request is real-time as opposed to near-real-time. + /// If `true`, the request is real-time as opposed to near-real-time. /// [JsonIgnore] public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } @@ -142,7 +142,7 @@ public GetRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients public Elastic.Clients.Elasticsearch.Fields? SourceIncludes { get => Q("_source_includes"); set => Q("_source_includes", value); } /// - /// A comma-separated list of stored fields to return in the response + /// List of stored fields to return as part of a hit.
If no fields are specified, no stored fields are included in the response.
If this field is specified, the `_source` parameter defaults to false.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Fields? StoredFields { get => Q("stored_fields"); set => Q("stored_fields", value); } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptRequest.g.cs index f21631b3066..db12603dab5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/GetScriptRequest.g.cs @@ -38,7 +38,7 @@ public sealed class GetScriptRequestParameters : RequestParameters } /// -/// Returns a script. +/// Retrieves a stored script or search template. /// public sealed partial class GetScriptRequest : PlainRequest { @@ -62,7 +62,7 @@ public GetScriptRequest(Elastic.Clients.Elasticsearch.Id id) : base(r => r.Requi } /// -/// Returns a script. +/// Retrieves a stored script or search template. /// public sealed partial class GetScriptRequestDescriptor : RequestDescriptor, GetScriptRequestParameters> { @@ -98,7 +98,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Returns a script. +/// Retrieves a stored script or search template. /// public sealed partial class GetScriptRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataLifecycleRequest.g.cs index 17bbace549e..bfa0f519a27 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataLifecycleRequest.g.cs @@ -48,8 +48,7 @@ public sealed class DeleteDataLifecycleRequestParameters : RequestParameters } /// -/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. -/// Removes the data lifecycle from a data stream rendering it not managed by DLM +/// Removes the data lifecycle from a data stream rendering it not managed by the data stream lifecycle /// public sealed partial class DeleteDataLifecycleRequest : PlainRequest { @@ -85,8 +84,7 @@ public DeleteDataLifecycleRequest(Elastic.Clients.Elasticsearch.DataStreamNames } /// -/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. -/// Removes the data lifecycle from a data stream rendering it not managed by DLM +/// Removes the data lifecycle from a data stream rendering it not managed by the data stream lifecycle /// public sealed partial class DeleteDataLifecycleRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataLifecycleResponse.g.cs index 5444d10778d..0937372783b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataLifecycleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataLifecycleResponse.g.cs @@ -25,9 +25,6 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; -/// -/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. -/// public sealed partial class DeleteDataLifecycleResponse : ElasticsearchResponse { /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs index e06023a71dd..740026a5dcd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleRequest.g.cs @@ -43,8 +43,7 @@ public sealed class ExplainDataLifecycleRequestParameters : RequestParameters } /// -/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. -/// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. +/// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. /// public sealed partial class ExplainDataLifecycleRequest : PlainRequest { @@ -74,8 +73,7 @@ public ExplainDataLifecycleRequest(Elastic.Clients.Elasticsearch.Indices indices } /// -/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. -/// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. +/// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. /// public sealed partial class ExplainDataLifecycleRequestDescriptor : RequestDescriptor, ExplainDataLifecycleRequestParameters> { @@ -112,8 +110,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. -/// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. +/// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. /// public sealed partial class ExplainDataLifecycleRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleResponse.g.cs index af24db80c7c..2d14309d461 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExplainDataLifecycleResponse.g.cs @@ -25,12 +25,9 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; -/// -/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. -/// public sealed partial class ExplainDataLifecycleResponse : ElasticsearchResponse { [JsonInclude, JsonPropertyName("indices")] - [ReadOnlyIndexNameDictionaryConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.DataLifecycleExplain))] - public IReadOnlyDictionary Indices { get; init; } + [ReadOnlyIndexNameDictionaryConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleExplain))] + public IReadOnlyDictionary Indices { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleRequest.g.cs index 687c7ae43cb..49083459b6e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleRequest.g.cs @@ -43,8 +43,7 @@ public sealed class GetDataLifecycleRequestParameters : RequestParameters } /// -/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. -/// Retrieves the data lifecycle configuration of one or more data streams. +/// Retrieves the data stream lifecycle configuration of one or more data streams. /// public sealed partial class GetDataLifecycleRequest : PlainRequest { @@ -74,8 +73,7 @@ public GetDataLifecycleRequest(Elastic.Clients.Elasticsearch.DataStreamNames nam } /// -/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. -/// Retrieves the data lifecycle configuration of one or more data streams. +/// Retrieves the data stream lifecycle configuration of one or more data streams. /// public sealed partial class GetDataLifecycleRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleResponse.g.cs index c92e28defd0..2921ab6b516 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetDataLifecycleResponse.g.cs @@ -25,11 +25,8 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; -/// -/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. -/// public sealed partial class GetDataLifecycleResponse : ElasticsearchResponse { [JsonInclude, JsonPropertyName("data_streams")] - public IReadOnlyCollection DataStreams { get; init; } + public IReadOnlyCollection DataStreams { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs index 2f1cbe0e1cd..0dbe0c398c8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleRequest.g.cs @@ -48,7 +48,6 @@ public sealed class PutDataLifecycleRequestParameters : RequestParameters } /// -/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Update the data lifecycle of the specified data streams. /// public sealed partial class PutDataLifecycleRequest : PlainRequest @@ -88,10 +87,15 @@ public PutDataLifecycleRequest(Elastic.Clients.Elasticsearch.DataStreamNames nam /// [JsonInclude, JsonPropertyName("data_retention")] public Elastic.Clients.Elasticsearch.Duration? DataRetention { get; set; } + + /// + /// If defined, every backing index will execute the configured downsampling configuration after the backing
index is not the data stream write index anymore.
+ ///
+ [JsonInclude, JsonPropertyName("downsampling")] + public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? Downsampling { get; set; } } /// -/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Update the data lifecycle of the specified data streams. /// public sealed partial class PutDataLifecycleRequestDescriptor : RequestDescriptor @@ -125,6 +129,9 @@ public PutDataLifecycleRequestDescriptor Name(Elastic.Clients.Elasticsearch.Data } private Elastic.Clients.Elasticsearch.Duration? DataRetentionValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? DownsamplingValue { get; set; } + private DataStreamLifecycleDownsamplingDescriptor DownsamplingDescriptor { get; set; } + private Action DownsamplingDescriptorAction { get; set; } /// /// If defined, every document added to this data stream will be stored at least for this time frame.
Any time after this duration the document could be deleted.
When empty, every document in this data stream will be stored indefinitely.
@@ -135,6 +142,33 @@ public PutDataLifecycleRequestDescriptor DataRetention(Elastic.Clients.Elasticse return Self; } + /// + /// If defined, every backing index will execute the configured downsampling configuration after the backing
index is not the data stream write index anymore.
+ ///
+ public PutDataLifecycleRequestDescriptor Downsampling(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? downsampling) + { + DownsamplingDescriptor = null; + DownsamplingDescriptorAction = null; + DownsamplingValue = downsampling; + return Self; + } + + public PutDataLifecycleRequestDescriptor Downsampling(DataStreamLifecycleDownsamplingDescriptor descriptor) + { + DownsamplingValue = null; + DownsamplingDescriptorAction = null; + DownsamplingDescriptor = descriptor; + return Self; + } + + public PutDataLifecycleRequestDescriptor Downsampling(Action configure) + { + DownsamplingValue = null; + DownsamplingDescriptor = null; + DownsamplingDescriptorAction = configure; + return Self; + } + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); @@ -144,6 +178,22 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o JsonSerializer.Serialize(writer, DataRetentionValue, options); } + if (DownsamplingDescriptor is not null) + { + writer.WritePropertyName("downsampling"); + JsonSerializer.Serialize(writer, DownsamplingDescriptor, options); + } + else if (DownsamplingDescriptorAction is not null) + { + writer.WritePropertyName("downsampling"); + JsonSerializer.Serialize(writer, new DataStreamLifecycleDownsamplingDescriptor(DownsamplingDescriptorAction), options); + } + else if (DownsamplingValue is not null) + { + writer.WritePropertyName("downsampling"); + JsonSerializer.Serialize(writer, DownsamplingValue, options); + } + writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleResponse.g.cs index 69531a0a39f..4d7c8b652cc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutDataLifecycleResponse.g.cs @@ -25,9 +25,6 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; -/// -/// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. -/// public sealed partial class PutDataLifecycleResponse : ElasticsearchResponse { /// diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexRequest.g.cs index a97d108e1d5..a7b086a8f51 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexRequest.g.cs @@ -32,63 +32,63 @@ namespace Elastic.Clients.Elasticsearch; public sealed class IndexRequestParameters : RequestParameters { /// - /// only perform the index operation if the last operation that has changed the document has the specified primary term + /// Only perform the operation if the document has this primary term. /// public long? IfPrimaryTerm { get => Q("if_primary_term"); set => Q("if_primary_term", value); } /// - /// only perform the index operation if the last operation that has changed the document has the specified sequence number + /// Only perform the operation if the document has this sequence number. /// public long? IfSeqNo { get => Q("if_seq_no"); set => Q("if_seq_no", value); } /// - /// Explicit operation type. Defaults to `index` for requests with an explicit document ID, and to `create`for requests without an explicit document ID + /// Set to create to only index the document if it does not already exist (put if absent).
If a document with the specified `_id` already exists, the indexing operation will fail.
Same as using the `/_create` endpoint.
Valid values: `index`, `create`.
If document id is specified, it defaults to `index`.
Otherwise, it defaults to `create`.
///
public Elastic.Clients.Elasticsearch.OpType? OpType { get => Q("op_type"); set => Q("op_type", value); } /// - /// The pipeline id to preprocess incoming documents with + /// ID of the pipeline to use to preprocess incoming documents.
If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request.
If a final pipeline is configured it will always run, regardless of the value of this parameter.
///
public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } /// - /// If `true` 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` (the default) then do nothing with refreshes. + /// If `true`, Elasticsearch refreshes 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` do nothing with refreshes.
Valid values: `true`, `false`, `wait_for`.
///
public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specific routing value + /// Custom value used to route operations to a specific shard. /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Explicit operation timeout + /// Period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Explicit version number for concurrency control + /// Explicit version number for concurrency control.
The specified version must match the current version of the document for the request to succeed.
///
public long? Version { get => Q("version"); set => Q("version", value); } /// - /// Specific version type + /// Specific version type: `external`, `external_gte`. /// public Elastic.Clients.Elasticsearch.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } /// - /// Sets the number of shard copies that must be active before proceeding with the index operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// The number of shard copies that must be active before proceeding with the operation.
Set to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } /// - /// When true, requires destination to be an alias. Default is false + /// If `true`, the destination must be an index alias. /// public bool? RequireAlias { get => Q("require_alias"); set => Q("require_alias", value); } } /// -/// Creates or updates a document in an index. +/// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
///
public sealed partial class IndexRequest : PlainRequest { @@ -112,74 +112,74 @@ public IndexRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r public TDocument Document { get; set; } /// - /// only perform the index operation if the last operation that has changed the document has the specified primary term + /// Only perform the operation if the document has this primary term. /// [JsonIgnore] public long? IfPrimaryTerm { get => Q("if_primary_term"); set => Q("if_primary_term", value); } /// - /// only perform the index operation if the last operation that has changed the document has the specified sequence number + /// Only perform the operation if the document has this sequence number. /// [JsonIgnore] public long? IfSeqNo { get => Q("if_seq_no"); set => Q("if_seq_no", value); } /// - /// Explicit operation type. Defaults to `index` for requests with an explicit document ID, and to `create`for requests without an explicit document ID + /// Set to create to only index the document if it does not already exist (put if absent).
If a document with the specified `_id` already exists, the indexing operation will fail.
Same as using the `/_create` endpoint.
Valid values: `index`, `create`.
If document id is specified, it defaults to `index`.
Otherwise, it defaults to `create`.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.OpType? OpType { get => Q("op_type"); set => Q("op_type", value); } /// - /// The pipeline id to preprocess incoming documents with + /// ID of the pipeline to use to preprocess incoming documents.
If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request.
If a final pipeline is configured it will always run, regardless of the value of this parameter.
///
[JsonIgnore] public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } /// - /// If `true` 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` (the default) then do nothing with refreshes. + /// If `true`, Elasticsearch refreshes 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` do nothing with refreshes.
Valid values: `true`, `false`, `wait_for`.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Refresh? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specific routing value + /// Custom value used to route operations to a specific shard. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Explicit operation timeout + /// Period the request waits for the following operations: automatic index creation, dynamic mapping updates, waiting for active shards. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Explicit version number for concurrency control + /// Explicit version number for concurrency control.
The specified version must match the current version of the document for the request to succeed.
///
[JsonIgnore] public long? Version { get => Q("version"); set => Q("version", value); } /// - /// Specific version type + /// Specific version type: `external`, `external_gte`. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } /// - /// Sets the number of shard copies that must be active before proceeding with the index operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// The number of shard copies that must be active before proceeding with the operation.
Set to all or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } /// - /// When true, requires destination to be an alias. Default is false + /// If `true`, the destination must be an index alias. /// [JsonIgnore] public bool? RequireAlias { get => Q("require_alias"); set => Q("require_alias", value); } } /// -/// Creates or updates a document in an index. +/// Adds a JSON document to the specified data stream or index and makes it searchable.
If the target is an index and the document already exists, the request updates the document and increments its version.
///
public sealed partial class IndexRequestDescriptor : RequestDescriptor, IndexRequestParameters> { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateRequest.g.cs index b78a73464fa..6f60a559857 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchTemplateRequest.g.cs @@ -34,27 +34,27 @@ namespace Elastic.Clients.Elasticsearch; public sealed class MultiSearchTemplateRequestParameters : RequestParameters { /// - /// Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution + /// If `true`, network round-trips are minimized for cross-cluster search requests. /// public bool? CcsMinimizeRoundtrips { get => Q("ccs_minimize_roundtrips"); set => Q("ccs_minimize_roundtrips", value); } /// - /// Controls the maximum number of concurrent searches the multi search api will execute + /// Maximum number of concurrent searches the API can run. /// public long? MaxConcurrentSearches { get => Q("max_concurrent_searches"); set => Q("max_concurrent_searches", value); } /// - /// Search operation type + /// The type of the search operation.
Available options: `query_then_fetch`, `dfs_query_then_fetch`.
///
public Elastic.Clients.Elasticsearch.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } /// - /// Indicates whether hits.total should be rendered as an integer or an object in the rest search response + /// If `true`, the response returns `hits.total` as an integer.
If `false`, it returns `hits.total` as an object.
///
public bool? RestTotalHitsAsInt { get => Q("rest_total_hits_as_int"); set => Q("rest_total_hits_as_int", value); } /// - /// Specify whether aggregation and suggester names should be prefixed by their respective types in the response + /// If `true`, the response prefixes aggregation and suggester names with their respective types. /// public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } } @@ -81,31 +81,31 @@ public MultiSearchTemplateRequest(Elastic.Clients.Elasticsearch.Indices? indices internal override string OperationName => "msearch_template"; /// - /// Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution + /// If `true`, network round-trips are minimized for cross-cluster search requests. /// [JsonIgnore] public bool? CcsMinimizeRoundtrips { get => Q("ccs_minimize_roundtrips"); set => Q("ccs_minimize_roundtrips", value); } /// - /// Controls the maximum number of concurrent searches the multi search api will execute + /// Maximum number of concurrent searches the API can run. /// [JsonIgnore] public long? MaxConcurrentSearches { get => Q("max_concurrent_searches"); set => Q("max_concurrent_searches", value); } /// - /// Search operation type + /// The type of the search operation.
Available options: `query_then_fetch`, `dfs_query_then_fetch`.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } /// - /// Indicates whether hits.total should be rendered as an integer or an object in the rest search response + /// If `true`, the response returns `hits.total` as an integer.
If `false`, it returns `hits.total` as an object.
///
[JsonIgnore] public bool? RestTotalHitsAsInt { get => Q("rest_total_hits_as_int"); set => Q("rest_total_hits_as_int", value); } /// - /// Specify whether aggregation and suggester names should be prefixed by their respective types in the response + /// If `true`, the response prefixes aggregation and suggester names with their respective types. /// [JsonIgnore] public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsRequest.g.cs index eef01058a9d..0fd2e140ff3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsRequest.g.cs @@ -32,57 +32,57 @@ namespace Elastic.Clients.Elasticsearch; public sealed class MultiTermVectorsRequestParameters : RequestParameters { /// - /// A comma-separated list of fields to return. Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// Comma-separated list or wildcard expressions of fields to include in the statistics.
Used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters.
///
public Elastic.Clients.Elasticsearch.Fields? Fields { get => Q("fields"); set => Q("fields", value); } /// - /// Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// If `true`, the response includes the document count, sum of document frequencies, and sum of total term frequencies. /// public bool? FieldStatistics { get => Q("field_statistics"); set => Q("field_statistics", value); } /// - /// Specifies if term offsets should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// If `true`, the response includes term offsets. /// public bool? Offsets { get => Q("offsets"); set => Q("offsets", value); } /// - /// Specifies if term payloads should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// If `true`, the response includes term payloads. /// public bool? Payloads { get => Q("payloads"); set => Q("payloads", value); } /// - /// Specifies if term positions should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// If `true`, the response includes term positions. /// public bool? Positions { get => Q("positions"); set => Q("positions", value); } /// - /// Specify the node or shard the operation should be performed on (default: random) .Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Specifies if requests are real-time as opposed to near-real-time (default: true). + /// If true, the request is real-time as opposed to near-real-time. /// public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } /// - /// Specific routing value. Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// Custom value used to route operations to a specific shard. /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Specifies if total term frequency and document frequency should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// If true, the response includes term frequency and document frequency. /// public bool? TermStatistics { get => Q("term_statistics"); set => Q("term_statistics", value); } /// - /// Explicit version number for concurrency control + /// If `true`, returns the document version as part of a hit. /// public long? Version { get => Q("version"); set => Q("version", value); } /// - /// Specific version type + /// Specific version type. /// public Elastic.Clients.Elasticsearch.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } } @@ -109,72 +109,80 @@ public MultiTermVectorsRequest(Elastic.Clients.Elasticsearch.IndexName? index) : internal override string OperationName => "mtermvectors"; /// - /// A comma-separated list of fields to return. Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// Comma-separated list or wildcard expressions of fields to include in the statistics.
Used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Fields? Fields { get => Q("fields"); set => Q("fields", value); } /// - /// Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// If `true`, the response includes the document count, sum of document frequencies, and sum of total term frequencies. /// [JsonIgnore] public bool? FieldStatistics { get => Q("field_statistics"); set => Q("field_statistics", value); } /// - /// Specifies if term offsets should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// If `true`, the response includes term offsets. /// [JsonIgnore] public bool? Offsets { get => Q("offsets"); set => Q("offsets", value); } /// - /// Specifies if term payloads should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// If `true`, the response includes term payloads. /// [JsonIgnore] public bool? Payloads { get => Q("payloads"); set => Q("payloads", value); } /// - /// Specifies if term positions should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// If `true`, the response includes term positions. /// [JsonIgnore] public bool? Positions { get => Q("positions"); set => Q("positions", value); } /// - /// Specify the node or shard the operation should be performed on (default: random) .Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
[JsonIgnore] public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Specifies if requests are real-time as opposed to near-real-time (default: true). + /// If true, the request is real-time as opposed to near-real-time. /// [JsonIgnore] public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } /// - /// Specific routing value. Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// Custom value used to route operations to a specific shard. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Specifies if total term frequency and document frequency should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// If true, the response includes term frequency and document frequency. /// [JsonIgnore] public bool? TermStatistics { get => Q("term_statistics"); set => Q("term_statistics", value); } /// - /// Explicit version number for concurrency control + /// If `true`, returns the document version as part of a hit. /// [JsonIgnore] public long? Version { get => Q("version"); set => Q("version", value); } /// - /// Specific version type + /// Specific version type. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } + + /// + /// Array of existing or artificial documents. + /// [JsonInclude, JsonPropertyName("docs")] public ICollection? Docs { get; set; } + + /// + /// Simplified syntax to specify documents by their ID if they're in the same index. + /// [JsonInclude, JsonPropertyName("ids")] public ICollection? Ids { get; set; } } @@ -222,6 +230,9 @@ public MultiTermVectorsRequestDescriptor Index(Elastic.Clients.Elasti private Action>[] DocsDescriptorActions { get; set; } private ICollection? IdsValue { get; set; } + /// + /// Array of existing or artificial documents. + /// public MultiTermVectorsRequestDescriptor Docs(ICollection? docs) { DocsDescriptor = null; @@ -258,6 +269,9 @@ public MultiTermVectorsRequestDescriptor Docs(params Action + /// Simplified syntax to specify documents by their ID if they're in the same index. + ///
public MultiTermVectorsRequestDescriptor Ids(ICollection? ids) { IdsValue = ids; @@ -351,6 +365,9 @@ public MultiTermVectorsRequestDescriptor Index(Elastic.Clients.Elasticsearch.Ind private Action[] DocsDescriptorActions { get; set; } private ICollection? IdsValue { get; set; } + /// + /// Array of existing or artificial documents. + /// public MultiTermVectorsRequestDescriptor Docs(ICollection? docs) { DocsDescriptor = null; @@ -387,6 +404,9 @@ public MultiTermVectorsRequestDescriptor Docs(params Action + /// Simplified syntax to specify documents by their ID if they're in the same index. + ///
public MultiTermVectorsRequestDescriptor Ids(ICollection? ids) { IdsValue = ids; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs index 505d545de31..cd6bdab6f6a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/OpenPointInTimeRequest.g.cs @@ -32,27 +32,27 @@ namespace Elastic.Clients.Elasticsearch; public sealed class OpenPointInTimeRequestParameters : RequestParameters { /// - /// Specific the time to live for the point in time + /// Extends the time to live of the corresponding point in time. /// public Elastic.Clients.Elasticsearch.Duration KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If `false`, the request returns an error if it targets a missing or closed index. /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Specific routing value + /// Custom value used to route operations to a specific shard. /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. + /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
///
public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } } @@ -75,31 +75,31 @@ public OpenPointInTimeRequest(Elastic.Clients.Elasticsearch.Indices indices) : b internal override string OperationName => "open_point_in_time"; /// - /// Specific the time to live for the point in time + /// Extends the time to live of the corresponding point in time. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Duration KeepAlive { get => Q("keep_alive"); set => Q("keep_alive", value); } /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If `false`, the request returns an error if it targets a missing or closed index. /// [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
[JsonIgnore] public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Specific routing value + /// Custom value used to route operations to a specific shard. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. + /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`. Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
///
[JsonIgnore] public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/PutScriptRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/PutScriptRequest.g.cs index a2e2fe125e1..39bb66532c6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/PutScriptRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/PutScriptRequest.g.cs @@ -32,18 +32,18 @@ namespace Elastic.Clients.Elasticsearch; public sealed class PutScriptRequestParameters : RequestParameters { /// - /// Specify timeout for connection to master + /// Period to wait for a connection to the master node.
If no response is received before the timeout expires, the request fails and returns an error.
///
public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } /// - /// Explicit operation timeout + /// Period to wait for a response.
If no response is received before the timeout expires, the request fails and returns an error.
///
public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } } /// -/// Creates or updates a script. +/// Creates or updates a stored script or search template. /// public sealed partial class PutScriptRequest : PlainRequest { @@ -64,22 +64,26 @@ public PutScriptRequest(Elastic.Clients.Elasticsearch.Id id, Elastic.Clients.Ela internal override string OperationName => "put_script"; /// - /// Specify timeout for connection to master + /// Period to wait for a connection to the master node.
If no response is received before the timeout expires, the request fails and returns an error.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } /// - /// Explicit operation timeout + /// Period to wait for a response.
If no response is received before the timeout expires, the request fails and returns an error.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + + /// + /// Contains the script or search template, its parameters, and its language. + /// [JsonInclude, JsonPropertyName("script")] public Elastic.Clients.Elasticsearch.StoredScript Script { get; set; } } /// -/// Creates or updates a script. +/// Creates or updates a stored script or search template. /// public sealed partial class PutScriptRequestDescriptor : RequestDescriptor, PutScriptRequestParameters> { @@ -124,6 +128,9 @@ public PutScriptRequestDescriptor Context(Elastic.Clients.Elasticsear private StoredScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } + /// + /// Contains the script or search template, its parameters, and its language. + /// public PutScriptRequestDescriptor Script(Elastic.Clients.Elasticsearch.StoredScript script) { ScriptDescriptor = null; @@ -172,7 +179,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Creates or updates a script. +/// Creates or updates a stored script or search template. /// public sealed partial class PutScriptRequestDescriptor : RequestDescriptor { @@ -217,6 +224,9 @@ public PutScriptRequestDescriptor Context(Elastic.Clients.Elasticsearch.Name? co private StoredScriptDescriptor ScriptDescriptor { get; set; } private Action ScriptDescriptorAction { get; set; } + /// + /// Contains the script or search template, its parameters, and its language. + /// public PutScriptRequestDescriptor Script(Elastic.Clients.Elasticsearch.StoredScript script) { ScriptDescriptor = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.g.cs index f513b1f7a5a..4002d4f0de5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRequest.g.cs @@ -32,39 +32,43 @@ namespace Elastic.Clients.Elasticsearch; public sealed class ReindexRequestParameters : RequestParameters { /// - /// Should the affected indexes be refreshed? + /// If `true`, the request refreshes affected shards to make this operation visible to search. /// public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// The throttle to set on this request in sub-requests per second. -1 means no throttle. + /// The throttle for this request in sub-requests per second.
Defaults to no throttle.
///
public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } /// - /// Control how long to keep the search context alive + /// Specifies how long a consistent view of the index should be maintained for scrolled search. /// public Elastic.Clients.Elasticsearch.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); } /// - /// The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be set to `auto`. + /// The number of slices this task should be divided into.
Defaults to 1 slice, meaning the task isn’t sliced into subtasks.
///
public Elastic.Clients.Elasticsearch.Slices? Slices { get => Q("slices"); set => Q("slices", value); } /// - /// Time each individual bulk request should wait for shards that are unavailable. + /// Period each indexing waits for automatic index creation, dynamic mapping updates, and waiting for active shards. /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Sets the number of shard copies that must be active before proceeding with the reindex operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// The number of shard copies that must be active before proceeding with the operation.
Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } /// - /// Should the request should block until the reindex is complete. + /// If `true`, the request blocks until the operation is complete. /// public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } + + /// + /// If `true`, the destination must be an index alias. + /// public bool? RequireAlias { get => Q("require_alias"); set => Q("require_alias", value); } } @@ -82,58 +86,82 @@ public sealed partial class ReindexRequest : PlainRequest "reindex"; /// - /// Should the affected indexes be refreshed? + /// If `true`, the request refreshes affected shards to make this operation visible to search. /// [JsonIgnore] public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// The throttle to set on this request in sub-requests per second. -1 means no throttle. + /// The throttle for this request in sub-requests per second.
Defaults to no throttle.
///
[JsonIgnore] public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } /// - /// Control how long to keep the search context alive + /// Specifies how long a consistent view of the index should be maintained for scrolled search. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); } /// - /// The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be set to `auto`. + /// The number of slices this task should be divided into.
Defaults to 1 slice, meaning the task isn’t sliced into subtasks.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Slices? Slices { get => Q("slices"); set => Q("slices", value); } /// - /// Time each individual bulk request should wait for shards that are unavailable. + /// Period each indexing waits for automatic index creation, dynamic mapping updates, and waiting for active shards. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Sets the number of shard copies that must be active before proceeding with the reindex operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// The number of shard copies that must be active before proceeding with the operation.
Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } /// - /// Should the request should block until the reindex is complete. + /// If `true`, the request blocks until the operation is complete. /// [JsonIgnore] public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } + + /// + /// If `true`, the destination must be an index alias. + /// [JsonIgnore] public bool? RequireAlias { get => Q("require_alias"); set => Q("require_alias", value); } + + /// + /// Set to proceed to continue reindexing even if there are conflicts. + /// [JsonInclude, JsonPropertyName("conflicts")] public Elastic.Clients.Elasticsearch.Conflicts? Conflicts { get; set; } + + /// + /// The destination you are copying to. + /// [JsonInclude, JsonPropertyName("dest")] public Elastic.Clients.Elasticsearch.Core.Reindex.Destination Dest { get; set; } + + /// + /// The maximum number of documents to reindex. + /// [JsonInclude, JsonPropertyName("max_docs")] public long? MaxDocs { get; set; } + + /// + /// The script to run to update the document source or metadata when reindexing. + /// [JsonInclude, JsonPropertyName("script")] public Elastic.Clients.Elasticsearch.Script? Script { get; set; } [JsonInclude, JsonPropertyName("size")] public long? Size { get; set; } + + /// + /// The source you are copying from. + /// [JsonInclude, JsonPropertyName("source")] public Elastic.Clients.Elasticsearch.Core.Reindex.Source Source { get; set; } } @@ -177,6 +205,9 @@ public ReindexRequestDescriptor() private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } private long? SizeValue { get; set; } + /// + /// The source you are copying from. + /// public ReindexRequestDescriptor Source(Elastic.Clients.Elasticsearch.Core.Reindex.Source source) { SourceDescriptor = null; @@ -201,12 +232,18 @@ public ReindexRequestDescriptor Source(Action + /// Set to proceed to continue reindexing even if there are conflicts. + ///
public ReindexRequestDescriptor Conflicts(Elastic.Clients.Elasticsearch.Conflicts? conflicts) { ConflictsValue = conflicts; return Self; } + /// + /// The destination you are copying to. + /// public ReindexRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Core.Reindex.Destination dest) { DestDescriptor = null; @@ -231,12 +268,18 @@ public ReindexRequestDescriptor Dest(Action + /// The maximum number of documents to reindex. + ///
public ReindexRequestDescriptor MaxDocs(long? maxDocs) { MaxDocsValue = maxDocs; return Self; } + /// + /// The script to run to update the document source or metadata when reindexing. + /// public ReindexRequestDescriptor Script(Elastic.Clients.Elasticsearch.Script? script) { ScriptValue = script; @@ -351,6 +394,9 @@ public ReindexRequestDescriptor() private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } private long? SizeValue { get; set; } + /// + /// The source you are copying from. + /// public ReindexRequestDescriptor Source(Elastic.Clients.Elasticsearch.Core.Reindex.Source source) { SourceDescriptor = null; @@ -375,12 +421,18 @@ public ReindexRequestDescriptor Source(Action con return Self; } + /// + /// Set to proceed to continue reindexing even if there are conflicts. + /// public ReindexRequestDescriptor Conflicts(Elastic.Clients.Elasticsearch.Conflicts? conflicts) { ConflictsValue = conflicts; return Self; } + /// + /// The destination you are copying to. + /// public ReindexRequestDescriptor Dest(Elastic.Clients.Elasticsearch.Core.Reindex.Destination dest) { DestDescriptor = null; @@ -405,12 +457,18 @@ public ReindexRequestDescriptor Dest(Action return Self; } + /// + /// The maximum number of documents to reindex. + /// public ReindexRequestDescriptor MaxDocs(long? maxDocs) { MaxDocsValue = maxDocs; return Self; } + /// + /// The script to run to update the document source or metadata when reindexing. + /// public ReindexRequestDescriptor Script(Elastic.Clients.Elasticsearch.Script? script) { ScriptValue = script; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRethrottleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRethrottleRequest.g.cs index 3d5d77831ea..723e1cbe4b0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRethrottleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ReindexRethrottleRequest.g.cs @@ -32,13 +32,13 @@ namespace Elastic.Clients.Elasticsearch; public sealed class ReindexRethrottleRequestParameters : RequestParameters { /// - /// The throttle to set on this request in floating sub-requests per second. -1 means set no throttle. + /// The throttle for this request in sub-requests per second. /// public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } } /// -/// Changes the number of requests per second for a particular Reindex operation. +/// Copies documents from a source to a destination. /// public sealed partial class ReindexRethrottleRequest : PlainRequest { @@ -55,14 +55,14 @@ public ReindexRethrottleRequest(Elastic.Clients.Elasticsearch.Id task_id) : base internal override string OperationName => "reindex_rethrottle"; /// - /// The throttle to set on this request in floating sub-requests per second. -1 means set no throttle. + /// The throttle for this request in sub-requests per second. /// [JsonIgnore] public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } } /// -/// Changes the number of requests per second for a particular Reindex operation. +/// Copies documents from a source to a destination. /// public sealed partial class ReindexRethrottleRequestDescriptor : RequestDescriptor { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateRequest.g.cs index 74fb139300e..47d163e7500 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateRequest.g.cs @@ -34,7 +34,7 @@ public sealed class RenderSearchTemplateRequestParameters : RequestParameters } /// -/// Allows to use the Mustache language to pre-render a search definition. +/// Renders a search template as a search request body. /// public sealed partial class RenderSearchTemplateRequest : PlainRequest { @@ -56,14 +56,22 @@ public RenderSearchTemplateRequest(Elastic.Clients.Elasticsearch.Id? id) : base( [JsonInclude, JsonPropertyName("file")] public string? File { get; set; } + + /// + /// Key-value pairs used to replace Mustache variables in the template.
The key is the variable name.
The value is the variable value.
+ ///
[JsonInclude, JsonPropertyName("params")] public IDictionary? Params { get; set; } + + /// + /// An inline search template.
Supports the same parameters as the search API's request body.
These parameters also support Mustache variables.
If no `id` or `` is specified, this parameter is required.
+ ///
[JsonInclude, JsonPropertyName("source")] public string? Source { get; set; } } /// -/// Allows to use the Mustache language to pre-render a search definition. +/// Renders a search template as a search request body. /// public sealed partial class RenderSearchTemplateRequestDescriptor : RequestDescriptor, RenderSearchTemplateRequestParameters> { @@ -97,12 +105,18 @@ public RenderSearchTemplateRequestDescriptor File(string? file) return Self; } + /// + /// Key-value pairs used to replace Mustache variables in the template.
The key is the variable name.
The value is the variable value.
+ ///
public RenderSearchTemplateRequestDescriptor Params(Func, FluentDictionary> selector) { ParamsValue = selector?.Invoke(new FluentDictionary()); return Self; } + /// + /// An inline search template.
Supports the same parameters as the search API's request body.
These parameters also support Mustache variables.
If no `id` or `` is specified, this parameter is required.
+ ///
public RenderSearchTemplateRequestDescriptor Source(string? source) { SourceValue = source; @@ -135,7 +149,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Allows to use the Mustache language to pre-render a search definition. +/// Renders a search template as a search request body. /// public sealed partial class RenderSearchTemplateRequestDescriptor : RequestDescriptor { @@ -169,12 +183,18 @@ public RenderSearchTemplateRequestDescriptor File(string? file) return Self; } + /// + /// Key-value pairs used to replace Mustache variables in the template.
The key is the variable name.
The value is the variable value.
+ ///
public RenderSearchTemplateRequestDescriptor Params(Func, FluentDictionary> selector) { ParamsValue = selector?.Invoke(new FluentDictionary()); return Self; } + /// + /// An inline search template.
Supports the same parameters as the search API's request body.
These parameters also support Mustache variables.
If no `id` or `` is specified, this parameter is required.
+ ///
public RenderSearchTemplateRequestDescriptor Source(string? source) { SourceValue = source; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs index f5afe7a62d1..8dba13f6f16 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs @@ -32,32 +32,32 @@ namespace Elastic.Clients.Elasticsearch; public sealed class SearchShardsRequestParameters : RequestParameters { /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) + /// 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`.
///
public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. + /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`.
Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
///
public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If `false`, the request returns an error if it targets a missing or closed index. /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } /// - /// Return local information, do not retrieve the state from master node (default: false) + /// If `true`, the request retrieves information from the local node only. /// public bool? Local { get => Q("local"); set => Q("local", value); } /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Specific routing value + /// Custom value used to route operations to a specific shard. /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } } @@ -84,37 +84,37 @@ public SearchShardsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : bas internal override string OperationName => "search_shards"; /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) + /// 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`.
///
[JsonIgnore] public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. + /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`.
Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
///
[JsonIgnore] public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If `false`, the request returns an error if it targets a missing or closed index. /// [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } /// - /// Return local information, do not retrieve the state from master node (default: false) + /// If `true`, the request retrieves information from the local node only. /// [JsonIgnore] public bool? Local { get => Q("local"); set => Q("local", value); } /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
[JsonIgnore] public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Specific routing value + /// Custom value used to route operations to a specific shard. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs index 51b32c90705..944b796aa5b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs @@ -32,32 +32,32 @@ namespace Elastic.Clients.Elasticsearch; public sealed class SearchTemplateRequestParameters : RequestParameters { /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) + /// 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`.
///
public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } /// - /// Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution + /// If `true`, network round-trips are minimized for cross-cluster search requests. /// public bool? CcsMinimizeRoundtrips { get => Q("ccs_minimize_roundtrips"); set => Q("ccs_minimize_roundtrips", value); } /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. + /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`.
Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
///
public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } /// - /// Whether specified concrete, expanded or aliased indices should be ignored when throttled + /// If `true`, specified concrete, expanded, or aliased indices are not included in the response when throttled. /// public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If `false`, the request returns an error if it targets a missing or closed index. /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
public string? Preference { get => Q("preference"); set => Q("preference", value); } @@ -82,13 +82,13 @@ public sealed class SearchTemplateRequestParameters : RequestParameters public bool? RestTotalHitsAsInt { get => Q("rest_total_hits_as_int"); set => Q("rest_total_hits_as_int", value); } /// - /// Specify whether aggregation and suggester names should be prefixed by their respective types in the response + /// If `true`, the response prefixes aggregation and suggester names with their respective types. /// public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } } /// -/// Allows to use the Mustache language to pre-render a search definition. +/// Runs a search with a search template. /// public sealed partial class SearchTemplateRequest : PlainRequest { @@ -109,37 +109,37 @@ public SearchTemplateRequest(Elastic.Clients.Elasticsearch.Indices? indices) : b internal override string OperationName => "search_template"; /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) + /// 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`.
///
[JsonIgnore] public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } /// - /// Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution + /// If `true`, network round-trips are minimized for cross-cluster search requests. /// [JsonIgnore] public bool? CcsMinimizeRoundtrips { get => Q("ccs_minimize_roundtrips"); set => Q("ccs_minimize_roundtrips", value); } /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. + /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`.
Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
///
[JsonIgnore] public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } /// - /// Whether specified concrete, expanded or aliased indices should be ignored when throttled + /// If `true`, specified concrete, expanded, or aliased indices are not included in the response when throttled. /// [JsonIgnore] public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If `false`, the request returns an error if it targets a missing or closed index. /// [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
[JsonIgnore] public string? Preference { get => Q("preference"); set => Q("preference", value); } @@ -169,10 +169,14 @@ public SearchTemplateRequest(Elastic.Clients.Elasticsearch.Indices? indices) : b public bool? RestTotalHitsAsInt { get => Q("rest_total_hits_as_int"); set => Q("rest_total_hits_as_int", value); } /// - /// Specify whether aggregation and suggester names should be prefixed by their respective types in the response + /// If `true`, the response prefixes aggregation and suggester names with their respective types. /// [JsonIgnore] public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } + + /// + /// If `true`, returns detailed information about score calculation as part of each hit. + /// [JsonInclude, JsonPropertyName("explain")] public bool? Explain { get; set; } @@ -181,8 +185,16 @@ public SearchTemplateRequest(Elastic.Clients.Elasticsearch.Indices? indices) : b ///
[JsonInclude, JsonPropertyName("id")] public Elastic.Clients.Elasticsearch.Id? Id { get; set; } + + /// + /// Key-value pairs used to replace Mustache variables in the template.
The key is the variable name.
The value is the variable value.
+ ///
[JsonInclude, JsonPropertyName("params")] public IDictionary? Params { get; set; } + + /// + /// If `true`, the query execution is profiled. + /// [JsonInclude, JsonPropertyName("profile")] public bool? Profile { get; set; } @@ -194,7 +206,7 @@ public SearchTemplateRequest(Elastic.Clients.Elasticsearch.Indices? indices) : b } /// -/// Allows to use the Mustache language to pre-render a search definition. +/// Runs a search with a search template. /// public sealed partial class SearchTemplateRequestDescriptor : RequestDescriptor, SearchTemplateRequestParameters> { @@ -236,6 +248,9 @@ public SearchTemplateRequestDescriptor Indices(Elastic.Clients.Elasti private bool? ProfileValue { get; set; } private string? SourceValue { get; set; } + /// + /// If `true`, returns detailed information about score calculation as part of each hit. + /// public SearchTemplateRequestDescriptor Explain(bool? explain = true) { ExplainValue = explain; @@ -251,12 +266,18 @@ public SearchTemplateRequestDescriptor Id(Elastic.Clients.Elasticsear return Self; } + /// + /// Key-value pairs used to replace Mustache variables in the template.
The key is the variable name.
The value is the variable value.
+ ///
public SearchTemplateRequestDescriptor Params(Func, FluentDictionary> selector) { ParamsValue = selector?.Invoke(new FluentDictionary()); return Self; } + /// + /// If `true`, the query execution is profiled. + /// public SearchTemplateRequestDescriptor Profile(bool? profile = true) { ProfileValue = profile; @@ -310,7 +331,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Allows to use the Mustache language to pre-render a search definition. +/// Runs a search with a search template. /// public sealed partial class SearchTemplateRequestDescriptor : RequestDescriptor { @@ -352,6 +373,9 @@ public SearchTemplateRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Ind private bool? ProfileValue { get; set; } private string? SourceValue { get; set; } + /// + /// If `true`, returns detailed information about score calculation as part of each hit. + /// public SearchTemplateRequestDescriptor Explain(bool? explain = true) { ExplainValue = explain; @@ -367,12 +391,18 @@ public SearchTemplateRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) return Self; } + /// + /// Key-value pairs used to replace Mustache variables in the template.
The key is the variable name.
The value is the variable value.
+ ///
public SearchTemplateRequestDescriptor Params(Func, FluentDictionary> selector) { ParamsValue = selector?.Invoke(new FluentDictionary()); return Self; } + /// + /// If `true`, the query execution is profiled. + /// public SearchTemplateRequestDescriptor Profile(bool? profile = true) { ProfileValue = profile; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/ClearCursorRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/ClearCursorRequest.g.cs index 05d5c4bfd47..baf32df2d09 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/ClearCursorRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/ClearCursorRequest.g.cs @@ -46,6 +46,9 @@ public sealed partial class ClearCursorRequest : PlainRequest "sql.clear_cursor"; + /// + /// Cursor to clear. + /// [JsonInclude, JsonPropertyName("cursor")] public string Cursor { get; set; } } @@ -71,6 +74,9 @@ public ClearCursorRequestDescriptor() private string CursorValue { get; set; } + /// + /// Cursor to clear. + /// public ClearCursorRequestDescriptor Cursor(string cursor) { CursorValue = cursor; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.g.cs index f75432122c8..666106dfae0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Sql/QueryRequest.g.cs @@ -57,6 +57,10 @@ public sealed partial class QueryRequest : PlainRequest ///
[JsonInclude, JsonPropertyName("columnar")] public bool? Columnar { get; set; } + + /// + /// Cursor used to retrieve a set of paginated results.
If you specify a cursor, the API only uses the `columnar` and `time_zone` request body parameters.
It ignores other request body parameters.
+ ///
[JsonInclude, JsonPropertyName("cursor")] public string? Cursor { get; set; } @@ -67,13 +71,13 @@ public sealed partial class QueryRequest : PlainRequest public int? FetchSize { get; set; } /// - /// Optional Elasticsearch query DSL for additional filtering. + /// Elasticsearch query DSL for additional filtering. /// [JsonInclude, JsonPropertyName("filter")] public Elastic.Clients.Elasticsearch.QueryDsl.Query? Filter { get; set; } /// - /// SQL query to execute + /// SQL query to run. /// [JsonInclude, JsonPropertyName("query")] public string? Query { get; set; } @@ -91,7 +95,7 @@ public sealed partial class QueryRequest : PlainRequest public Elastic.Clients.Elasticsearch.Duration? PageTimeout { get; set; } /// - /// Time-zone in ISO 8601 used for executing the query on the server. More information available here. + /// ISO-8601 time zone ID for the search. /// [JsonInclude, JsonPropertyName("time_zone")] public string? TimeZone { get; set; } @@ -178,7 +182,7 @@ public QueryRequestDescriptor() private Elastic.Clients.Elasticsearch.Duration? WaitForCompletionTimeoutValue { get; set; } /// - /// Optional Elasticsearch query DSL for additional filtering. + /// Elasticsearch query DSL for additional filtering. /// public QueryRequestDescriptor Filter(Elastic.Clients.Elasticsearch.QueryDsl.Query? filter) { @@ -222,6 +226,9 @@ public QueryRequestDescriptor Columnar(bool? columnar = true) return Self; } + /// + /// Cursor used to retrieve a set of paginated results.
If you specify a cursor, the API only uses the `columnar` and `time_zone` request body parameters.
It ignores other request body parameters.
+ ///
public QueryRequestDescriptor Cursor(string? cursor) { CursorValue = cursor; @@ -292,7 +299,7 @@ public QueryRequestDescriptor Params(Func - /// SQL query to execute + /// SQL query to run. ///
public QueryRequestDescriptor Query(string? query) { @@ -319,7 +326,7 @@ public QueryRequestDescriptor RuntimeMappings(Func - /// Time-zone in ISO 8601 used for executing the query on the server. More information available here. + /// ISO-8601 time zone ID for the search. /// public QueryRequestDescriptor TimeZone(string? timeZone) { @@ -488,7 +495,7 @@ public QueryRequestDescriptor() private Elastic.Clients.Elasticsearch.Duration? WaitForCompletionTimeoutValue { get; set; } /// - /// Optional Elasticsearch query DSL for additional filtering. + /// Elasticsearch query DSL for additional filtering. /// public QueryRequestDescriptor Filter(Elastic.Clients.Elasticsearch.QueryDsl.Query? filter) { @@ -532,6 +539,9 @@ public QueryRequestDescriptor Columnar(bool? columnar = true) return Self; } + /// + /// Cursor used to retrieve a set of paginated results.
If you specify a cursor, the API only uses the `columnar` and `time_zone` request body parameters.
It ignores other request body parameters.
+ ///
public QueryRequestDescriptor Cursor(string? cursor) { CursorValue = cursor; @@ -602,7 +612,7 @@ public QueryRequestDescriptor Params(Func, Flue } /// - /// SQL query to execute + /// SQL query to run. /// public QueryRequestDescriptor Query(string? query) { @@ -629,7 +639,7 @@ public QueryRequestDescriptor RuntimeMappings(Func - /// Time-zone in ISO 8601 used for executing the query on the server. More information available here. + /// ISO-8601 time zone ID for the search. /// public QueryRequestDescriptor TimeZone(string? timeZone) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/CancelRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/CancelRequest.g.cs index 6d3fc7edf86..0a81be6fbaa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/CancelRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/CancelRequest.g.cs @@ -32,17 +32,17 @@ namespace Elastic.Clients.Elasticsearch.Tasks; public sealed class CancelRequestParameters : RequestParameters { /// - /// A comma-separated list of actions that should be cancelled. Leave empty to cancel all. + /// Comma-separated list or wildcard expression of actions used to limit the request. /// public ICollection? Actions { get => Q?>("actions"); set => Q("actions", value); } /// - /// A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + /// Comma-separated list of node IDs or names used to limit the request. /// public ICollection? Nodes { get => Q?>("nodes"); set => Q("nodes", value); } /// - /// Cancel tasks with specified parent task id (node_id:task_number). Set to -1 to cancel all. + /// Parent task ID used to limit the tasks. /// public string? ParentTaskId { get => Q("parent_task_id"); set => Q("parent_task_id", value); } @@ -75,19 +75,19 @@ public CancelRequest(Elastic.Clients.Elasticsearch.TaskId? task_id) : base(r => internal override string OperationName => "tasks.cancel"; /// - /// A comma-separated list of actions that should be cancelled. Leave empty to cancel all. + /// Comma-separated list or wildcard expression of actions used to limit the request. /// [JsonIgnore] public ICollection? Actions { get => Q?>("actions"); set => Q("actions", value); } /// - /// A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + /// Comma-separated list of node IDs or names used to limit the request. /// [JsonIgnore] public ICollection? Nodes { get => Q?>("nodes"); set => Q("nodes", value); } /// - /// Cancel tasks with specified parent task id (node_id:task_number). Set to -1 to cancel all. + /// Parent task ID used to limit the tasks. /// [JsonIgnore] public string? ParentTaskId { get => Q("parent_task_id"); set => Q("parent_task_id", value); } 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 f648359de30..6314c9347aa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Tasks/GetTasksRequest.g.cs @@ -32,12 +32,12 @@ namespace Elastic.Clients.Elasticsearch.Tasks; public sealed class GetTasksRequestParameters : RequestParameters { /// - /// Explicit operation timeout + /// Period to wait for a response.
If no response is received before the timeout expires, the request fails and returns an error.
///
public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Wait for the matching tasks to complete (default: false) + /// If `true`, the request blocks until the task has completed. /// public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } } @@ -61,13 +61,13 @@ public GetTasksRequest(Elastic.Clients.Elasticsearch.Id task_id) : base(r => r.R internal override string OperationName => "tasks.get"; /// - /// Explicit operation timeout + /// Period to wait for a response.
If no response is received before the timeout expires, the request fails and returns an error.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Wait for the matching tasks to complete (default: false) + /// If `true`, the request blocks until the task has completed. /// [JsonIgnore] public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs index 1cf6331b2fc..6c0ee58aa7f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs @@ -32,57 +32,57 @@ namespace Elastic.Clients.Elasticsearch; public sealed class TermVectorsRequestParameters : RequestParameters { /// - /// A comma-separated list of fields to return. + /// Comma-separated list or wildcard expressions of fields to include in the statistics.
Used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters.
///
public Elastic.Clients.Elasticsearch.Fields? Fields { get => Q("fields"); set => Q("fields", value); } /// - /// Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned. + /// If `true`, the response includes the document count, sum of document frequencies, and sum of total term frequencies. /// public bool? FieldStatistics { get => Q("field_statistics"); set => Q("field_statistics", value); } /// - /// Specifies if term offsets should be returned. + /// If `true`, the response includes term offsets. /// public bool? Offsets { get => Q("offsets"); set => Q("offsets", value); } /// - /// Specifies if term payloads should be returned. + /// If `true`, the response includes term payloads. /// public bool? Payloads { get => Q("payloads"); set => Q("payloads", value); } /// - /// Specifies if term positions should be returned. + /// If `true`, the response includes term positions. /// public bool? Positions { get => Q("positions"); set => Q("positions", value); } /// - /// Specify the node or shard the operation should be performed on (default: random). + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Specifies if request is real-time as opposed to near-real-time (default: true). + /// If true, the request is real-time as opposed to near-real-time. /// public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } /// - /// Specific routing value. + /// Custom value used to route operations to a specific shard. /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Specifies if total term frequency and document frequency should be returned. + /// If `true`, the response includes term frequency and document frequency. /// public bool? TermStatistics { get => Q("term_statistics"); set => Q("term_statistics", value); } /// - /// Explicit version number for concurrency control + /// If `true`, returns the document version as part of a hit. /// public long? Version { get => Q("version"); set => Q("version", value); } /// - /// Specific version type + /// Specific version type. /// public Elastic.Clients.Elasticsearch.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } } @@ -112,74 +112,86 @@ public TermVectorsRequest(Elastic.Clients.Elasticsearch.IndexName index) : base( public TDocument Document { get; set; } /// - /// A comma-separated list of fields to return. + /// Comma-separated list or wildcard expressions of fields to include in the statistics.
Used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters.
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.Fields? Fields { get => Q("fields"); set => Q("fields", value); } /// - /// Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned. + /// If `true`, the response includes the document count, sum of document frequencies, and sum of total term frequencies. /// [JsonIgnore] public bool? FieldStatistics { get => Q("field_statistics"); set => Q("field_statistics", value); } /// - /// Specifies if term offsets should be returned. + /// If `true`, the response includes term offsets. /// [JsonIgnore] public bool? Offsets { get => Q("offsets"); set => Q("offsets", value); } /// - /// Specifies if term payloads should be returned. + /// If `true`, the response includes term payloads. /// [JsonIgnore] public bool? Payloads { get => Q("payloads"); set => Q("payloads", value); } /// - /// Specifies if term positions should be returned. + /// If `true`, the response includes term positions. /// [JsonIgnore] public bool? Positions { get => Q("positions"); set => Q("positions", value); } /// - /// Specify the node or shard the operation should be performed on (default: random). + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
[JsonIgnore] public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Specifies if request is real-time as opposed to near-real-time (default: true). + /// If true, the request is real-time as opposed to near-real-time. /// [JsonIgnore] public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } /// - /// Specific routing value. + /// Custom value used to route operations to a specific shard. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Specifies if total term frequency and document frequency should be returned. + /// If `true`, the response includes term frequency and document frequency. /// [JsonIgnore] public bool? TermStatistics { get => Q("term_statistics"); set => Q("term_statistics", value); } /// - /// Explicit version number for concurrency control + /// If `true`, returns the document version as part of a hit. /// [JsonIgnore] public long? Version { get => Q("version"); set => Q("version", value); } /// - /// Specific version type + /// Specific version type. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } + + /// + /// An artificial document (a document not present in the index) for which you want to retrieve term vectors. + /// [JsonInclude, JsonPropertyName("doc")] public TDocument? Doc { get; set; } + + /// + /// Filter terms based on their tf-idf scores. + /// [JsonInclude, JsonPropertyName("filter")] public Elastic.Clients.Elasticsearch.Core.TermVectors.Filter? Filter { get; set; } + + /// + /// Overrides the default per-field analyzer. + /// [JsonInclude, JsonPropertyName("per_field_analyzer")] public IDictionary? PerFieldAnalyzer { get; set; } } @@ -251,12 +263,18 @@ public TermVectorsRequestDescriptor Index(Elastic.Clients.Elasticsear private IDictionary? PerFieldAnalyzerValue { get; set; } private TDocument DocumentValue { get; set; } + /// + /// An artificial document (a document not present in the index) for which you want to retrieve term vectors. + /// public TermVectorsRequestDescriptor Doc(TDocument? doc) { DocValue = doc; return Self; } + /// + /// Filter terms based on their tf-idf scores. + /// public TermVectorsRequestDescriptor Filter(Elastic.Clients.Elasticsearch.Core.TermVectors.Filter? filter) { FilterDescriptor = null; @@ -281,6 +299,9 @@ public TermVectorsRequestDescriptor Filter(Action + /// Overrides the default per-field analyzer. + /// public TermVectorsRequestDescriptor PerFieldAnalyzer(Func, FluentDictionary> selector) { PerFieldAnalyzerValue = selector?.Invoke(new FluentDictionary()); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs index 7fe18e8df3e..0da121dd86d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs @@ -32,32 +32,32 @@ namespace Elastic.Clients.Elasticsearch; public sealed class UpdateByQueryRequestParameters : RequestParameters { /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) + /// 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`.
///
public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } /// - /// The analyzer to use for the query string + /// Analyzer to use for the query string. /// public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } /// - /// Specify whether wildcard and prefix queries should be analyzed (default: false) + /// If `true`, wildcard and prefix queries are analyzed. /// public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } /// - /// The default operator for query string query (AND or OR) + /// The default operator for query string query: `AND` or `OR`. /// public Elastic.Clients.Elasticsearch.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } /// - /// The field to use as default where no field prefix is given in the query string + /// Field to use as default where no field prefix is given in the query string. /// public string? Df { get => Q("df"); set => Q("df", value); } /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. + /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`.
Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
///
public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } @@ -67,92 +67,92 @@ public sealed class UpdateByQueryRequestParameters : RequestParameters public long? From { get => Q("from"); set => Q("from", value); } /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If `false`, the request returns an error if it targets a missing or closed index. /// public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } /// - /// Specify whether format-based query failures (such as providing text to a numeric field) should be ignored + /// If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. /// public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } /// - /// Ingest pipeline to set on index requests made by this action. (default: none) + /// ID of the pipeline to use to preprocess incoming documents.
If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request.
If a final pipeline is configured it will always run, regardless of the value of this parameter.
///
public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Should the affected indexes be refreshed? + /// If `true`, Elasticsearch refreshes affected shards to make the operation visible to search. /// public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specify if request cache should be used for this request or not, defaults to index level setting + /// If `true`, the request cache is used for this request. /// public bool? RequestCache { get => Q("request_cache"); set => Q("request_cache", value); } /// - /// The throttle to set on this request in sub-requests per second. -1 means no throttle. + /// The throttle for this request in sub-requests per second. /// public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } /// - /// A comma-separated list of specific routing values + /// Custom value used to route operations to a specific shard. /// public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Specify how long a consistent view of the index should be maintained for scrolled search + /// Period to retain the search context for scrolling. /// public Elastic.Clients.Elasticsearch.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); } /// - /// Size on the scroll request powering the update by query + /// Size of the scroll request that powers the operation. /// public long? ScrollSize { get => Q("scroll_size"); set => Q("scroll_size", value); } /// - /// Explicit timeout for each search request. Defaults to no timeout. + /// Explicit timeout for each search request. /// public Elastic.Clients.Elasticsearch.Duration? SearchTimeout { get => Q("search_timeout"); set => Q("search_timeout", value); } /// - /// Search operation type + /// The type of the search operation. Available options: `query_then_fetch`, `dfs_query_then_fetch`. /// public Elastic.Clients.Elasticsearch.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } /// - /// The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be set to `auto`. + /// The number of slices this task should be divided into. /// public Elastic.Clients.Elasticsearch.Slices? Slices { get => Q("slices"); set => Q("slices", value); } /// - /// A comma-separated list of : pairs + /// A comma-separated list of : pairs. /// public ICollection? Sort { get => Q?>("sort"); set => Q("sort", value); } /// - /// Specific 'tag' of the request for logging and statistical purposes + /// Specific `tag` of the request for logging and statistical purposes. /// public ICollection? Stats { get => Q?>("stats"); set => Q("stats", value); } /// - /// The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early. + /// Maximum number of documents to collect for each shard.
If a query reaches this limit, Elasticsearch terminates the query early.
Elasticsearch collects documents before sorting.
Use with caution.
Elasticsearch applies this parameter to each shard handling the request.
When possible, let Elasticsearch perform early termination automatically.
Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers.
///
public long? TerminateAfter { get => Q("terminate_after"); set => Q("terminate_after", value); } /// - /// Time each individual bulk request should wait for shards that are unavailable. + /// Period each update request waits for the following operations: dynamic mapping updates, waiting for active shards. /// public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Specify whether to return document version as part of a hit + /// If `true`, returns the document version as part of a hit. /// public bool? Version { get => Q("version"); set => Q("version", value); } @@ -162,18 +162,18 @@ public sealed class UpdateByQueryRequestParameters : RequestParameters public bool? VersionType { get => Q("version_type"); set => Q("version_type", value); } /// - /// Sets the number of shard copies that must be active before proceeding with the update by query operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// The number of shard copies that must be active before proceeding with the operation.
Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } /// - /// Should the request should block until the update by query operation is complete. + /// If `true`, the request blocks until the operation is complete. /// public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } } /// -/// Performs an update on every document in the index without changing the source,
for example to pick up a mapping change.
+/// Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
///
public sealed partial class UpdateByQueryRequest : PlainRequest { @@ -190,37 +190,37 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas internal override string OperationName => "update_by_query"; /// - /// Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) + /// 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`.
///
[JsonIgnore] public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } /// - /// The analyzer to use for the query string + /// Analyzer to use for the query string. /// [JsonIgnore] public string? Analyzer { get => Q("analyzer"); set => Q("analyzer", value); } /// - /// Specify whether wildcard and prefix queries should be analyzed (default: false) + /// If `true`, wildcard and prefix queries are analyzed. /// [JsonIgnore] public bool? AnalyzeWildcard { get => Q("analyze_wildcard"); set => Q("analyze_wildcard", value); } /// - /// The default operator for query string query (AND or OR) + /// The default operator for query string query: `AND` or `OR`. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.QueryDsl.Operator? DefaultOperator { get => Q("default_operator"); set => Q("default_operator", value); } /// - /// The field to use as default where no field prefix is given in the query string + /// Field to use as default where no field prefix is given in the query string. /// [JsonIgnore] public string? Df { get => Q("df"); set => Q("df", value); } /// - /// Whether to expand wildcard expression to concrete indices that are open, closed or both. + /// Type of index that wildcard patterns can match.
If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
Supports comma-separated values, such as `open,hidden`.
Valid values are: `all`, `open`, `closed`, `hidden`, `none`.
///
[JsonIgnore] public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } @@ -232,109 +232,109 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas public long? From { get => Q("from"); set => Q("from", value); } /// - /// Whether specified concrete indices should be ignored when unavailable (missing or closed) + /// If `false`, the request returns an error if it targets a missing or closed index. /// [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } /// - /// Specify whether format-based query failures (such as providing text to a numeric field) should be ignored + /// If `true`, format-based query failures (such as providing text to a numeric field) in the query string will be ignored. /// [JsonIgnore] public bool? Lenient { get => Q("lenient"); set => Q("lenient", value); } /// - /// Ingest pipeline to set on index requests made by this action. (default: none) + /// ID of the pipeline to use to preprocess incoming documents.
If the index has a default ingest pipeline specified, then setting the value to `_none` disables the default ingest pipeline for this request.
If a final pipeline is configured it will always run, regardless of the value of this parameter.
///
[JsonIgnore] public string? Pipeline { get => Q("pipeline"); set => Q("pipeline", value); } /// - /// Specify the node or shard the operation should be performed on (default: random) + /// Specifies the node or shard the operation should be performed on.
Random by default.
///
[JsonIgnore] public string? Preference { get => Q("preference"); set => Q("preference", value); } /// - /// Should the affected indexes be refreshed? + /// If `true`, Elasticsearch refreshes affected shards to make the operation visible to search. /// [JsonIgnore] public bool? Refresh { get => Q("refresh"); set => Q("refresh", value); } /// - /// Specify if request cache should be used for this request or not, defaults to index level setting + /// If `true`, the request cache is used for this request. /// [JsonIgnore] public bool? RequestCache { get => Q("request_cache"); set => Q("request_cache", value); } /// - /// The throttle to set on this request in sub-requests per second. -1 means no throttle. + /// The throttle for this request in sub-requests per second. /// [JsonIgnore] public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } /// - /// A comma-separated list of specific routing values + /// Custom value used to route operations to a specific shard. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } /// - /// Specify how long a consistent view of the index should be maintained for scrolled search + /// Period to retain the search context for scrolling. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? Scroll { get => Q("scroll"); set => Q("scroll", value); } /// - /// Size on the scroll request powering the update by query + /// Size of the scroll request that powers the operation. /// [JsonIgnore] public long? ScrollSize { get => Q("scroll_size"); set => Q("scroll_size", value); } /// - /// Explicit timeout for each search request. Defaults to no timeout. + /// Explicit timeout for each search request. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? SearchTimeout { get => Q("search_timeout"); set => Q("search_timeout", value); } /// - /// Search operation type + /// The type of the search operation. Available options: `query_then_fetch`, `dfs_query_then_fetch`. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } /// - /// The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be set to `auto`. + /// The number of slices this task should be divided into. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Slices? Slices { get => Q("slices"); set => Q("slices", value); } /// - /// A comma-separated list of : pairs + /// A comma-separated list of : pairs. /// [JsonIgnore] public ICollection? Sort { get => Q?>("sort"); set => Q("sort", value); } /// - /// Specific 'tag' of the request for logging and statistical purposes + /// Specific `tag` of the request for logging and statistical purposes. /// [JsonIgnore] public ICollection? Stats { get => Q?>("stats"); set => Q("stats", value); } /// - /// The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early. + /// Maximum number of documents to collect for each shard.
If a query reaches this limit, Elasticsearch terminates the query early.
Elasticsearch collects documents before sorting.
Use with caution.
Elasticsearch applies this parameter to each shard handling the request.
When possible, let Elasticsearch perform early termination automatically.
Avoid specifying this parameter for requests that target data streams with backing indices across multiple data tiers.
///
[JsonIgnore] public long? TerminateAfter { get => Q("terminate_after"); set => Q("terminate_after", value); } /// - /// Time each individual bulk request should wait for shards that are unavailable. + /// Period each update request waits for the following operations: dynamic mapping updates, waiting for active shards. /// [JsonIgnore] public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } /// - /// Specify whether to return document version as part of a hit + /// If `true`, returns the document version as part of a hit. /// [JsonIgnore] public bool? Version { get => Q("version"); set => Q("version", value); } @@ -346,30 +346,50 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas public bool? VersionType { get => Q("version_type"); set => Q("version_type", value); } /// - /// Sets the number of shard copies that must be active before proceeding with the update by query operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1) + /// The number of shard copies that must be active before proceeding with the operation.
Set to `all` or any positive integer up to the total number of shards in the index (`number_of_replicas+1`).
///
[JsonIgnore] public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); } /// - /// Should the request should block until the update by query operation is complete. + /// If `true`, the request blocks until the operation is complete. /// [JsonIgnore] public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } + + /// + /// The maximum number of documents to update. + /// [JsonInclude, JsonPropertyName("max_docs")] public long? MaxDocs { get; set; } + + /// + /// Specifies the documents to update using the Query DSL. + /// [JsonInclude, JsonPropertyName("query")] public Elastic.Clients.Elasticsearch.QueryDsl.Query? Query { get; set; } + + /// + /// The script to run to update the document source or metadata when updating. + /// [JsonInclude, JsonPropertyName("script")] public Elastic.Clients.Elasticsearch.Script? Script { get; set; } + + /// + /// Slice the request manually using the provided slice ID and total number of slices. + /// [JsonInclude, JsonPropertyName("slice")] public Elastic.Clients.Elasticsearch.SlicedScroll? Slice { get; set; } + + /// + /// What to do if update by query hits version conflicts: `abort` or `proceed`. + /// [JsonInclude, JsonPropertyName("conflicts")] public Elastic.Clients.Elasticsearch.Conflicts? Conflicts { get; set; } } /// -/// Performs an update on every document in the index without changing the source,
for example to pick up a mapping change.
+/// Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
///
public sealed partial class UpdateByQueryRequestDescriptor : RequestDescriptor, UpdateByQueryRequestParameters> { @@ -436,6 +456,9 @@ public UpdateByQueryRequestDescriptor Indices(Elastic.Clients.Elastic private long? MaxDocsValue { get; set; } private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } + /// + /// Specifies the documents to update using the Query DSL. + /// public UpdateByQueryRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query? query) { QueryDescriptor = null; @@ -460,6 +483,9 @@ public UpdateByQueryRequestDescriptor Query(Action + /// Slice the request manually using the provided slice ID and total number of slices. + /// public UpdateByQueryRequestDescriptor Slice(Elastic.Clients.Elasticsearch.SlicedScroll? slice) { SliceDescriptor = null; @@ -484,18 +510,27 @@ public UpdateByQueryRequestDescriptor Slice(Action + /// What to do if update by query hits version conflicts: `abort` or `proceed`. + /// public UpdateByQueryRequestDescriptor Conflicts(Elastic.Clients.Elasticsearch.Conflicts? conflicts) { ConflictsValue = conflicts; return Self; } + /// + /// The maximum number of documents to update. + /// public UpdateByQueryRequestDescriptor MaxDocs(long? maxDocs) { MaxDocsValue = maxDocs; return Self; } + /// + /// The script to run to update the document source or metadata when updating. + /// public UpdateByQueryRequestDescriptor Script(Elastic.Clients.Elasticsearch.Script? script) { ScriptValue = script; @@ -560,7 +595,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o } /// -/// Performs an update on every document in the index without changing the source,
for example to pick up a mapping change.
+/// Updates documents that match the specified query.
If no query is specified, performs an update on every document in the data stream or index without modifying the source, which is useful for picking up mapping changes.
///
public sealed partial class UpdateByQueryRequestDescriptor : RequestDescriptor { @@ -627,6 +662,9 @@ public UpdateByQueryRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indi private long? MaxDocsValue { get; set; } private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } + /// + /// Specifies the documents to update using the Query DSL. + /// public UpdateByQueryRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query? query) { QueryDescriptor = null; @@ -651,6 +689,9 @@ public UpdateByQueryRequestDescriptor Query(Action con return Self; } + /// + /// Slice the request manually using the provided slice ID and total number of slices. + /// public UpdateByQueryRequestDescriptor Slice(Elastic.Clients.Elasticsearch.SlicedScroll? slice) { SliceDescriptor = null; @@ -675,18 +716,27 @@ public UpdateByQueryRequestDescriptor Slice(Action confi return Self; } + /// + /// What to do if update by query hits version conflicts: `abort` or `proceed`. + /// public UpdateByQueryRequestDescriptor Conflicts(Elastic.Clients.Elasticsearch.Conflicts? conflicts) { ConflictsValue = conflicts; return Self; } + /// + /// The maximum number of documents to update. + /// public UpdateByQueryRequestDescriptor MaxDocs(long? maxDocs) { MaxDocsValue = maxDocs; return Self; } + /// + /// The script to run to update the document source or metadata when updating. + /// public UpdateByQueryRequestDescriptor Script(Elastic.Clients.Elasticsearch.Script? script) { ScriptValue = script; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs index de846f66f05..74986d8f74f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRethrottleRequest.g.cs @@ -32,7 +32,7 @@ namespace Elastic.Clients.Elasticsearch; public sealed class UpdateByQueryRethrottleRequestParameters : RequestParameters { /// - /// The throttle to set on this request in floating sub-requests per second. -1 means set no throttle. + /// The throttle for this request in sub-requests per second. /// public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } } @@ -55,7 +55,7 @@ public UpdateByQueryRethrottleRequest(Elastic.Clients.Elasticsearch.Id task_id) internal override string OperationName => "update_by_query_rethrottle"; /// - /// The throttle to set on this request in floating sub-requests per second. -1 means set no throttle. + /// The throttle for this request in sub-requests per second. /// [JsonIgnore] public float? RequestsPerSecond { get => Q("requests_per_second"); set => Q("requests_per_second", value); } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs index 7ad07ae169e..a1a0f732caf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs @@ -38,7 +38,7 @@ internal AsyncSearchNamespacedClient(ElasticsearchClient client) : base(client) /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequest request) { @@ -48,7 +48,7 @@ public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequest request /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(AsyncSearchStatusRequest request, CancellationToken cancellationToken = default) { @@ -58,7 +58,7 @@ public virtual Task StatusAsync(AsyncSearchStatusRequ /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id id) { @@ -69,7 +69,7 @@ public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequestDescriptor descriptor) { @@ -79,7 +79,7 @@ public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequestDescript /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) { @@ -91,7 +91,7 @@ public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequestDescriptor descriptor) { @@ -101,7 +101,7 @@ public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequ /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { @@ -113,7 +113,7 @@ public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elast /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -124,7 +124,7 @@ public virtual Task StatusAsync(Elastic.Clients.Elast /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(AsyncSearchStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -134,7 +134,7 @@ public virtual Task StatusAsync(AsyncSearchStatusRequ /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -146,7 +146,7 @@ public virtual Task StatusAsync(Elastic.Clients.Elast /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(AsyncSearchStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -156,7 +156,7 @@ public virtual Task StatusAsync(AsyncSearc /// /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -168,7 +168,7 @@ public virtual Task StatusAsync(Elastic.Cl /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequest request) { @@ -178,7 +178,7 @@ public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequest request /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteAsyncSearchRequest request, CancellationToken cancellationToken = default) { @@ -188,7 +188,7 @@ public virtual Task DeleteAsync(DeleteAsyncSearchRequ /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id id) { @@ -199,7 +199,7 @@ public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequestDescriptor descriptor) { @@ -209,7 +209,7 @@ public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequestDescript /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) { @@ -221,7 +221,7 @@ public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequestDescriptor descriptor) { @@ -231,7 +231,7 @@ public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequ /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { @@ -243,7 +243,7 @@ public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elast /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -254,7 +254,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -264,7 +264,7 @@ public virtual Task DeleteAsync(DeleteAsyncSearchRequ /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -276,7 +276,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(DeleteAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -286,7 +286,7 @@ public virtual Task DeleteAsync(DeleteAsyn /// /// Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -298,7 +298,7 @@ public virtual Task DeleteAsync(Elastic.Cl /// /// Retrieves the results of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetAsyncSearchResponse Get(GetAsyncSearchRequest request) { @@ -308,7 +308,7 @@ public virtual GetAsyncSearchResponse Get(GetAsyncSearchRe /// /// Retrieves the results of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(GetAsyncSearchRequest request, CancellationToken cancellationToken = default) { @@ -318,7 +318,7 @@ public virtual Task> GetAsync(GetAs /// /// Retrieves the results of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetAsyncSearchResponse Get(Elastic.Clients.Elasticsearch.Id id) { @@ -329,7 +329,7 @@ public virtual GetAsyncSearchResponse Get(Elastic.Clients. /// /// Retrieves the results of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetAsyncSearchResponse Get(GetAsyncSearchRequestDescriptor descriptor) { @@ -339,7 +339,7 @@ public virtual GetAsyncSearchResponse Get(GetAsyncSearchRe /// /// Retrieves the results of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetAsyncSearchResponse Get(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { @@ -351,7 +351,7 @@ public virtual GetAsyncSearchResponse Get(Elastic.Clients. /// /// Retrieves the results of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -362,7 +362,7 @@ public virtual Task> GetAsync(Elast /// /// Retrieves the results of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(GetAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -372,7 +372,7 @@ public virtual Task> GetAsync(GetAs /// /// Retrieves the results of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -384,7 +384,7 @@ public virtual Task> GetAsync(Elast /// /// Executes a search request asynchronously. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual SubmitAsyncSearchResponse Submit(SubmitAsyncSearchRequest request) { @@ -394,7 +394,7 @@ public virtual SubmitAsyncSearchResponse Submit(SubmitAsyn /// /// Executes a search request asynchronously. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(SubmitAsyncSearchRequest request, CancellationToken cancellationToken = default) { @@ -404,7 +404,7 @@ public virtual Task> SubmitAsync /// /// Executes a search request asynchronously. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual SubmitAsyncSearchResponse Submit() { @@ -415,7 +415,7 @@ public virtual SubmitAsyncSearchResponse Submit() /// /// Executes a search request asynchronously. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual SubmitAsyncSearchResponse Submit(SubmitAsyncSearchRequestDescriptor descriptor) { @@ -425,7 +425,7 @@ public virtual SubmitAsyncSearchResponse Submit(SubmitAsyn /// /// Executes a search request asynchronously. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual SubmitAsyncSearchResponse Submit(Action> configureRequest) { @@ -437,7 +437,7 @@ public virtual SubmitAsyncSearchResponse Submit(Action /// Executes a search request asynchronously. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(CancellationToken cancellationToken = default) { @@ -448,7 +448,7 @@ public virtual Task> SubmitAsync /// /// Executes a search request asynchronously. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(SubmitAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -458,7 +458,7 @@ public virtual Task> SubmitAsync /// /// Executes a search request asynchronously. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> SubmitAsync(Action> configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs index 0b7ab27caf5..a965a2ec86a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs @@ -38,7 +38,7 @@ internal ClusterNamespacedClient(ElasticsearchClient client) : base(client) /// /// Provides explanations for shard allocations in the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AllocationExplainResponse AllocationExplain(AllocationExplainRequest request) { @@ -48,7 +48,7 @@ public virtual AllocationExplainResponse AllocationExplain(AllocationExplainRequ /// /// Provides explanations for shard allocations in the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(AllocationExplainRequest request, CancellationToken cancellationToken = default) { @@ -58,7 +58,7 @@ public virtual Task AllocationExplainAsync(Allocation /// /// Provides explanations for shard allocations in the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AllocationExplainResponse AllocationExplain() { @@ -69,7 +69,7 @@ public virtual AllocationExplainResponse AllocationExplain() /// /// Provides explanations for shard allocations in the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AllocationExplainResponse AllocationExplain(AllocationExplainRequestDescriptor descriptor) { @@ -79,7 +79,7 @@ public virtual AllocationExplainResponse AllocationExplain(AllocationExplainRequ /// /// Provides explanations for shard allocations in the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual AllocationExplainResponse AllocationExplain(Action configureRequest) { @@ -91,7 +91,7 @@ public virtual AllocationExplainResponse AllocationExplain(Action /// Provides explanations for shard allocations in the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(CancellationToken cancellationToken = default) { @@ -102,7 +102,7 @@ public virtual Task AllocationExplainAsync(Cancellati /// /// Provides explanations for shard allocations in the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(AllocationExplainRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -112,7 +112,7 @@ public virtual Task AllocationExplainAsync(Allocation /// /// Provides explanations for shard allocations in the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task AllocationExplainAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -124,7 +124,7 @@ public virtual Task AllocationExplainAsync(Action /// Returns high-level overview of cluster statistics. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClusterStatsResponse Stats(ClusterStatsRequest request) { @@ -134,7 +134,7 @@ public virtual ClusterStatsResponse Stats(ClusterStatsRequest request) /// /// Returns high-level overview of cluster statistics. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(ClusterStatsRequest request, CancellationToken cancellationToken = default) { @@ -144,7 +144,7 @@ public virtual Task StatsAsync(ClusterStatsRequest request /// /// Returns high-level overview of cluster statistics. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClusterStatsResponse Stats() { @@ -155,7 +155,7 @@ public virtual ClusterStatsResponse Stats() /// /// Returns high-level overview of cluster statistics. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClusterStatsResponse Stats(ClusterStatsRequestDescriptor descriptor) { @@ -165,7 +165,7 @@ public virtual ClusterStatsResponse Stats(ClusterStatsRequestDescriptor descript /// /// Returns high-level overview of cluster statistics. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClusterStatsResponse Stats(Action configureRequest) { @@ -177,7 +177,7 @@ public virtual ClusterStatsResponse Stats(Action /// /// Returns high-level overview of cluster statistics. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { @@ -188,7 +188,7 @@ public virtual Task StatsAsync(CancellationToken cancellat /// /// Returns high-level overview of cluster statistics. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(ClusterStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -198,7 +198,7 @@ public virtual Task StatsAsync(ClusterStatsRequestDescript /// /// Returns high-level overview of cluster statistics. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task StatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -210,7 +210,7 @@ public virtual Task StatsAsync(Action /// Returns cluster settings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetClusterSettingsResponse GetSettings(GetClusterSettingsRequest request) { @@ -220,7 +220,7 @@ public virtual GetClusterSettingsResponse GetSettings(GetClusterSettingsRequest /// /// Returns cluster settings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(GetClusterSettingsRequest request, CancellationToken cancellationToken = default) { @@ -230,7 +230,7 @@ public virtual Task GetSettingsAsync(GetClusterSetti /// /// Returns cluster settings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetClusterSettingsResponse GetSettings() { @@ -241,7 +241,7 @@ public virtual GetClusterSettingsResponse GetSettings() /// /// Returns cluster settings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetClusterSettingsResponse GetSettings(GetClusterSettingsRequestDescriptor descriptor) { @@ -251,7 +251,7 @@ public virtual GetClusterSettingsResponse GetSettings(GetClusterSettingsRequestD /// /// Returns cluster settings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetClusterSettingsResponse GetSettings(Action configureRequest) { @@ -263,7 +263,7 @@ public virtual GetClusterSettingsResponse GetSettings(Action /// Returns cluster settings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(CancellationToken cancellationToken = default) { @@ -274,7 +274,7 @@ public virtual Task GetSettingsAsync(CancellationTok /// /// Returns cluster settings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(GetClusterSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -284,7 +284,7 @@ public virtual Task GetSettingsAsync(GetClusterSetti /// /// Returns cluster settings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetSettingsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -296,7 +296,7 @@ public virtual Task GetSettingsAsync(Action /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual HealthResponse Health(HealthRequest request) { @@ -306,7 +306,7 @@ public virtual HealthResponse Health(HealthRequest request) /// /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(HealthRequest request, CancellationToken cancellationToken = default) { @@ -316,7 +316,7 @@ public virtual Task HealthAsync(HealthRequest request, Cancellat /// /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual HealthResponse Health() { @@ -327,7 +327,7 @@ public virtual HealthResponse Health() /// /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual HealthResponse Health(HealthRequestDescriptor descriptor) { @@ -337,7 +337,7 @@ public virtual HealthResponse Health(HealthRequestDescriptor descriptor) /// /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual HealthResponse Health(Action configureRequest) { @@ -349,7 +349,7 @@ public virtual HealthResponse Health(Action configureRe /// /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual HealthResponse Health(HealthRequestDescriptor descriptor) { @@ -359,7 +359,7 @@ public virtual HealthResponse Health(HealthRequestDescriptor /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual HealthResponse Health(Action> configureRequest) { @@ -371,7 +371,7 @@ public virtual HealthResponse Health(Action /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(CancellationToken cancellationToken = default) { @@ -382,7 +382,7 @@ public virtual Task HealthAsync(CancellationToken cancellationTo /// /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(HealthRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -392,7 +392,7 @@ public virtual Task HealthAsync(HealthRequestDescriptor descript /// /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -404,7 +404,7 @@ public virtual Task HealthAsync(Action /// /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(HealthRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -414,7 +414,7 @@ public virtual Task HealthAsync(HealthRequestDescript /// /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task HealthAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -426,7 +426,7 @@ public virtual Task HealthAsync(Action /// Returns a list of any cluster-level changes (e.g. create index, update mapping,
allocate or fail shard) which have not yet been executed.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PendingTasksResponse PendingTasks(PendingTasksRequest request) { @@ -436,7 +436,7 @@ public virtual PendingTasksResponse PendingTasks(PendingTasksRequest request) /// /// Returns a list of any cluster-level changes (e.g. create index, update mapping,
allocate or fail shard) which have not yet been executed.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PendingTasksAsync(PendingTasksRequest request, CancellationToken cancellationToken = default) { @@ -446,7 +446,7 @@ public virtual Task PendingTasksAsync(PendingTasksRequest /// /// Returns a list of any cluster-level changes (e.g. create index, update mapping,
allocate or fail shard) which have not yet been executed.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual PendingTasksResponse PendingTasks() { @@ -457,7 +457,7 @@ public virtual PendingTasksResponse PendingTasks() /// /// Returns a list of any cluster-level changes (e.g. create index, update mapping,
allocate or fail shard) which have not yet been executed.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual PendingTasksResponse PendingTasks(PendingTasksRequestDescriptor descriptor) { @@ -467,7 +467,7 @@ public virtual PendingTasksResponse PendingTasks(PendingTasksRequestDescriptor d /// /// Returns a list of any cluster-level changes (e.g. create index, update mapping,
allocate or fail shard) which have not yet been executed.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual PendingTasksResponse PendingTasks(Action configureRequest) { @@ -479,7 +479,7 @@ public virtual PendingTasksResponse PendingTasks(Action /// Returns a list of any cluster-level changes (e.g. create index, update mapping,
allocate or fail shard) which have not yet been executed.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PendingTasksAsync(CancellationToken cancellationToken = default) { @@ -490,7 +490,7 @@ public virtual Task PendingTasksAsync(CancellationToken ca /// /// Returns a list of any cluster-level changes (e.g. create index, update mapping,
allocate or fail shard) which have not yet been executed.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PendingTasksAsync(PendingTasksRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -500,7 +500,7 @@ public virtual Task PendingTasksAsync(PendingTasksRequestD /// /// Returns a list of any cluster-level changes (e.g. create index, update mapping,
allocate or fail shard) which have not yet been executed.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task PendingTasksAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Enrich.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Enrich.g.cs index c723a56db96..b793fee1808 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Enrich.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Enrich.g.cs @@ -210,7 +210,7 @@ public virtual Task StatsAsync(Action /// Creates the enrich index for an existing enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequest request) { @@ -220,7 +220,7 @@ public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequest request) /// /// Creates the enrich index for an existing enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecutePolicyAsync(ExecutePolicyRequest request, CancellationToken cancellationToken = default) { @@ -230,7 +230,7 @@ public virtual Task ExecutePolicyAsync(ExecutePolicyReque /// /// Creates the enrich index for an existing enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ExecutePolicyResponse ExecutePolicy(Elastic.Clients.Elasticsearch.Name name) { @@ -241,7 +241,7 @@ public virtual ExecutePolicyResponse ExecutePolicy(Elastic.Clients.Elasticsearch /// /// Creates the enrich index for an existing enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequestDescriptor descriptor) { @@ -251,7 +251,7 @@ public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequestDescripto /// /// Creates the enrich index for an existing enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ExecutePolicyResponse ExecutePolicy(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) { @@ -263,7 +263,7 @@ public virtual ExecutePolicyResponse ExecutePolicy(Elastic.Clients.Elasticsearch /// /// Creates the enrich index for an existing enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecutePolicyAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { @@ -274,7 +274,7 @@ public virtual Task ExecutePolicyAsync(Elastic.Clients.El /// /// Creates the enrich index for an existing enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecutePolicyAsync(ExecutePolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -284,7 +284,7 @@ public virtual Task ExecutePolicyAsync(ExecutePolicyReque /// /// Creates the enrich index for an existing enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExecutePolicyAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -382,7 +382,7 @@ public virtual Task GetPolicyAsync(Action /// Creates a new enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PutPolicyResponse PutPolicy(PutPolicyRequest request) { @@ -392,7 +392,7 @@ public virtual PutPolicyResponse PutPolicy(PutPolicyRequest request) /// /// Creates a new enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(PutPolicyRequest request, CancellationToken cancellationToken = default) { @@ -402,7 +402,7 @@ public virtual Task PutPolicyAsync(PutPolicyRequest request, /// /// Creates a new enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PutPolicyResponse PutPolicy(PutPolicyRequestDescriptor descriptor) { @@ -412,7 +412,7 @@ public virtual PutPolicyResponse PutPolicy(PutPolicyRequestDescriptor descriptor /// /// Creates a new enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) { @@ -424,7 +424,7 @@ public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsearch.Name na /// /// Creates a new enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PutPolicyResponse PutPolicy(PutPolicyRequestDescriptor descriptor) { @@ -434,7 +434,7 @@ public virtual PutPolicyResponse PutPolicy(PutPolicyRequestDescriptor /// /// Creates a new enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest) { @@ -446,7 +446,7 @@ public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsea /// /// Creates a new enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(PutPolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -456,7 +456,7 @@ public virtual Task PutPolicyAsync(PutPolicyRequestDescriptor /// /// Creates a new enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -468,7 +468,7 @@ public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsea /// /// Creates a new enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(PutPolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -478,7 +478,7 @@ public virtual Task PutPolicyAsync(PutPolicyReques /// /// Creates a new enrich policy. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Eql.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Eql.g.cs index 89ba4e1262c..5ea557923b6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Eql.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Eql.g.cs @@ -168,7 +168,7 @@ public virtual Task DeleteAsync(Elastic.Clients.El /// /// Returns async results from previously executed Event Query Language (EQL) search - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual EqlGetResponse Get(EqlGetRequest request) { @@ -178,7 +178,7 @@ public virtual EqlGetResponse Get(EqlGetRequest request) /// /// Returns async results from previously executed Event Query Language (EQL) search - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(EqlGetRequest request, CancellationToken cancellationToken = default) { @@ -188,7 +188,7 @@ public virtual Task> GetAsync(EqlGetRequest reque /// /// Returns async results from previously executed Event Query Language (EQL) search - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual EqlGetResponse Get(Elastic.Clients.Elasticsearch.Id id) { @@ -199,7 +199,7 @@ public virtual EqlGetResponse Get(Elastic.Clients.Elasticsearch. /// /// Returns async results from previously executed Event Query Language (EQL) search - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual EqlGetResponse Get(EqlGetRequestDescriptor descriptor) { @@ -209,7 +209,7 @@ public virtual EqlGetResponse Get(EqlGetRequestDescriptor descri /// /// Returns async results from previously executed Event Query Language (EQL) search - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual EqlGetResponse Get(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) { @@ -221,7 +221,7 @@ public virtual EqlGetResponse Get(Elastic.Clients.Elasticsearch. /// /// Returns async results from previously executed Event Query Language (EQL) search - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -232,7 +232,7 @@ public virtual Task> GetAsync(Elastic.Clients.Ela /// /// Returns async results from previously executed Event Query Language (EQL) search - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(EqlGetRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -242,7 +242,7 @@ public virtual Task> GetAsync(EqlGetRequestDescri /// /// Returns async results from previously executed Event Query Language (EQL) search - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -340,7 +340,7 @@ public virtual Task> SearchAsync(Elastic.Clien /// /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequest request) { @@ -350,7 +350,7 @@ public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequest request) /// /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(GetEqlStatusRequest request, CancellationToken cancellationToken = default) { @@ -360,7 +360,7 @@ public virtual Task GetStatusAsync(GetEqlStatusRequest req /// /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id id) { @@ -371,7 +371,7 @@ public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id i /// /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequestDescriptor descriptor) { @@ -381,7 +381,7 @@ public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequestDescriptor desc /// /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) { @@ -393,7 +393,7 @@ public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id i /// /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequestDescriptor descriptor) { @@ -403,7 +403,7 @@ public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequestDesc /// /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { @@ -415,7 +415,7 @@ public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elastic /// /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { @@ -426,7 +426,7 @@ public virtual Task GetStatusAsync(Elastic.Clients.Elastic /// /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(GetEqlStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -436,7 +436,7 @@ public virtual Task GetStatusAsync(GetEqlStatusRequestDesc /// /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -448,7 +448,7 @@ public virtual Task GetStatusAsync(Elastic.Clients.Elastic /// /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(GetEqlStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -458,7 +458,7 @@ public virtual Task GetStatusAsync(GetEqlStatus /// /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs index 19b62fff305..eae430be7a6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs @@ -38,7 +38,7 @@ internal GraphNamespacedClient(ElasticsearchClient client) : base(client) /// /// Explore extracted and summarized information about the documents and terms in an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ExploreResponse Explore(ExploreRequest request) { @@ -48,7 +48,7 @@ public virtual ExploreResponse Explore(ExploreRequest request) /// /// Explore extracted and summarized information about the documents and terms in an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(ExploreRequest request, CancellationToken cancellationToken = default) { @@ -58,7 +58,7 @@ public virtual Task ExploreAsync(ExploreRequest request, Cancel /// /// Explore extracted and summarized information about the documents and terms in an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Indices indices) { @@ -69,7 +69,7 @@ public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Indices ind /// /// Explore extracted and summarized information about the documents and terms in an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ExploreResponse Explore(ExploreRequestDescriptor descriptor) { @@ -79,7 +79,7 @@ public virtual ExploreResponse Explore(ExploreRequestDescriptor descriptor) /// /// Explore extracted and summarized information about the documents and terms in an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) { @@ -91,7 +91,7 @@ public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Indices ind /// /// Explore extracted and summarized information about the documents and terms in an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ExploreResponse Explore(ExploreRequestDescriptor descriptor) { @@ -101,7 +101,7 @@ public virtual ExploreResponse Explore(ExploreRequestDescriptor /// Explore extracted and summarized information about the documents and terms in an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) { @@ -113,7 +113,7 @@ public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch. /// /// Explore extracted and summarized information about the documents and terms in an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -124,7 +124,7 @@ public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch. /// /// Explore extracted and summarized information about the documents and terms in an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(ExploreRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -134,7 +134,7 @@ public virtual Task ExploreAsync(ExploreRequestDescriptor descr /// /// Explore extracted and summarized information about the documents and terms in an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -146,7 +146,7 @@ public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch. /// /// Explore extracted and summarized information about the documents and terms in an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(ExploreRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -156,7 +156,7 @@ public virtual Task ExploreAsync(ExploreRequestDescr /// /// Explore extracted and summarized information about the documents and terms in an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs index 0b53126beaa..1b509ed3e28 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs @@ -214,7 +214,7 @@ public virtual Task CloneAsync(Elastic.Clients.El /// /// Closes an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CloseIndexResponse Close(CloseIndexRequest request) { @@ -224,7 +224,7 @@ public virtual CloseIndexResponse Close(CloseIndexRequest request) /// /// Closes an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(CloseIndexRequest request, CancellationToken cancellationToken = default) { @@ -234,7 +234,7 @@ public virtual Task CloseAsync(CloseIndexRequest request, Ca /// /// Closes an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices indices) { @@ -245,7 +245,7 @@ public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices in /// /// Closes an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CloseIndexResponse Close(CloseIndexRequestDescriptor descriptor) { @@ -255,7 +255,7 @@ public virtual CloseIndexResponse Close(CloseIndexRequestDescriptor descriptor) /// /// Closes an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) { @@ -267,7 +267,7 @@ public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices in /// /// Closes an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CloseIndexResponse Close(CloseIndexRequestDescriptor descriptor) { @@ -277,7 +277,7 @@ public virtual CloseIndexResponse Close(CloseIndexRequestDescriptor /// Closes an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) { @@ -289,7 +289,7 @@ public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch /// /// Closes an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -300,7 +300,7 @@ public virtual Task CloseAsync(Elastic.Clients.Elasticsearch /// /// Closes an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(CloseIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -310,7 +310,7 @@ public virtual Task CloseAsync(CloseIndexRequestDescriptor d /// /// Closes an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -322,7 +322,7 @@ public virtual Task CloseAsync(Elastic.Clients.Elasticsearch /// /// Closes an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(CloseIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -332,7 +332,7 @@ public virtual Task CloseAsync(CloseIndexRequestD /// /// Closes an index. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -430,7 +430,7 @@ public virtual Task CreateDataStreamAsync(Elastic.Clie /// /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CreateIndexResponse Create(CreateIndexRequest request) { @@ -440,7 +440,7 @@ public virtual CreateIndexResponse Create(CreateIndexRequest request) /// /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CreateIndexRequest request, CancellationToken cancellationToken = default) { @@ -450,7 +450,7 @@ public virtual Task CreateAsync(CreateIndexRequest request, /// /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexName index) { @@ -461,7 +461,7 @@ public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexNam /// /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CreateIndexResponse Create(CreateIndexRequestDescriptor descriptor) { @@ -471,7 +471,7 @@ public virtual CreateIndexResponse Create(CreateIndexRequestDescriptor descripto /// /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) { @@ -483,7 +483,7 @@ public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexNam /// /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CreateIndexResponse Create() { @@ -494,7 +494,7 @@ public virtual CreateIndexResponse Create() /// /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CreateIndexResponse Create(Action> configureRequest) { @@ -506,7 +506,7 @@ public virtual CreateIndexResponse Create(Action /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CreateIndexResponse Create(CreateIndexRequestDescriptor descriptor) { @@ -516,7 +516,7 @@ public virtual CreateIndexResponse Create(CreateIndexRequestDescripto /// /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) { @@ -528,7 +528,7 @@ public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsear /// /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { @@ -539,7 +539,7 @@ public virtual Task CreateAsync(Elastic.Clients.Elasticsear /// /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CreateIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -549,7 +549,7 @@ public virtual Task CreateAsync(CreateIndexRequestDescripto /// /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) { @@ -561,7 +561,7 @@ public virtual Task CreateAsync(Elastic.Clients.Elasticsear /// /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CancellationToken cancellationToken = default) { @@ -572,7 +572,7 @@ public virtual Task CreateAsync(CancellationToke /// /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -584,7 +584,7 @@ public virtual Task CreateAsync(Action /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(CreateIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -594,7 +594,7 @@ public virtual Task CreateAsync(CreateIndexReque /// /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -735,9 +735,8 @@ public virtual Task DeleteAliasAsync(Elastic.Cli } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Deletes the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Deletes the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(DeleteDataLifecycleRequest request) { @@ -746,9 +745,8 @@ public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(DeleteDataLifecyc } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Deletes the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Deletes the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataLifecycleAsync(DeleteDataLifecycleRequest request, CancellationToken cancellationToken = default) { @@ -757,9 +755,8 @@ public virtual Task DeleteDataLifecycleAsync(Delete } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Deletes the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Deletes the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(Elastic.Clients.Elasticsearch.DataStreamNames name) { @@ -769,9 +766,8 @@ public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(Elastic.Clients.E } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Deletes the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Deletes the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(DeleteDataLifecycleRequestDescriptor descriptor) { @@ -780,9 +776,8 @@ public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(DeleteDataLifecyc } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Deletes the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Deletes the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(Elastic.Clients.Elasticsearch.DataStreamNames name, Action configureRequest) { @@ -793,9 +788,8 @@ public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(Elastic.Clients.E } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Deletes the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Deletes the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataLifecycleAsync(Elastic.Clients.Elasticsearch.DataStreamNames name, CancellationToken cancellationToken = default) { @@ -805,9 +799,8 @@ public virtual Task DeleteDataLifecycleAsync(Elasti } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Deletes the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Deletes the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataLifecycleAsync(DeleteDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -816,9 +809,8 @@ public virtual Task DeleteDataLifecycleAsync(Delete } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Deletes the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Deletes the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task DeleteDataLifecycleAsync(Elastic.Clients.Elasticsearch.DataStreamNames name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1649,9 +1641,8 @@ public virtual Task ExistsTemplateAsync(Elastic.Clients. } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. - /// Learn more about this API in the Elasticsearch documentation. + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(ExplainDataLifecycleRequest request) { @@ -1660,9 +1651,8 @@ public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(ExplainDataLife } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. - /// Learn more about this API in the Elasticsearch documentation. + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataLifecycleAsync(ExplainDataLifecycleRequest request, CancellationToken cancellationToken = default) { @@ -1671,9 +1661,8 @@ public virtual Task ExplainDataLifecycleAsync(Expl } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. - /// Learn more about this API in the Elasticsearch documentation. + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elastic.Clients.Elasticsearch.Indices indices) { @@ -1683,9 +1672,8 @@ public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elastic.Clients } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. - /// Learn more about this API in the Elasticsearch documentation. + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(ExplainDataLifecycleRequestDescriptor descriptor) { @@ -1694,9 +1682,8 @@ public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(ExplainDataLife } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. - /// Learn more about this API in the Elasticsearch documentation. + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) { @@ -1707,9 +1694,8 @@ public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elastic.Clients } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. - /// Learn more about this API in the Elasticsearch documentation. + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(ExplainDataLifecycleRequestDescriptor descriptor) { @@ -1718,9 +1704,8 @@ public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Expl } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. - /// Learn more about this API in the Elasticsearch documentation. + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) { @@ -1731,9 +1716,8 @@ public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(Elas } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. - /// Learn more about this API in the Elasticsearch documentation. + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataLifecycleAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -1743,9 +1727,8 @@ public virtual Task ExplainDataLifecycleAsync(Elas } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. - /// Learn more about this API in the Elasticsearch documentation. + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataLifecycleAsync(ExplainDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1754,9 +1737,8 @@ public virtual Task ExplainDataLifecycleAsync(Expl } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. - /// Learn more about this API in the Elasticsearch documentation. + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataLifecycleAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -1767,9 +1749,8 @@ public virtual Task ExplainDataLifecycleAsync(Elas } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. - /// Learn more about this API in the Elasticsearch documentation. + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataLifecycleAsync(ExplainDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1778,9 +1759,8 @@ public virtual Task ExplainDataLifecycleAsync - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Retrieves information about the index's current DLM lifecycle, such as any potential encountered error, time since creation etc. - /// Learn more about this API in the Elasticsearch documentation. + /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ExplainDataLifecycleAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -1792,7 +1772,7 @@ public virtual Task ExplainDataLifecycleAsync /// Performs the flush operation on one or more indices. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual FlushResponse Flush(FlushRequest request) { @@ -1802,7 +1782,7 @@ public virtual FlushResponse Flush(FlushRequest request) /// /// Performs the flush operation on one or more indices. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(FlushRequest request, CancellationToken cancellationToken = default) { @@ -1812,7 +1792,7 @@ public virtual Task FlushAsync(FlushRequest request, Cancellation /// /// Performs the flush operation on one or more indices. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual FlushResponse Flush() { @@ -1823,7 +1803,7 @@ public virtual FlushResponse Flush() /// /// Performs the flush operation on one or more indices. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual FlushResponse Flush(FlushRequestDescriptor descriptor) { @@ -1833,7 +1813,7 @@ public virtual FlushResponse Flush(FlushRequestDescriptor descriptor) /// /// Performs the flush operation on one or more indices. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual FlushResponse Flush(Action configureRequest) { @@ -1845,7 +1825,7 @@ public virtual FlushResponse Flush(Action configureReque /// /// Performs the flush operation on one or more indices. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual FlushResponse Flush(FlushRequestDescriptor descriptor) { @@ -1855,7 +1835,7 @@ public virtual FlushResponse Flush(FlushRequestDescriptor /// /// Performs the flush operation on one or more indices. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual FlushResponse Flush(Action> configureRequest) { @@ -1867,7 +1847,7 @@ public virtual FlushResponse Flush(Action /// Performs the flush operation on one or more indices. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(CancellationToken cancellationToken = default) { @@ -1878,7 +1858,7 @@ public virtual Task FlushAsync(CancellationToken cancellationToke /// /// Performs the flush operation on one or more indices. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(FlushRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1888,7 +1868,7 @@ public virtual Task FlushAsync(FlushRequestDescriptor descriptor, /// /// Performs the flush operation on one or more indices. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -1900,7 +1880,7 @@ public virtual Task FlushAsync(Action con /// /// Performs the flush operation on one or more indices. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(FlushRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -1910,7 +1890,7 @@ public virtual Task FlushAsync(FlushRequestDescriptor< /// /// Performs the flush operation on one or more indices. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task FlushAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -2181,9 +2161,8 @@ public virtual Task GetAliasAsync(Action - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Returns the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Returns the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetDataLifecycleResponse GetDataLifecycle(GetDataLifecycleRequest request) { @@ -2192,9 +2171,8 @@ public virtual GetDataLifecycleResponse GetDataLifecycle(GetDataLifecycleRequest } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Returns the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Returns the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataLifecycleAsync(GetDataLifecycleRequest request, CancellationToken cancellationToken = default) { @@ -2203,9 +2181,8 @@ public virtual Task GetDataLifecycleAsync(GetDataLifec } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Returns the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Returns the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetDataLifecycleResponse GetDataLifecycle(Elastic.Clients.Elasticsearch.DataStreamNames name) { @@ -2215,9 +2192,8 @@ public virtual GetDataLifecycleResponse GetDataLifecycle(Elastic.Clients.Elastic } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Returns the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Returns the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetDataLifecycleResponse GetDataLifecycle(GetDataLifecycleRequestDescriptor descriptor) { @@ -2226,9 +2202,8 @@ public virtual GetDataLifecycleResponse GetDataLifecycle(GetDataLifecycleRequest } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Returns the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Returns the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetDataLifecycleResponse GetDataLifecycle(Elastic.Clients.Elasticsearch.DataStreamNames name, Action configureRequest) { @@ -2239,9 +2214,8 @@ public virtual GetDataLifecycleResponse GetDataLifecycle(Elastic.Clients.Elastic } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Returns the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Returns the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataLifecycleAsync(Elastic.Clients.Elasticsearch.DataStreamNames name, CancellationToken cancellationToken = default) { @@ -2251,9 +2225,8 @@ public virtual Task GetDataLifecycleAsync(Elastic.Clie } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Returns the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Returns the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataLifecycleAsync(GetDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2262,9 +2235,8 @@ public virtual Task GetDataLifecycleAsync(GetDataLifec } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Returns the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Returns the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetDataLifecycleAsync(Elastic.Clients.Elasticsearch.DataStreamNames name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3399,9 +3371,8 @@ public virtual Task PutAliasAsync(Elastic.Clients.E } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Updates the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Updates the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PutDataLifecycleResponse PutDataLifecycle(PutDataLifecycleRequest request) { @@ -3410,9 +3381,8 @@ public virtual PutDataLifecycleResponse PutDataLifecycle(PutDataLifecycleRequest } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Updates the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Updates the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataLifecycleAsync(PutDataLifecycleRequest request, CancellationToken cancellationToken = default) { @@ -3421,9 +3391,8 @@ public virtual Task PutDataLifecycleAsync(PutDataLifec } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Updates the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Updates the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PutDataLifecycleResponse PutDataLifecycle(Elastic.Clients.Elasticsearch.DataStreamNames name) { @@ -3433,9 +3402,8 @@ public virtual PutDataLifecycleResponse PutDataLifecycle(Elastic.Clients.Elastic } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Updates the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Updates the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PutDataLifecycleResponse PutDataLifecycle(PutDataLifecycleRequestDescriptor descriptor) { @@ -3444,9 +3412,8 @@ public virtual PutDataLifecycleResponse PutDataLifecycle(PutDataLifecycleRequest } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Updates the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Updates the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PutDataLifecycleResponse PutDataLifecycle(Elastic.Clients.Elasticsearch.DataStreamNames name, Action configureRequest) { @@ -3457,9 +3424,8 @@ public virtual PutDataLifecycleResponse PutDataLifecycle(Elastic.Clients.Elastic } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Updates the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Updates the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataLifecycleAsync(Elastic.Clients.Elasticsearch.DataStreamNames name, CancellationToken cancellationToken = default) { @@ -3469,9 +3435,8 @@ public virtual Task PutDataLifecycleAsync(Elastic.Clie } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Updates the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Updates the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataLifecycleAsync(PutDataLifecycleRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3480,9 +3445,8 @@ public virtual Task PutDataLifecycleAsync(PutDataLifec } /// - /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. - /// Updates the data lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. + /// Updates the data stream lifecycle of the selected data streams. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutDataLifecycleAsync(Elastic.Clients.Elasticsearch.DataStreamNames name, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3904,7 +3868,7 @@ public virtual Task RefreshAsync(Action /// Updates an alias to point to a new index when the existing index
is considered to be too large or too old.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual RolloverResponse Rollover(RolloverRequest request) { @@ -3914,7 +3878,7 @@ public virtual RolloverResponse Rollover(RolloverRequest request) /// /// Updates an alias to point to a new index when the existing index
is considered to be too large or too old.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task RolloverAsync(RolloverRequest request, CancellationToken cancellationToken = default) { @@ -3924,7 +3888,7 @@ public virtual Task RolloverAsync(RolloverRequest request, Can /// /// Updates an alias to point to a new index when the existing index
is considered to be too large or too old.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlias alias) { @@ -3935,7 +3899,7 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlia /// /// Updates an alias to point to a new index when the existing index
is considered to be too large or too old.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual RolloverResponse Rollover(RolloverRequestDescriptor descriptor) { @@ -3945,7 +3909,7 @@ public virtual RolloverResponse Rollover(RolloverRequestDescriptor descriptor) /// /// Updates an alias to point to a new index when the existing index
is considered to be too large or too old.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlias alias, Action configureRequest) { @@ -3957,7 +3921,7 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlia /// /// Updates an alias to point to a new index when the existing index
is considered to be too large or too old.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.IndexAlias alias, CancellationToken cancellationToken = default) { @@ -3968,7 +3932,7 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc /// /// Updates an alias to point to a new index when the existing index
is considered to be too large or too old.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task RolloverAsync(RolloverRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -3978,7 +3942,7 @@ public virtual Task RolloverAsync(RolloverRequestDescriptor de /// /// Updates an alias to point to a new index when the existing index
is considered to be too large or too old.
- /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. ///
public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.IndexAlias alias, Action configureRequest, CancellationToken cancellationToken = default) { @@ -3990,7 +3954,7 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc /// /// Allow to shrink an existing index into a new index with fewer primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ShrinkIndexResponse Shrink(ShrinkIndexRequest request) { @@ -4000,7 +3964,7 @@ public virtual ShrinkIndexResponse Shrink(ShrinkIndexRequest request) /// /// Allow to shrink an existing index into a new index with fewer primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShrinkAsync(ShrinkIndexRequest request, CancellationToken cancellationToken = default) { @@ -4010,7 +3974,7 @@ public virtual Task ShrinkAsync(ShrinkIndexRequest request, /// /// Allow to shrink an existing index into a new index with fewer primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target) { @@ -4021,7 +3985,7 @@ public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexNam /// /// Allow to shrink an existing index into a new index with fewer primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ShrinkIndexResponse Shrink(ShrinkIndexRequestDescriptor descriptor) { @@ -4031,7 +3995,7 @@ public virtual ShrinkIndexResponse Shrink(ShrinkIndexRequestDescriptor descripto /// /// Allow to shrink an existing index into a new index with fewer primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action configureRequest) { @@ -4043,7 +4007,7 @@ public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexNam /// /// Allow to shrink an existing index into a new index with fewer primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexName target) { @@ -4054,7 +4018,7 @@ public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsear /// /// Allow to shrink an existing index into a new index with fewer primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexName target, Action> configureRequest) { @@ -4066,7 +4030,7 @@ public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsear /// /// Allow to shrink an existing index into a new index with fewer primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ShrinkIndexResponse Shrink(ShrinkIndexRequestDescriptor descriptor) { @@ -4076,7 +4040,7 @@ public virtual ShrinkIndexResponse Shrink(ShrinkIndexRequestDescripto /// /// Allow to shrink an existing index into a new index with fewer primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action> configureRequest) { @@ -4088,7 +4052,7 @@ public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsear /// /// Allow to shrink an existing index into a new index with fewer primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShrinkAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, CancellationToken cancellationToken = default) { @@ -4099,7 +4063,7 @@ public virtual Task ShrinkAsync(Elastic.Clients.Elasticsear /// /// Allow to shrink an existing index into a new index with fewer primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShrinkAsync(ShrinkIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4109,7 +4073,7 @@ public virtual Task ShrinkAsync(ShrinkIndexRequestDescripto /// /// Allow to shrink an existing index into a new index with fewer primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShrinkAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4121,7 +4085,7 @@ public virtual Task ShrinkAsync(Elastic.Clients.Elasticsear /// /// Allow to shrink an existing index into a new index with fewer primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShrinkAsync(Elastic.Clients.Elasticsearch.IndexName target, CancellationToken cancellationToken = default) { @@ -4132,7 +4096,7 @@ public virtual Task ShrinkAsync(Elastic.Clients. /// /// Allow to shrink an existing index into a new index with fewer primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShrinkAsync(Elastic.Clients.Elasticsearch.IndexName target, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -4144,7 +4108,7 @@ public virtual Task ShrinkAsync(Elastic.Clients. /// /// Allow to shrink an existing index into a new index with fewer primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShrinkAsync(ShrinkIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4154,7 +4118,7 @@ public virtual Task ShrinkAsync(ShrinkIndexReque /// /// Allow to shrink an existing index into a new index with fewer primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ShrinkAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -4382,7 +4346,7 @@ public virtual Task SimulateTemplateAsync(Action /// Allows you to split an existing index into a new index with more primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual SplitIndexResponse Split(SplitIndexRequest request) { @@ -4392,7 +4356,7 @@ public virtual SplitIndexResponse Split(SplitIndexRequest request) /// /// Allows you to split an existing index into a new index with more primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SplitAsync(SplitIndexRequest request, CancellationToken cancellationToken = default) { @@ -4402,7 +4366,7 @@ public virtual Task SplitAsync(SplitIndexRequest request, Ca /// /// Allows you to split an existing index into a new index with more primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target) { @@ -4413,7 +4377,7 @@ public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName /// /// Allows you to split an existing index into a new index with more primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual SplitIndexResponse Split(SplitIndexRequestDescriptor descriptor) { @@ -4423,7 +4387,7 @@ public virtual SplitIndexResponse Split(SplitIndexRequestDescriptor descriptor) /// /// Allows you to split an existing index into a new index with more primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action configureRequest) { @@ -4435,7 +4399,7 @@ public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName /// /// Allows you to split an existing index into a new index with more primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName target) { @@ -4446,7 +4410,7 @@ public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch /// /// Allows you to split an existing index into a new index with more primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName target, Action> configureRequest) { @@ -4458,7 +4422,7 @@ public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch /// /// Allows you to split an existing index into a new index with more primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual SplitIndexResponse Split(SplitIndexRequestDescriptor descriptor) { @@ -4468,7 +4432,7 @@ public virtual SplitIndexResponse Split(SplitIndexRequestDescriptor /// Allows you to split an existing index into a new index with more primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action> configureRequest) { @@ -4480,7 +4444,7 @@ public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch /// /// Allows you to split an existing index into a new index with more primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SplitAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, CancellationToken cancellationToken = default) { @@ -4491,7 +4455,7 @@ public virtual Task SplitAsync(Elastic.Clients.Elasticsearch /// /// Allows you to split an existing index into a new index with more primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SplitAsync(SplitIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4501,7 +4465,7 @@ public virtual Task SplitAsync(SplitIndexRequestDescriptor d /// /// Allows you to split an existing index into a new index with more primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SplitAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action configureRequest, CancellationToken cancellationToken = default) { @@ -4513,7 +4477,7 @@ public virtual Task SplitAsync(Elastic.Clients.Elasticsearch /// /// Allows you to split an existing index into a new index with more primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SplitAsync(Elastic.Clients.Elasticsearch.IndexName target, CancellationToken cancellationToken = default) { @@ -4524,7 +4488,7 @@ public virtual Task SplitAsync(Elastic.Clients.El /// /// Allows you to split an existing index into a new index with more primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SplitAsync(Elastic.Clients.Elasticsearch.IndexName target, Action> configureRequest, CancellationToken cancellationToken = default) { @@ -4536,7 +4500,7 @@ public virtual Task SplitAsync(Elastic.Clients.El /// /// Allows you to split an existing index into a new index with more primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SplitAsync(SplitIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -4546,7 +4510,7 @@ public virtual Task SplitAsync(SplitIndexRequestD /// /// Allows you to split an existing index into a new index with more primary shards. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task SplitAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action> configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs index 7ca60191308..d0db8248a8c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs @@ -168,7 +168,7 @@ public virtual Task DeletePipelineAsync(Elast /// /// Returns statistical information about geoip databases - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GeoIpStatsResponse GeoIpStats(GeoIpStatsRequest request) { @@ -178,7 +178,7 @@ public virtual GeoIpStatsResponse GeoIpStats(GeoIpStatsRequest request) /// /// Returns statistical information about geoip databases - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GeoIpStatsAsync(GeoIpStatsRequest request, CancellationToken cancellationToken = default) { @@ -188,7 +188,7 @@ public virtual Task GeoIpStatsAsync(GeoIpStatsRequest reques /// /// Returns statistical information about geoip databases - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GeoIpStatsResponse GeoIpStats() { @@ -199,7 +199,7 @@ public virtual GeoIpStatsResponse GeoIpStats() /// /// Returns statistical information about geoip databases - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GeoIpStatsResponse GeoIpStats(GeoIpStatsRequestDescriptor descriptor) { @@ -209,7 +209,7 @@ public virtual GeoIpStatsResponse GeoIpStats(GeoIpStatsRequestDescriptor descrip /// /// Returns statistical information about geoip databases - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GeoIpStatsResponse GeoIpStats(Action configureRequest) { @@ -221,7 +221,7 @@ public virtual GeoIpStatsResponse GeoIpStats(Action /// /// Returns statistical information about geoip databases - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GeoIpStatsAsync(CancellationToken cancellationToken = default) { @@ -232,7 +232,7 @@ public virtual Task GeoIpStatsAsync(CancellationToken cancel /// /// Returns statistical information about geoip databases - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GeoIpStatsAsync(GeoIpStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -242,7 +242,7 @@ public virtual Task GeoIpStatsAsync(GeoIpStatsRequestDescrip /// /// Returns statistical information about geoip databases - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GeoIpStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -384,7 +384,7 @@ public virtual Task GetPipelineAsync(Action /// Returns a list of the built-in patterns. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ProcessorGrokResponse ProcessorGrok(ProcessorGrokRequest request) { @@ -394,7 +394,7 @@ public virtual ProcessorGrokResponse ProcessorGrok(ProcessorGrokRequest request) /// /// Returns a list of the built-in patterns. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ProcessorGrokAsync(ProcessorGrokRequest request, CancellationToken cancellationToken = default) { @@ -404,7 +404,7 @@ public virtual Task ProcessorGrokAsync(ProcessorGrokReque /// /// Returns a list of the built-in patterns. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ProcessorGrokResponse ProcessorGrok() { @@ -415,7 +415,7 @@ public virtual ProcessorGrokResponse ProcessorGrok() /// /// Returns a list of the built-in patterns. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ProcessorGrokResponse ProcessorGrok(ProcessorGrokRequestDescriptor descriptor) { @@ -425,7 +425,7 @@ public virtual ProcessorGrokResponse ProcessorGrok(ProcessorGrokRequestDescripto /// /// Returns a list of the built-in patterns. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ProcessorGrokResponse ProcessorGrok(Action configureRequest) { @@ -437,7 +437,7 @@ public virtual ProcessorGrokResponse ProcessorGrok(Action /// Returns a list of the built-in patterns. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ProcessorGrokAsync(CancellationToken cancellationToken = default) { @@ -448,7 +448,7 @@ public virtual Task ProcessorGrokAsync(CancellationToken /// /// Returns a list of the built-in patterns. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ProcessorGrokAsync(ProcessorGrokRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -458,7 +458,7 @@ public virtual Task ProcessorGrokAsync(ProcessorGrokReque /// /// Returns a list of the built-in patterns. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ProcessorGrokAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -470,7 +470,7 @@ public virtual Task ProcessorGrokAsync(Action /// Creates or updates a pipeline. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PutPipelineResponse PutPipeline(PutPipelineRequest request) { @@ -480,7 +480,7 @@ public virtual PutPipelineResponse PutPipeline(PutPipelineRequest request) /// /// Creates or updates a pipeline. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(PutPipelineRequest request, CancellationToken cancellationToken = default) { @@ -490,7 +490,7 @@ public virtual Task PutPipelineAsync(PutPipelineRequest req /// /// Creates or updates a pipeline. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PutPipelineResponse PutPipeline(PutPipelineRequestDescriptor descriptor) { @@ -500,7 +500,7 @@ public virtual PutPipelineResponse PutPipeline(PutPipelineRequestDescriptor desc /// /// Creates or updates a pipeline. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) { @@ -512,7 +512,7 @@ public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id /// /// Creates or updates a pipeline. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PutPipelineResponse PutPipeline(PutPipelineRequestDescriptor descriptor) { @@ -522,7 +522,7 @@ public virtual PutPipelineResponse PutPipeline(PutPipelineRequestDesc /// /// Creates or updates a pipeline. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { @@ -534,7 +534,7 @@ public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasti /// /// Creates or updates a pipeline. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(PutPipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -544,7 +544,7 @@ public virtual Task PutPipelineAsync(PutPipelineRequestDesc /// /// Creates or updates a pipeline. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -556,7 +556,7 @@ public virtual Task PutPipelineAsync(Elastic.Clients.Elasti /// /// Creates or updates a pipeline. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(PutPipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -566,7 +566,7 @@ public virtual Task PutPipelineAsync(PutPipeline /// /// Creates or updates a pipeline. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Tasks.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Tasks.g.cs index ebe2e5ec8c0..b9a9c1e6047 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Tasks.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Tasks.g.cs @@ -39,7 +39,7 @@ internal TasksNamespacedClient(ElasticsearchClient client) : base(client) /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Cancels a task, if it can be cancelled through an API. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CancelResponse Cancel(CancelRequest request) { @@ -50,7 +50,7 @@ public virtual CancelResponse Cancel(CancelRequest request) /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Cancels a task, if it can be cancelled through an API. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CancelAsync(CancelRequest request, CancellationToken cancellationToken = default) { @@ -61,7 +61,7 @@ public virtual Task CancelAsync(CancelRequest request, Cancellat /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Cancels a task, if it can be cancelled through an API. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CancelResponse Cancel() { @@ -73,7 +73,7 @@ public virtual CancelResponse Cancel() /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Cancels a task, if it can be cancelled through an API. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CancelResponse Cancel(CancelRequestDescriptor descriptor) { @@ -84,7 +84,7 @@ public virtual CancelResponse Cancel(CancelRequestDescriptor descriptor) /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Cancels a task, if it can be cancelled through an API. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual CancelResponse Cancel(Action configureRequest) { @@ -97,7 +97,7 @@ public virtual CancelResponse Cancel(Action configureRe /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Cancels a task, if it can be cancelled through an API. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CancelAsync(CancellationToken cancellationToken = default) { @@ -109,7 +109,7 @@ public virtual Task CancelAsync(CancellationToken cancellationTo /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Cancels a task, if it can be cancelled through an API. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CancelAsync(CancelRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -120,7 +120,7 @@ public virtual Task CancelAsync(CancelRequestDescriptor descript /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Cancels a task, if it can be cancelled through an API. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task CancelAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -133,7 +133,7 @@ public virtual Task CancelAsync(Action /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns information about a task. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetTasksResponse Get(GetTasksRequest request) { @@ -144,7 +144,7 @@ public virtual GetTasksResponse Get(GetTasksRequest request) /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns information about a task. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(GetTasksRequest request, CancellationToken cancellationToken = default) { @@ -155,7 +155,7 @@ public virtual Task GetAsync(GetTasksRequest request, Cancella /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns information about a task. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetTasksResponse Get(Elastic.Clients.Elasticsearch.Id task_id) { @@ -167,7 +167,7 @@ public virtual GetTasksResponse Get(Elastic.Clients.Elasticsearch.Id task_id) /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns information about a task. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetTasksResponse Get(GetTasksRequestDescriptor descriptor) { @@ -178,7 +178,7 @@ public virtual GetTasksResponse Get(GetTasksRequestDescriptor descriptor) /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns information about a task. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual GetTasksResponse Get(Elastic.Clients.Elasticsearch.Id task_id, Action configureRequest) { @@ -191,7 +191,7 @@ public virtual GetTasksResponse Get(Elastic.Clients.Elasticsearch.Id task_id, Ac /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns information about a task. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Id task_id, CancellationToken cancellationToken = default) { @@ -203,7 +203,7 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Id /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns information about a task. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(GetTasksRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -214,7 +214,7 @@ public virtual Task GetAsync(GetTasksRequestDescriptor descrip /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns information about a task. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Id task_id, Action configureRequest, CancellationToken cancellationToken = default) { @@ -227,7 +227,7 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Id /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns a list of tasks. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ListResponse List(ListRequest request) { @@ -238,7 +238,7 @@ public virtual ListResponse List(ListRequest request) /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns a list of tasks. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListAsync(ListRequest request, CancellationToken cancellationToken = default) { @@ -249,7 +249,7 @@ public virtual Task ListAsync(ListRequest request, CancellationTok /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns a list of tasks. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ListResponse List() { @@ -261,7 +261,7 @@ public virtual ListResponse List() /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns a list of tasks. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ListResponse List(ListRequestDescriptor descriptor) { @@ -272,7 +272,7 @@ public virtual ListResponse List(ListRequestDescriptor descriptor) /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns a list of tasks. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ListResponse List(Action configureRequest) { @@ -285,7 +285,7 @@ public virtual ListResponse List(Action configureRequest) /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns a list of tasks. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListAsync(CancellationToken cancellationToken = default) { @@ -297,7 +297,7 @@ public virtual Task ListAsync(CancellationToken cancellationToken /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns a list of tasks. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListAsync(ListRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -308,7 +308,7 @@ public virtual Task ListAsync(ListRequestDescriptor descriptor, Ca /// /// EXPERIMENTAL! May change in ways that are not backwards compatible or be removed entirely. /// Returns a list of tasks. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ListAsync(Action configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs index 83e2a2a383d..3fde561233b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs @@ -53,7 +53,7 @@ private partial void SetupNamespaces() /// /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual BulkResponse Bulk(BulkRequest request) { @@ -63,7 +63,7 @@ public virtual BulkResponse Bulk(BulkRequest request) /// /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(BulkRequest request, CancellationToken cancellationToken = default) { @@ -73,7 +73,7 @@ public virtual Task BulkAsync(BulkRequest request, CancellationTok /// /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual BulkResponse Bulk(BulkRequestDescriptor descriptor) { @@ -83,7 +83,7 @@ public virtual BulkResponse Bulk(BulkRequestDescriptor descriptor) /// /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual BulkResponse Bulk(Action configureRequest) { @@ -95,7 +95,7 @@ public virtual BulkResponse Bulk(Action configureRequest) /// /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual BulkResponse Bulk(BulkRequestDescriptor descriptor) { @@ -105,7 +105,7 @@ public virtual BulkResponse Bulk(BulkRequestDescriptor des /// /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual BulkResponse Bulk(Action> configureRequest) { @@ -117,7 +117,7 @@ public virtual BulkResponse Bulk(Action /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(BulkRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -127,7 +127,7 @@ public virtual Task BulkAsync(BulkRequestDescriptor descriptor, Ca /// /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -139,7 +139,7 @@ public virtual Task BulkAsync(Action config /// /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(BulkRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -149,7 +149,7 @@ public virtual Task BulkAsync(BulkRequestDescriptor /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task BulkAsync(Action> configureRequest, CancellationToken cancellationToken = default) { @@ -161,7 +161,7 @@ public virtual Task BulkAsync(Action /// Explicitly clears the search context for a scroll. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClearScrollResponse ClearScroll(ClearScrollRequest request) { @@ -171,7 +171,7 @@ public virtual ClearScrollResponse ClearScroll(ClearScrollRequest request) /// /// Explicitly clears the search context for a scroll. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(ClearScrollRequest request, CancellationToken cancellationToken = default) { @@ -181,7 +181,7 @@ public virtual Task ClearScrollAsync(ClearScrollRequest req /// /// Explicitly clears the search context for a scroll. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClearScrollResponse ClearScroll() { @@ -192,7 +192,7 @@ public virtual ClearScrollResponse ClearScroll() /// /// Explicitly clears the search context for a scroll. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClearScrollResponse ClearScroll(ClearScrollRequestDescriptor descriptor) { @@ -202,7 +202,7 @@ public virtual ClearScrollResponse ClearScroll(ClearScrollRequestDescriptor desc /// /// Explicitly clears the search context for a scroll. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClearScrollResponse ClearScroll(Action configureRequest) { @@ -214,7 +214,7 @@ public virtual ClearScrollResponse ClearScroll(Action /// Explicitly clears the search context for a scroll. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(CancellationToken cancellationToken = default) { @@ -225,7 +225,7 @@ public virtual Task ClearScrollAsync(CancellationToken canc /// /// Explicitly clears the search context for a scroll. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(ClearScrollRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -235,7 +235,7 @@ public virtual Task ClearScrollAsync(ClearScrollRequestDesc /// /// Explicitly clears the search context for a scroll. - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClearScrollAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -247,7 +247,7 @@ public virtual Task ClearScrollAsync(Action /// Close a point in time - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequest request) { @@ -257,7 +257,7 @@ public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequest /// /// Close a point in time - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(ClosePointInTimeRequest request, CancellationToken cancellationToken = default) { @@ -267,7 +267,7 @@ public virtual Task ClosePointInTimeAsync(ClosePointIn /// /// Close a point in time - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClosePointInTimeResponse ClosePointInTime() { @@ -278,7 +278,7 @@ public virtual ClosePointInTimeResponse ClosePointInTime() /// /// Close a point in time - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequestDescriptor descriptor) { @@ -288,7 +288,7 @@ public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequest /// /// Close a point in time - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual ClosePointInTimeResponse ClosePointInTime(Action configureRequest) { @@ -300,7 +300,7 @@ public virtual ClosePointInTimeResponse ClosePointInTime(Action /// Close a point in time - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(CancellationToken cancellationToken = default) { @@ -311,7 +311,7 @@ public virtual Task ClosePointInTimeAsync(Cancellation /// /// Close a point in time - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(ClosePointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -321,7 +321,7 @@ public virtual Task ClosePointInTimeAsync(ClosePointIn /// /// Close a point in time - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task ClosePointInTimeAsync(Action configureRequest, CancellationToken cancellationToken = default) { @@ -2801,7 +2801,7 @@ public virtual Task MultiTermVectorsAsync(A /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequest request) { @@ -2811,7 +2811,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequest re /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequest request, CancellationToken cancellationToken = default) { @@ -2821,7 +2821,7 @@ public virtual Task OpenPointInTimeAsync(OpenPointInTim /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Indices indices) { @@ -2832,7 +2832,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticse /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequestDescriptor descriptor) { @@ -2842,7 +2842,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequestDes /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) { @@ -2854,7 +2854,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticse /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequestDescriptor descriptor) { @@ -2864,7 +2864,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTim /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) { @@ -2876,7 +2876,7 @@ public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Client /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { @@ -2887,7 +2887,7 @@ public virtual Task OpenPointInTimeAsync(Elastic.Client /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2897,7 +2897,7 @@ public virtual Task OpenPointInTimeAsync(OpenPointInTim /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { @@ -2909,7 +2909,7 @@ public virtual Task OpenPointInTimeAsync(Elastic.Client /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { @@ -2919,7 +2919,7 @@ public virtual Task OpenPointInTimeAsync(Ope /// /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ClusterStatistics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ClusterStatistics.g.cs index 850bdcd7028..fa0b3746a89 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ClusterStatistics.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ClusterStatistics.g.cs @@ -31,6 +31,12 @@ public sealed partial class ClusterStatistics { [JsonInclude, JsonPropertyName("details")] public IReadOnlyDictionary? Details { get; init; } + [JsonInclude, JsonPropertyName("failed")] + public int Failed { get; init; } + [JsonInclude, JsonPropertyName("partial")] + public int Partial { get; init; } + [JsonInclude, JsonPropertyName("running")] + public int Running { get; init; } [JsonInclude, JsonPropertyName("skipped")] public int Skipped { get; init; } [JsonInclude, JsonPropertyName("successful")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Bulk/ResponseItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Bulk/ResponseItem.g.cs index 185121c19ea..ed04a72839a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Bulk/ResponseItem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Bulk/ResponseItem.g.cs @@ -30,26 +30,61 @@ namespace Elastic.Clients.Elasticsearch.Core.Bulk; public abstract partial class ResponseItem { + /// + /// The document ID associated with the operation. + /// [JsonInclude, JsonPropertyName("_id")] public string? Id { get; init; } + + /// + /// Name of the index associated with the operation.
If the operation targeted a data stream, this is the backing index into which the document was written.
+ ///
[JsonInclude, JsonPropertyName("_index")] public string Index { get; init; } + + /// + /// The primary term assigned to the document for the operation. + /// [JsonInclude, JsonPropertyName("_primary_term")] public long? PrimaryTerm { get; init; } + + /// + /// The sequence number assigned to the document for the operation.
Sequence numbers are used to ensure an older version of a document doesn’t overwrite a newer version.
+ ///
[JsonInclude, JsonPropertyName("_seq_no")] public long? SeqNo { get; init; } + + /// + /// Contains shard information for the operation. + /// [JsonInclude, JsonPropertyName("_shards")] public Elastic.Clients.Elasticsearch.ShardStatistics? Shards { get; init; } + + /// + /// The document version associated with the operation.
The document version is incremented each time the document is updated.
+ ///
[JsonInclude, JsonPropertyName("_version")] public long? Version { get; init; } + + /// + /// Contains additional information about the failed operation.
The parameter is only returned for failed operations.
+ ///
[JsonInclude, JsonPropertyName("error")] public Elastic.Clients.Elasticsearch.ErrorCause? Error { get; init; } [JsonInclude, JsonPropertyName("forced_refresh")] public bool? ForcedRefresh { get; init; } [JsonInclude, JsonPropertyName("get")] public Elastic.Clients.Elasticsearch.InlineGet? Get { get; init; } + + /// + /// Result of the operation.
Successful values are `created`, `deleted`, and `updated`.
+ ///
[JsonInclude, JsonPropertyName("result")] public string? Result { get; init; } + + /// + /// HTTP status code returned for the operation. + /// [JsonInclude, JsonPropertyName("status")] public int Status { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearchTemplate/TemplateConfig.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearchTemplate/TemplateConfig.g.cs index cb2ee974aa5..1c99389536c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearchTemplate/TemplateConfig.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearchTemplate/TemplateConfig.g.cs @@ -29,6 +29,9 @@ namespace Elastic.Clients.Elasticsearch.Core.MSearchTemplate; public sealed partial class TemplateConfig { + /// + /// If `true`, returns detailed information about score calculation as part of each hit. + /// [JsonInclude, JsonPropertyName("explain")] public bool? Explain { get; set; } @@ -37,8 +40,16 @@ public sealed partial class TemplateConfig /// [JsonInclude, JsonPropertyName("id")] public Elastic.Clients.Elasticsearch.Id? Id { get; set; } + + /// + /// Key-value pairs used to replace Mustache variables in the template.
The key is the variable name.
The value is the variable value.
+ ///
[JsonInclude, JsonPropertyName("params")] public IDictionary? Params { get; set; } + + /// + /// If `true`, the query execution is profiled. + /// [JsonInclude, JsonPropertyName("profile")] public bool? Profile { get; set; } @@ -63,6 +74,9 @@ public TemplateConfigDescriptor() : base() private bool? ProfileValue { get; set; } private string? SourceValue { get; set; } + /// + /// If `true`, returns detailed information about score calculation as part of each hit. + /// public TemplateConfigDescriptor Explain(bool? explain = true) { ExplainValue = explain; @@ -78,12 +92,18 @@ public TemplateConfigDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) return Self; } + /// + /// Key-value pairs used to replace Mustache variables in the template.
The key is the variable name.
The value is the variable value.
+ ///
public TemplateConfigDescriptor Params(Func, FluentDictionary> selector) { ParamsValue = selector?.Invoke(new FluentDictionary()); return Self; } + /// + /// If `true`, the query execution is profiled. + /// public TemplateConfigDescriptor Profile(bool? profile = true) { ProfileValue = profile; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Mtermvectors/MultiTermVectorsOperation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Mtermvectors/MultiTermVectorsOperation.g.cs index c53f5dba775..d2220077f67 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Mtermvectors/MultiTermVectorsOperation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Mtermvectors/MultiTermVectorsOperation.g.cs @@ -29,30 +29,81 @@ namespace Elastic.Clients.Elasticsearch.Core.Mtermvectors; public sealed partial class MultiTermVectorsOperation { + /// + /// The ID of the document. + /// [JsonInclude, JsonPropertyName("_id")] public Elastic.Clients.Elasticsearch.Id Id { get; set; } + + /// + /// The index of the document. + /// [JsonInclude, JsonPropertyName("_index")] public Elastic.Clients.Elasticsearch.IndexName? Index { get; set; } + + /// + /// An artificial document (a document not present in the index) for which you want to retrieve term vectors. + /// [JsonInclude, JsonPropertyName("doc")] public object? Doc { get; set; } + + /// + /// If `true`, the response includes the document count, sum of document frequencies, and sum of total term frequencies. + /// [JsonInclude, JsonPropertyName("field_statistics")] public bool? FieldStatistics { get; set; } + + /// + /// Comma-separated list or wildcard expressions of fields to include in the statistics.
Used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters.
+ ///
[JsonInclude, JsonPropertyName("fields")] public Elastic.Clients.Elasticsearch.Fields? Fields { get; set; } + + /// + /// Filter terms based on their tf-idf scores. + /// [JsonInclude, JsonPropertyName("filter")] public Elastic.Clients.Elasticsearch.Core.TermVectors.Filter? Filter { get; set; } + + /// + /// If `true`, the response includes term offsets. + /// [JsonInclude, JsonPropertyName("offsets")] public bool? Offsets { get; set; } + + /// + /// If `true`, the response includes term payloads. + /// [JsonInclude, JsonPropertyName("payloads")] public bool? Payloads { get; set; } + + /// + /// If `true`, the response includes term positions. + /// [JsonInclude, JsonPropertyName("positions")] public bool? Positions { get; set; } + + /// + /// Custom value used to route operations to a specific shard. + /// [JsonInclude, JsonPropertyName("routing")] public Elastic.Clients.Elasticsearch.Routing? Routing { get; set; } + + /// + /// If true, the response includes term frequency and document frequency. + /// [JsonInclude, JsonPropertyName("term_statistics")] public bool? TermStatistics { get; set; } + + /// + /// If `true`, returns the document version as part of a hit. + /// [JsonInclude, JsonPropertyName("version")] public long? Version { get; set; } + + /// + /// Specific version type. + /// [JsonInclude, JsonPropertyName("version_type")] public Elastic.Clients.Elasticsearch.VersionType? VersionType { get; set; } } @@ -81,36 +132,54 @@ public MultiTermVectorsOperationDescriptor() : base() private long? VersionValue { get; set; } private Elastic.Clients.Elasticsearch.VersionType? VersionTypeValue { get; set; } + /// + /// The ID of the document. + /// public MultiTermVectorsOperationDescriptor Id(Elastic.Clients.Elasticsearch.Id id) { IdValue = id; return Self; } + /// + /// The index of the document. + /// public MultiTermVectorsOperationDescriptor Index(Elastic.Clients.Elasticsearch.IndexName? index) { IndexValue = index; return Self; } + /// + /// An artificial document (a document not present in the index) for which you want to retrieve term vectors. + /// public MultiTermVectorsOperationDescriptor Doc(object? doc) { DocValue = doc; return Self; } + /// + /// If `true`, the response includes the document count, sum of document frequencies, and sum of total term frequencies. + /// public MultiTermVectorsOperationDescriptor FieldStatistics(bool? fieldStatistics = true) { FieldStatisticsValue = fieldStatistics; return Self; } + /// + /// Comma-separated list or wildcard expressions of fields to include in the statistics.
Used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters.
+ ///
public MultiTermVectorsOperationDescriptor Fields(Elastic.Clients.Elasticsearch.Fields? fields) { FieldsValue = fields; return Self; } + /// + /// Filter terms based on their tf-idf scores. + /// public MultiTermVectorsOperationDescriptor Filter(Elastic.Clients.Elasticsearch.Core.TermVectors.Filter? filter) { FilterDescriptor = null; @@ -135,42 +204,63 @@ public MultiTermVectorsOperationDescriptor Filter(Action + /// If `true`, the response includes term offsets. + /// public MultiTermVectorsOperationDescriptor Offsets(bool? offsets = true) { OffsetsValue = offsets; return Self; } + /// + /// If `true`, the response includes term payloads. + /// public MultiTermVectorsOperationDescriptor Payloads(bool? payloads = true) { PayloadsValue = payloads; return Self; } + /// + /// If `true`, the response includes term positions. + /// public MultiTermVectorsOperationDescriptor Positions(bool? positions = true) { PositionsValue = positions; return Self; } + /// + /// Custom value used to route operations to a specific shard. + /// public MultiTermVectorsOperationDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) { RoutingValue = routing; return Self; } + /// + /// If true, the response includes term frequency and document frequency. + /// public MultiTermVectorsOperationDescriptor TermStatistics(bool? termStatistics = true) { TermStatisticsValue = termStatistics; return Self; } + /// + /// If `true`, returns the document version as part of a hit. + /// public MultiTermVectorsOperationDescriptor Version(long? version) { VersionValue = version; return Self; } + /// + /// Specific version type. + /// public MultiTermVectorsOperationDescriptor VersionType(Elastic.Clients.Elasticsearch.VersionType? versionType) { VersionTypeValue = versionType; @@ -292,36 +382,54 @@ public MultiTermVectorsOperationDescriptor() : base() private long? VersionValue { get; set; } private Elastic.Clients.Elasticsearch.VersionType? VersionTypeValue { get; set; } + /// + /// The ID of the document. + /// public MultiTermVectorsOperationDescriptor Id(Elastic.Clients.Elasticsearch.Id id) { IdValue = id; return Self; } + /// + /// The index of the document. + /// public MultiTermVectorsOperationDescriptor Index(Elastic.Clients.Elasticsearch.IndexName? index) { IndexValue = index; return Self; } + /// + /// An artificial document (a document not present in the index) for which you want to retrieve term vectors. + /// public MultiTermVectorsOperationDescriptor Doc(object? doc) { DocValue = doc; return Self; } + /// + /// If `true`, the response includes the document count, sum of document frequencies, and sum of total term frequencies. + /// public MultiTermVectorsOperationDescriptor FieldStatistics(bool? fieldStatistics = true) { FieldStatisticsValue = fieldStatistics; return Self; } + /// + /// Comma-separated list or wildcard expressions of fields to include in the statistics.
Used as the default list unless a specific field list is provided in the `completion_fields` or `fielddata_fields` parameters.
+ ///
public MultiTermVectorsOperationDescriptor Fields(Elastic.Clients.Elasticsearch.Fields? fields) { FieldsValue = fields; return Self; } + /// + /// Filter terms based on their tf-idf scores. + /// public MultiTermVectorsOperationDescriptor Filter(Elastic.Clients.Elasticsearch.Core.TermVectors.Filter? filter) { FilterDescriptor = null; @@ -346,42 +454,63 @@ public MultiTermVectorsOperationDescriptor Filter(Action + /// If `true`, the response includes term offsets. + /// public MultiTermVectorsOperationDescriptor Offsets(bool? offsets = true) { OffsetsValue = offsets; return Self; } + /// + /// If `true`, the response includes term payloads. + /// public MultiTermVectorsOperationDescriptor Payloads(bool? payloads = true) { PayloadsValue = payloads; return Self; } + /// + /// If `true`, the response includes term positions. + /// public MultiTermVectorsOperationDescriptor Positions(bool? positions = true) { PositionsValue = positions; return Self; } + /// + /// Custom value used to route operations to a specific shard. + /// public MultiTermVectorsOperationDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) { RoutingValue = routing; return Self; } + /// + /// If true, the response includes term frequency and document frequency. + /// public MultiTermVectorsOperationDescriptor TermStatistics(bool? termStatistics = true) { TermStatisticsValue = termStatistics; return Self; } + /// + /// If `true`, returns the document version as part of a hit. + /// public MultiTermVectorsOperationDescriptor Version(long? version) { VersionValue = version; return Self; } + /// + /// Specific version type. + /// public MultiTermVectorsOperationDescriptor VersionType(Elastic.Clients.Elasticsearch.VersionType? versionType) { VersionTypeValue = versionType; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/Destination.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/Destination.g.cs index fe96f9c8ffd..f6f26050217 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/Destination.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/Destination.g.cs @@ -29,14 +29,33 @@ namespace Elastic.Clients.Elasticsearch.Core.Reindex; public sealed partial class Destination { + /// + /// The name of the data stream, index, or index alias you are copying to. + /// [JsonInclude, JsonPropertyName("index")] public Elastic.Clients.Elasticsearch.IndexName Index { get; set; } + + /// + /// Set to `create` to only index documents that do not already exist.
Important: To reindex to a data stream destination, this argument must be `create`.
+ ///
[JsonInclude, JsonPropertyName("op_type")] public Elastic.Clients.Elasticsearch.OpType? OpType { get; set; } + + /// + /// The name of the pipeline to use. + /// [JsonInclude, JsonPropertyName("pipeline")] public string? Pipeline { get; set; } + + /// + /// By default, a document's routing is preserved unless it’s changed by the script.
Set to `discard` to set routing to `null`, or `=value` to route using the specified `value`.
+ ///
[JsonInclude, JsonPropertyName("routing")] public Elastic.Clients.Elasticsearch.Routing? Routing { get; set; } + + /// + /// The versioning to use for the indexing operation. + /// [JsonInclude, JsonPropertyName("version_type")] public Elastic.Clients.Elasticsearch.VersionType? VersionType { get; set; } } @@ -55,30 +74,45 @@ public DestinationDescriptor() : base() private Elastic.Clients.Elasticsearch.Routing? RoutingValue { get; set; } private Elastic.Clients.Elasticsearch.VersionType? VersionTypeValue { get; set; } + /// + /// The name of the data stream, index, or index alias you are copying to. + /// public DestinationDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) { IndexValue = index; return Self; } + /// + /// Set to `create` to only index documents that do not already exist.
Important: To reindex to a data stream destination, this argument must be `create`.
+ ///
public DestinationDescriptor OpType(Elastic.Clients.Elasticsearch.OpType? opType) { OpTypeValue = opType; return Self; } + /// + /// The name of the pipeline to use. + /// public DestinationDescriptor Pipeline(string? pipeline) { PipelineValue = pipeline; return Self; } + /// + /// By default, a document's routing is preserved unless it’s changed by the script.
Set to `discard` to set routing to `null`, or `=value` to route using the specified `value`.
+ ///
public DestinationDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) { RoutingValue = routing; return Self; } + /// + /// The versioning to use for the indexing operation. + /// public DestinationDescriptor VersionType(Elastic.Clients.Elasticsearch.VersionType? versionType) { VersionTypeValue = versionType; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/RemoteSource.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/RemoteSource.g.cs index f79ad6d410b..a1c8d2c9995 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/RemoteSource.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/RemoteSource.g.cs @@ -29,16 +29,39 @@ namespace Elastic.Clients.Elasticsearch.Core.Reindex; public sealed partial class RemoteSource { + /// + /// The remote connection timeout.
Defaults to 30 seconds.
+ ///
[JsonInclude, JsonPropertyName("connect_timeout")] public Elastic.Clients.Elasticsearch.Duration? ConnectTimeout { get; set; } + + /// + /// An object containing the headers of the request. + /// [JsonInclude, JsonPropertyName("headers")] public IDictionary? Headers { get; set; } + + /// + /// The URL for the remote instance of Elasticsearch that you want to index from. + /// [JsonInclude, JsonPropertyName("host")] public string Host { get; set; } + + /// + /// The password to use for authentication with the remote host. + /// [JsonInclude, JsonPropertyName("password")] public string? Password { get; set; } + + /// + /// The remote socket read timeout. Defaults to 30 seconds. + /// [JsonInclude, JsonPropertyName("socket_timeout")] public Elastic.Clients.Elasticsearch.Duration? SocketTimeout { get; set; } + + /// + /// The username to use for authentication with the remote host. + /// [JsonInclude, JsonPropertyName("username")] public Elastic.Clients.Elasticsearch.Username? Username { get; set; } } @@ -58,36 +81,54 @@ public RemoteSourceDescriptor() : base() private Elastic.Clients.Elasticsearch.Duration? SocketTimeoutValue { get; set; } private Elastic.Clients.Elasticsearch.Username? UsernameValue { get; set; } + /// + /// The remote connection timeout.
Defaults to 30 seconds.
+ ///
public RemoteSourceDescriptor ConnectTimeout(Elastic.Clients.Elasticsearch.Duration? connectTimeout) { ConnectTimeoutValue = connectTimeout; return Self; } + /// + /// An object containing the headers of the request. + /// public RemoteSourceDescriptor Headers(Func, FluentDictionary> selector) { HeadersValue = selector?.Invoke(new FluentDictionary()); return Self; } + /// + /// The URL for the remote instance of Elasticsearch that you want to index from. + /// public RemoteSourceDescriptor Host(string host) { HostValue = host; return Self; } + /// + /// The password to use for authentication with the remote host. + /// public RemoteSourceDescriptor Password(string? password) { PasswordValue = password; return Self; } + /// + /// The remote socket read timeout. Defaults to 30 seconds. + /// public RemoteSourceDescriptor SocketTimeout(Elastic.Clients.Elasticsearch.Duration? socketTimeout) { SocketTimeoutValue = socketTimeout; return Self; } + /// + /// The username to use for authentication with the remote host. + /// public RemoteSourceDescriptor Username(Elastic.Clients.Elasticsearch.Username? username) { UsernameValue = username; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/Source.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/Source.g.cs index dcd5aedb3ec..b5f6b581e74 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/Source.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/Source.g.cs @@ -29,18 +29,41 @@ namespace Elastic.Clients.Elasticsearch.Core.Reindex; public sealed partial class Source { + /// + /// If `true` reindexes all source fields.
Set to a list to reindex select fields.
+ ///
[JsonInclude, JsonPropertyName("_source")] public Elastic.Clients.Elasticsearch.Fields? SourceFields { get; set; } + + /// + /// The name of the data stream, index, or alias you are copying from.
Accepts a comma-separated list to reindex from multiple sources.
+ ///
[JsonInclude, JsonPropertyName("index")] public Elastic.Clients.Elasticsearch.Indices Index { get; set; } + + /// + /// Specifies the documents to reindex using the Query DSL. + /// [JsonInclude, JsonPropertyName("query")] public Elastic.Clients.Elasticsearch.QueryDsl.Query? Query { get; set; } + + /// + /// A remote instance of Elasticsearch that you want to index from. + /// [JsonInclude, JsonPropertyName("remote")] public Elastic.Clients.Elasticsearch.Core.Reindex.RemoteSource? Remote { get; set; } [JsonInclude, JsonPropertyName("runtime_mappings")] public IDictionary? RuntimeMappings { get; set; } + + /// + /// The number of documents to index per batch.
Use when indexing from remote to ensure that the batches fit within the on-heap buffer, which defaults to a maximum size of 100 MB.
+ ///
[JsonInclude, JsonPropertyName("size")] public int? Size { get; set; } + + /// + /// Slice the reindex request manually using the provided slice ID and total number of slices. + /// [JsonInclude, JsonPropertyName("slice")] public Elastic.Clients.Elasticsearch.SlicedScroll? Slice { get; set; } [JsonInclude, JsonPropertyName("sort"), SingleOrManyCollectionConverter(typeof(Elastic.Clients.Elasticsearch.SortOptions))] @@ -73,6 +96,9 @@ public SourceDescriptor() : base() private IDictionary? RuntimeMappingsValue { get; set; } private int? SizeValue { get; set; } + /// + /// Specifies the documents to reindex using the Query DSL. + /// public SourceDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query? query) { QueryDescriptor = null; @@ -97,6 +123,9 @@ public SourceDescriptor Query(Action + /// Slice the reindex request manually using the provided slice ID and total number of slices. + /// public SourceDescriptor Slice(Elastic.Clients.Elasticsearch.SlicedScroll? slice) { SliceDescriptor = null; @@ -157,18 +186,27 @@ public SourceDescriptor Sort(params Action + /// If `true` reindexes all source fields.
Set to a list to reindex select fields.
+ /// public SourceDescriptor SourceFields(Elastic.Clients.Elasticsearch.Fields? sourceFields) { SourceFieldsValue = sourceFields; return Self; } + /// + /// The name of the data stream, index, or alias you are copying from.
Accepts a comma-separated list to reindex from multiple sources.
+ ///
public SourceDescriptor Index(Elastic.Clients.Elasticsearch.Indices index) { IndexValue = index; return Self; } + /// + /// A remote instance of Elasticsearch that you want to index from. + /// public SourceDescriptor Remote(Elastic.Clients.Elasticsearch.Core.Reindex.RemoteSource? remote) { RemoteDescriptor = null; @@ -199,6 +237,9 @@ public SourceDescriptor RuntimeMappings(Func + /// The number of documents to index per batch.
Use when indexing from remote to ensure that the batches fit within the on-heap buffer, which defaults to a maximum size of 100 MB.
+ /// public SourceDescriptor Size(int? size) { SizeValue = size; @@ -335,6 +376,9 @@ public SourceDescriptor() : base() private IDictionary? RuntimeMappingsValue { get; set; } private int? SizeValue { get; set; } + /// + /// Specifies the documents to reindex using the Query DSL. + /// public SourceDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query? query) { QueryDescriptor = null; @@ -359,6 +403,9 @@ public SourceDescriptor Query(Action configure) return Self; } + /// + /// Slice the reindex request manually using the provided slice ID and total number of slices. + /// public SourceDescriptor Slice(Elastic.Clients.Elasticsearch.SlicedScroll? slice) { SliceDescriptor = null; @@ -419,18 +466,27 @@ public SourceDescriptor Sort(params Action[] configure) return Self; } + /// + /// If `true` reindexes all source fields.
Set to a list to reindex select fields.
+ ///
public SourceDescriptor SourceFields(Elastic.Clients.Elasticsearch.Fields? sourceFields) { SourceFieldsValue = sourceFields; return Self; } + /// + /// The name of the data stream, index, or alias you are copying from.
Accepts a comma-separated list to reindex from multiple sources.
+ ///
public SourceDescriptor Index(Elastic.Clients.Elasticsearch.Indices index) { IndexValue = index; return Self; } + /// + /// A remote instance of Elasticsearch that you want to index from. + /// public SourceDescriptor Remote(Elastic.Clients.Elasticsearch.Core.Reindex.RemoteSource? remote) { RemoteDescriptor = null; @@ -461,6 +517,9 @@ public SourceDescriptor RuntimeMappings(Func + /// The number of documents to index per batch.
Use when indexing from remote to ensure that the batches fit within the on-heap buffer, which defaults to a maximum size of 100 MB.
+ /// public SourceDescriptor Size(int? size) { SizeValue = size; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/ReindexRethrottle/ReindexStatus.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/ReindexRethrottle/ReindexStatus.g.cs index dd61216cd02..5d43ec4ef83 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/ReindexRethrottle/ReindexStatus.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/ReindexRethrottle/ReindexStatus.g.cs @@ -29,30 +29,73 @@ namespace Elastic.Clients.Elasticsearch.Core.ReindexRethrottle; public sealed partial class ReindexStatus { + /// + /// The number of scroll responses pulled back by the reindex. + /// [JsonInclude, JsonPropertyName("batches")] public long Batches { get; init; } + + /// + /// The number of documents that were successfully created. + /// [JsonInclude, JsonPropertyName("created")] public long Created { get; init; } + + /// + /// The number of documents that were successfully deleted. + /// [JsonInclude, JsonPropertyName("deleted")] public long Deleted { get; init; } + + /// + /// The number of documents that were ignored because the script used for the reindex returned a `noop` value for `ctx.op`. + /// [JsonInclude, JsonPropertyName("noops")] public long Noops { get; init; } + + /// + /// The number of requests per second effectively executed during the reindex. + /// [JsonInclude, JsonPropertyName("requests_per_second")] public float RequestsPerSecond { get; init; } + + /// + /// The number of retries attempted by reindex. `bulk` is the number of bulk actions retried and `search` is the number of search actions retried. + /// [JsonInclude, JsonPropertyName("retries")] public Elastic.Clients.Elasticsearch.Retries Retries { get; init; } [JsonInclude, JsonPropertyName("throttled")] public Elastic.Clients.Elasticsearch.Duration? Throttled { get; init; } + + /// + /// Number of milliseconds the request slept to conform to `requests_per_second`. + /// [JsonInclude, JsonPropertyName("throttled_millis")] public long ThrottledMillis { get; init; } [JsonInclude, JsonPropertyName("throttled_until")] public Elastic.Clients.Elasticsearch.Duration? ThrottledUntil { get; init; } + + /// + /// This field should always be equal to zero in a `_reindex` response.
It only has meaning when using the Task API, where it indicates the next time (in milliseconds since epoch) a throttled request will be executed again in order to conform to `requests_per_second`.
+ ///
[JsonInclude, JsonPropertyName("throttled_until_millis")] public long ThrottledUntilMillis { get; init; } + + /// + /// The number of documents that were successfully processed. + /// [JsonInclude, JsonPropertyName("total")] public long Total { get; init; } + + /// + /// The number of documents that were successfully updated, for example, a document with same ID already existed prior to reindex updating it. + /// [JsonInclude, JsonPropertyName("updated")] public long Updated { get; init; } + + /// + /// The number of version conflicts that reindex hits. + /// [JsonInclude, JsonPropertyName("version_conflicts")] public long VersionConflicts { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionContext.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionContext.g.cs index ae908c6b37a..71a4722506f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionContext.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionContext.g.cs @@ -29,14 +29,33 @@ namespace Elastic.Clients.Elasticsearch.Core.Search; public sealed partial class CompletionContext { + /// + /// The factor by which the score of the suggestion should be boosted.
The score is computed by multiplying the boost with the suggestion weight.
+ ///
[JsonInclude, JsonPropertyName("boost")] public double? Boost { get; set; } + + /// + /// The value of the category to filter/boost on. + /// [JsonInclude, JsonPropertyName("context")] public Elastic.Clients.Elasticsearch.Core.Search.Context Context { get; set; } + + /// + /// An array of precision values at which neighboring geohashes should be taken into account.
Precision value can be a distance value (`5m`, `10km`, etc.) or a raw geohash precision (`1`..`12`).
Defaults to generating neighbors for index time precision level.
+ ///
[JsonInclude, JsonPropertyName("neighbours")] public ICollection? Neighbours { get; set; } + + /// + /// The precision of the geohash to encode the query geo point.
Can be specified as a distance value (`5m`, `10km`, etc.), or as a raw geohash precision (`1`..`12`).
Defaults to index time precision level.
+ ///
[JsonInclude, JsonPropertyName("precision")] public Elastic.Clients.Elasticsearch.GeohashPrecision? Precision { get; set; } + + /// + /// Whether the category value should be treated as a prefix or not. + /// [JsonInclude, JsonPropertyName("prefix")] public bool? Prefix { get; set; } } @@ -55,30 +74,45 @@ public CompletionContextDescriptor() : base() private Elastic.Clients.Elasticsearch.GeohashPrecision? PrecisionValue { get; set; } private bool? PrefixValue { get; set; } + /// + /// The factor by which the score of the suggestion should be boosted.
The score is computed by multiplying the boost with the suggestion weight.
+ ///
public CompletionContextDescriptor Boost(double? boost) { BoostValue = boost; return Self; } + /// + /// The value of the category to filter/boost on. + /// public CompletionContextDescriptor Context(Elastic.Clients.Elasticsearch.Core.Search.Context context) { ContextValue = context; return Self; } + /// + /// An array of precision values at which neighboring geohashes should be taken into account.
Precision value can be a distance value (`5m`, `10km`, etc.) or a raw geohash precision (`1`..`12`).
Defaults to generating neighbors for index time precision level.
+ ///
public CompletionContextDescriptor Neighbours(ICollection? neighbours) { NeighboursValue = neighbours; return Self; } + /// + /// The precision of the geohash to encode the query geo point.
Can be specified as a distance value (`5m`, `10km`, etc.), or as a raw geohash precision (`1`..`12`).
Defaults to index time precision level.
+ ///
public CompletionContextDescriptor Precision(Elastic.Clients.Elasticsearch.GeohashPrecision? precision) { PrecisionValue = precision; return Self; } + /// + /// Whether the category value should be treated as a prefix or not. + /// public CompletionContextDescriptor Prefix(bool? prefix = true) { PrefixValue = prefix; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionSuggester.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionSuggester.g.cs index 29d88073010..f8add53ced8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionSuggester.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionSuggester.g.cs @@ -31,16 +31,32 @@ public sealed partial class CompletionSuggester { [JsonInclude, JsonPropertyName("analyzer")] public string? Analyzer { get; set; } + + /// + /// A value, geo point object, or a geo hash string to filter or boost the suggestion on. + /// [JsonInclude, JsonPropertyName("contexts")] public IDictionary>? Contexts { get; set; } [JsonInclude, JsonPropertyName("field")] public Elastic.Clients.Elasticsearch.Field Field { get; set; } + + /// + /// Enables fuzziness, meaning you can have a typo in your search and still get results back. + /// [JsonInclude, JsonPropertyName("fuzzy")] public Elastic.Clients.Elasticsearch.Core.Search.SuggestFuzziness? Fuzzy { get; set; } + + /// + /// A regex query that expresses a prefix as a regular expression. + /// [JsonInclude, JsonPropertyName("regex")] public Elastic.Clients.Elasticsearch.Core.Search.RegexOptions? Regex { get; set; } [JsonInclude, JsonPropertyName("size")] public int? Size { get; set; } + + /// + /// Whether duplicate suggestions should be filtered out. + /// [JsonInclude, JsonPropertyName("skip_duplicates")] public bool? SkipDuplicates { get; set; } @@ -73,6 +89,9 @@ public CompletionSuggesterDescriptor Analyzer(string? analyzer) return Self; } + /// + /// A value, geo point object, or a geo hash string to filter or boost the suggestion on. + /// public CompletionSuggesterDescriptor Contexts(Func>, FluentDictionary>> selector) { ContextsValue = selector?.Invoke(new FluentDictionary>()); @@ -91,6 +110,9 @@ public CompletionSuggesterDescriptor Field(Expression + /// Enables fuzziness, meaning you can have a typo in your search and still get results back. + /// public CompletionSuggesterDescriptor Fuzzy(Elastic.Clients.Elasticsearch.Core.Search.SuggestFuzziness? fuzzy) { FuzzyDescriptor = null; @@ -115,6 +137,9 @@ public CompletionSuggesterDescriptor Fuzzy(Action + /// A regex query that expresses a prefix as a regular expression. + /// public CompletionSuggesterDescriptor Regex(Elastic.Clients.Elasticsearch.Core.Search.RegexOptions? regex) { RegexDescriptor = null; @@ -145,6 +170,9 @@ public CompletionSuggesterDescriptor Size(int? size) return Self; } + /// + /// Whether duplicate suggestions should be filtered out. + /// public CompletionSuggesterDescriptor SkipDuplicates(bool? skipDuplicates = true) { SkipDuplicatesValue = skipDuplicates; @@ -242,6 +270,9 @@ public CompletionSuggesterDescriptor Analyzer(string? analyzer) return Self; } + /// + /// A value, geo point object, or a geo hash string to filter or boost the suggestion on. + /// public CompletionSuggesterDescriptor Contexts(Func>, FluentDictionary>> selector) { ContextsValue = selector?.Invoke(new FluentDictionary>()); @@ -266,6 +297,9 @@ public CompletionSuggesterDescriptor Field(Expression + /// Enables fuzziness, meaning you can have a typo in your search and still get results back. + /// public CompletionSuggesterDescriptor Fuzzy(Elastic.Clients.Elasticsearch.Core.Search.SuggestFuzziness? fuzzy) { FuzzyDescriptor = null; @@ -290,6 +324,9 @@ public CompletionSuggesterDescriptor Fuzzy(Action co return Self; } + /// + /// A regex query that expresses a prefix as a regular expression. + /// public CompletionSuggesterDescriptor Regex(Elastic.Clients.Elasticsearch.Core.Search.RegexOptions? regex) { RegexDescriptor = null; @@ -320,6 +357,9 @@ public CompletionSuggesterDescriptor Size(int? size) return Self; } + /// + /// Whether duplicate suggestions should be filtered out. + /// public CompletionSuggesterDescriptor SkipDuplicates(bool? skipDuplicates = true) { SkipDuplicatesValue = skipDuplicates; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DirectGenerator.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DirectGenerator.g.cs index 7af7c6588f7..139fbf4918c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DirectGenerator.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/DirectGenerator.g.cs @@ -29,26 +29,69 @@ namespace Elastic.Clients.Elasticsearch.Core.Search; public sealed partial class DirectGenerator { + /// + /// The field to fetch the candidate suggestions from.
Needs to be set globally or per suggestion.
+ ///
[JsonInclude, JsonPropertyName("field")] public Elastic.Clients.Elasticsearch.Field Field { get; set; } + + /// + /// The maximum edit distance candidate suggestions can have in order to be considered as a suggestion.
Can only be `1` or `2`.
+ ///
[JsonInclude, JsonPropertyName("max_edits")] public int? MaxEdits { get; set; } + + /// + /// A factor that is used to multiply with the shard_size in order to inspect more candidate spelling corrections on the shard level.
Can improve accuracy at the cost of performance.
+ ///
[JsonInclude, JsonPropertyName("max_inspections")] public float? MaxInspections { get; set; } + + /// + /// The maximum threshold in number of documents in which a suggest text token can exist in order to be included.
This can be used to exclude high frequency terms — which are usually spelled correctly — from being spellchecked.
Can be a relative percentage number (for example `0.4`) or an absolute number to represent document frequencies.
If a value higher than 1 is specified, then fractional can not be specified.
+ ///
[JsonInclude, JsonPropertyName("max_term_freq")] public float? MaxTermFreq { get; set; } + + /// + /// The minimal threshold in number of documents a suggestion should appear in.
This can improve quality by only suggesting high frequency terms.
Can be specified as an absolute number or as a relative percentage of number of documents.
If a value higher than 1 is specified, the number cannot be fractional.
+ ///
[JsonInclude, JsonPropertyName("min_doc_freq")] public float? MinDocFreq { get; set; } + + /// + /// The minimum length a suggest text term must have in order to be included. + /// [JsonInclude, JsonPropertyName("min_word_length")] public int? MinWordLength { get; set; } + + /// + /// A filter (analyzer) that is applied to each of the generated tokens before they are passed to the actual phrase scorer. + /// [JsonInclude, JsonPropertyName("post_filter")] public string? PostFilter { get; set; } + + /// + /// A filter (analyzer) that is applied to each of the tokens passed to this candidate generator.
This filter is applied to the original token before candidates are generated.
+ ///
[JsonInclude, JsonPropertyName("pre_filter")] public string? PreFilter { get; set; } + + /// + /// The number of minimal prefix characters that must match in order be a candidate suggestions.
Increasing this number improves spellcheck performance.
+ ///
[JsonInclude, JsonPropertyName("prefix_length")] public int? PrefixLength { get; set; } + + /// + /// The maximum corrections to be returned per suggest text token. + /// [JsonInclude, JsonPropertyName("size")] public int? Size { get; set; } + + /// + /// Controls what suggestions are included on the suggestions generated on each shard. + /// [JsonInclude, JsonPropertyName("suggest_mode")] public Elastic.Clients.Elasticsearch.SuggestMode? SuggestMode { get; set; } } @@ -73,72 +116,108 @@ public DirectGeneratorDescriptor() : base() private int? SizeValue { get; set; } private Elastic.Clients.Elasticsearch.SuggestMode? SuggestModeValue { get; set; } + /// + /// The field to fetch the candidate suggestions from.
Needs to be set globally or per suggestion.
+ ///
public DirectGeneratorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) { FieldValue = field; return Self; } + /// + /// The field to fetch the candidate suggestions from.
Needs to be set globally or per suggestion.
+ ///
public DirectGeneratorDescriptor Field(Expression> field) { FieldValue = field; return Self; } + /// + /// The maximum edit distance candidate suggestions can have in order to be considered as a suggestion.
Can only be `1` or `2`.
+ ///
public DirectGeneratorDescriptor MaxEdits(int? maxEdits) { MaxEditsValue = maxEdits; return Self; } + /// + /// A factor that is used to multiply with the shard_size in order to inspect more candidate spelling corrections on the shard level.
Can improve accuracy at the cost of performance.
+ ///
public DirectGeneratorDescriptor MaxInspections(float? maxInspections) { MaxInspectionsValue = maxInspections; return Self; } + /// + /// The maximum threshold in number of documents in which a suggest text token can exist in order to be included.
This can be used to exclude high frequency terms — which are usually spelled correctly — from being spellchecked.
Can be a relative percentage number (for example `0.4`) or an absolute number to represent document frequencies.
If a value higher than 1 is specified, then fractional can not be specified.
+ ///
public DirectGeneratorDescriptor MaxTermFreq(float? maxTermFreq) { MaxTermFreqValue = maxTermFreq; return Self; } + /// + /// The minimal threshold in number of documents a suggestion should appear in.
This can improve quality by only suggesting high frequency terms.
Can be specified as an absolute number or as a relative percentage of number of documents.
If a value higher than 1 is specified, the number cannot be fractional.
+ ///
public DirectGeneratorDescriptor MinDocFreq(float? minDocFreq) { MinDocFreqValue = minDocFreq; return Self; } + /// + /// The minimum length a suggest text term must have in order to be included. + /// public DirectGeneratorDescriptor MinWordLength(int? minWordLength) { MinWordLengthValue = minWordLength; return Self; } + /// + /// A filter (analyzer) that is applied to each of the generated tokens before they are passed to the actual phrase scorer. + /// public DirectGeneratorDescriptor PostFilter(string? postFilter) { PostFilterValue = postFilter; return Self; } + /// + /// A filter (analyzer) that is applied to each of the tokens passed to this candidate generator.
This filter is applied to the original token before candidates are generated.
+ ///
public DirectGeneratorDescriptor PreFilter(string? preFilter) { PreFilterValue = preFilter; return Self; } + /// + /// The number of minimal prefix characters that must match in order be a candidate suggestions.
Increasing this number improves spellcheck performance.
+ ///
public DirectGeneratorDescriptor PrefixLength(int? prefixLength) { PrefixLengthValue = prefixLength; return Self; } + /// + /// The maximum corrections to be returned per suggest text token. + /// public DirectGeneratorDescriptor Size(int? size) { SizeValue = size; return Self; } + /// + /// Controls what suggestions are included on the suggestions generated on each shard. + /// public DirectGeneratorDescriptor SuggestMode(Elastic.Clients.Elasticsearch.SuggestMode? suggestMode) { SuggestModeValue = suggestMode; @@ -234,78 +313,117 @@ public DirectGeneratorDescriptor() : base() private int? SizeValue { get; set; } private Elastic.Clients.Elasticsearch.SuggestMode? SuggestModeValue { get; set; } + /// + /// The field to fetch the candidate suggestions from.
Needs to be set globally or per suggestion.
+ ///
public DirectGeneratorDescriptor Field(Elastic.Clients.Elasticsearch.Field field) { FieldValue = field; return Self; } + /// + /// The field to fetch the candidate suggestions from.
Needs to be set globally or per suggestion.
+ ///
public DirectGeneratorDescriptor Field(Expression> field) { FieldValue = field; return Self; } + /// + /// The field to fetch the candidate suggestions from.
Needs to be set globally or per suggestion.
+ ///
public DirectGeneratorDescriptor Field(Expression> field) { FieldValue = field; return Self; } + /// + /// The maximum edit distance candidate suggestions can have in order to be considered as a suggestion.
Can only be `1` or `2`.
+ ///
public DirectGeneratorDescriptor MaxEdits(int? maxEdits) { MaxEditsValue = maxEdits; return Self; } + /// + /// A factor that is used to multiply with the shard_size in order to inspect more candidate spelling corrections on the shard level.
Can improve accuracy at the cost of performance.
+ ///
public DirectGeneratorDescriptor MaxInspections(float? maxInspections) { MaxInspectionsValue = maxInspections; return Self; } + /// + /// The maximum threshold in number of documents in which a suggest text token can exist in order to be included.
This can be used to exclude high frequency terms — which are usually spelled correctly — from being spellchecked.
Can be a relative percentage number (for example `0.4`) or an absolute number to represent document frequencies.
If a value higher than 1 is specified, then fractional can not be specified.
+ ///
public DirectGeneratorDescriptor MaxTermFreq(float? maxTermFreq) { MaxTermFreqValue = maxTermFreq; return Self; } + /// + /// The minimal threshold in number of documents a suggestion should appear in.
This can improve quality by only suggesting high frequency terms.
Can be specified as an absolute number or as a relative percentage of number of documents.
If a value higher than 1 is specified, the number cannot be fractional.
+ ///
public DirectGeneratorDescriptor MinDocFreq(float? minDocFreq) { MinDocFreqValue = minDocFreq; return Self; } + /// + /// The minimum length a suggest text term must have in order to be included. + /// public DirectGeneratorDescriptor MinWordLength(int? minWordLength) { MinWordLengthValue = minWordLength; return Self; } + /// + /// A filter (analyzer) that is applied to each of the generated tokens before they are passed to the actual phrase scorer. + /// public DirectGeneratorDescriptor PostFilter(string? postFilter) { PostFilterValue = postFilter; return Self; } + /// + /// A filter (analyzer) that is applied to each of the tokens passed to this candidate generator.
This filter is applied to the original token before candidates are generated.
+ ///
public DirectGeneratorDescriptor PreFilter(string? preFilter) { PreFilterValue = preFilter; return Self; } + /// + /// The number of minimal prefix characters that must match in order be a candidate suggestions.
Increasing this number improves spellcheck performance.
+ ///
public DirectGeneratorDescriptor PrefixLength(int? prefixLength) { PrefixLengthValue = prefixLength; return Self; } + /// + /// The maximum corrections to be returned per suggest text token. + /// public DirectGeneratorDescriptor Size(int? size) { SizeValue = size; return Self; } + /// + /// Controls what suggestions are included on the suggestions generated on each shard. + /// public DirectGeneratorDescriptor SuggestMode(Elastic.Clients.Elasticsearch.SuggestMode? suggestMode) { SuggestModeValue = suggestMode; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/FieldSuggester.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/FieldSuggester.g.cs index 0d7694527c3..f7d41edff3e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/FieldSuggester.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/FieldSuggester.g.cs @@ -49,10 +49,21 @@ internal FieldSuggester(string variantName, object variant) public static FieldSuggester Phrase(Elastic.Clients.Elasticsearch.Core.Search.PhraseSuggester phraseSuggester) => new FieldSuggester("phrase", phraseSuggester); public static FieldSuggester Term(Elastic.Clients.Elasticsearch.Core.Search.TermSuggester termSuggester) => new FieldSuggester("term", termSuggester); + /// + /// Prefix used to search for suggestions. + /// [JsonInclude, JsonPropertyName("prefix")] public string? Prefix { get; set; } + + /// + /// A prefix expressed as a regular expression. + /// [JsonInclude, JsonPropertyName("regex")] public string? Regex { get; set; } + + /// + /// The text to use as input for the suggester.
Needs to be set globally or per suggestion.
+ ///
[JsonInclude, JsonPropertyName("text")] public string? Text { get; set; } } @@ -212,18 +223,27 @@ private FieldSuggesterDescriptor Set(object variant, string variantNa private string? RegexValue { get; set; } private string? TextValue { get; set; } + /// + /// Prefix used to search for suggestions. + /// public FieldSuggesterDescriptor Prefix(string? prefix) { PrefixValue = prefix; return Self; } + /// + /// A prefix expressed as a regular expression. + /// public FieldSuggesterDescriptor Regex(string? regex) { RegexValue = regex; return Self; } + /// + /// The text to use as input for the suggester.
Needs to be set globally or per suggestion.
+ ///
public FieldSuggesterDescriptor Text(string? text) { TextValue = text; @@ -310,18 +330,27 @@ private FieldSuggesterDescriptor Set(object variant, string variantName) private string? RegexValue { get; set; } private string? TextValue { get; set; } + /// + /// Prefix used to search for suggestions. + /// public FieldSuggesterDescriptor Prefix(string? prefix) { PrefixValue = prefix; return Self; } + /// + /// A prefix expressed as a regular expression. + /// public FieldSuggesterDescriptor Regex(string? regex) { RegexValue = regex; return Self; } + /// + /// The text to use as input for the suggester.
Needs to be set globally or per suggestion.
+ ///
public FieldSuggesterDescriptor Text(string? text) { TextValue = text; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/LaplaceSmoothingModel.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/LaplaceSmoothingModel.g.cs index 80308ad0dfc..1389b2ab874 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/LaplaceSmoothingModel.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/LaplaceSmoothingModel.g.cs @@ -29,6 +29,9 @@ namespace Elastic.Clients.Elasticsearch.Core.Search; public sealed partial class LaplaceSmoothingModel { + /// + /// A constant that is added to all counts to balance weights. + /// [JsonInclude, JsonPropertyName("alpha")] public double Alpha { get; set; } @@ -45,6 +48,9 @@ public LaplaceSmoothingModelDescriptor() : base() private double AlphaValue { get; set; } + /// + /// A constant that is added to all counts to balance weights. + /// public LaplaceSmoothingModelDescriptor Alpha(double alpha) { AlphaValue = alpha; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggestCollate.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggestCollate.g.cs index 235d0d2c718..8e8fba06b3d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggestCollate.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggestCollate.g.cs @@ -29,10 +29,21 @@ namespace Elastic.Clients.Elasticsearch.Core.Search; public sealed partial class PhraseSuggestCollate { + /// + /// Parameters to use if the query is templated. + /// [JsonInclude, JsonPropertyName("params")] public IDictionary? Params { get; set; } + + /// + /// Returns all suggestions with an extra `collate_match` option indicating whether the generated phrase matched any document. + /// [JsonInclude, JsonPropertyName("prune")] public bool? Prune { get; set; } + + /// + /// A collate query that is run once for every suggestion. + /// [JsonInclude, JsonPropertyName("query")] public Elastic.Clients.Elasticsearch.Core.Search.PhraseSuggestCollateQuery Query { get; set; } } @@ -51,18 +62,27 @@ public PhraseSuggestCollateDescriptor() : base() private PhraseSuggestCollateQueryDescriptor QueryDescriptor { get; set; } private Action QueryDescriptorAction { get; set; } + /// + /// Parameters to use if the query is templated. + /// public PhraseSuggestCollateDescriptor Params(Func, FluentDictionary> selector) { ParamsValue = selector?.Invoke(new FluentDictionary()); return Self; } + /// + /// Returns all suggestions with an extra `collate_match` option indicating whether the generated phrase matched any document. + /// public PhraseSuggestCollateDescriptor Prune(bool? prune = true) { PruneValue = prune; return Self; } + /// + /// A collate query that is run once for every suggestion. + /// public PhraseSuggestCollateDescriptor Query(Elastic.Clients.Elasticsearch.Core.Search.PhraseSuggestCollateQuery query) { QueryDescriptor = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggestCollateQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggestCollateQuery.g.cs index 3be00672707..8b18eaec54b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggestCollateQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggestCollateQuery.g.cs @@ -29,8 +29,15 @@ namespace Elastic.Clients.Elasticsearch.Core.Search; public sealed partial class PhraseSuggestCollateQuery { + /// + /// The search template ID. + /// [JsonInclude, JsonPropertyName("id")] public Elastic.Clients.Elasticsearch.Id? Id { get; set; } + + /// + /// The query source. + /// [JsonInclude, JsonPropertyName("source")] public string? Source { get; set; } } @@ -46,12 +53,18 @@ public PhraseSuggestCollateQueryDescriptor() : base() private Elastic.Clients.Elasticsearch.Id? IdValue { get; set; } private string? SourceValue { get; set; } + /// + /// The search template ID. + /// public PhraseSuggestCollateQueryDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) { IdValue = id; return Self; } + /// + /// The query source. + /// public PhraseSuggestCollateQueryDescriptor Source(string? source) { SourceValue = source; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggestHighlight.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggestHighlight.g.cs index 28bf1da5336..9337f52bb92 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggestHighlight.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggestHighlight.g.cs @@ -29,8 +29,15 @@ namespace Elastic.Clients.Elasticsearch.Core.Search; public sealed partial class PhraseSuggestHighlight { + /// + /// Use in conjunction with `pre_tag` to define the HTML tags to use for the highlighted text. + /// [JsonInclude, JsonPropertyName("post_tag")] public string PostTag { get; set; } + + /// + /// Use in conjunction with `post_tag` to define the HTML tags to use for the highlighted text. + /// [JsonInclude, JsonPropertyName("pre_tag")] public string PreTag { get; set; } } @@ -46,12 +53,18 @@ public PhraseSuggestHighlightDescriptor() : base() private string PostTagValue { get; set; } private string PreTagValue { get; set; } + /// + /// Use in conjunction with `pre_tag` to define the HTML tags to use for the highlighted text. + /// public PhraseSuggestHighlightDescriptor PostTag(string postTag) { PostTagValue = postTag; return Self; } + /// + /// Use in conjunction with `post_tag` to define the HTML tags to use for the highlighted text. + /// public PhraseSuggestHighlightDescriptor PreTag(string preTag) { PreTagValue = preTag; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggester.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggester.g.cs index b368d42d05f..8e200156159 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggester.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggester.g.cs @@ -31,32 +31,76 @@ public sealed partial class PhraseSuggester { [JsonInclude, JsonPropertyName("analyzer")] public string? Analyzer { get; set; } + + /// + /// Checks each suggestion against the specified query to prune suggestions for which no matching docs exist in the index. + /// [JsonInclude, JsonPropertyName("collate")] public Elastic.Clients.Elasticsearch.Core.Search.PhraseSuggestCollate? Collate { get; set; } + + /// + /// Defines a factor applied to the input phrases score, which is used as a threshold for other suggest candidates.
Only candidates that score higher than the threshold will be included in the result.
+ ///
[JsonInclude, JsonPropertyName("confidence")] public double? Confidence { get; set; } + + /// + /// A list of candidate generators that produce a list of possible terms per term in the given text. + /// [JsonInclude, JsonPropertyName("direct_generator")] public ICollection? DirectGenerator { get; set; } [JsonInclude, JsonPropertyName("field")] public Elastic.Clients.Elasticsearch.Field Field { get; set; } [JsonInclude, JsonPropertyName("force_unigrams")] public bool? ForceUnigrams { get; set; } + + /// + /// Sets max size of the n-grams (shingles) in the field.
If the field doesn’t contain n-grams (shingles), this should be omitted or set to `1`.
If the field uses a shingle filter, the `gram_size` is set to the `max_shingle_size` if not explicitly set.
+ ///
[JsonInclude, JsonPropertyName("gram_size")] public int? GramSize { get; set; } + + /// + /// Sets up suggestion highlighting.
If not provided, no highlighted field is returned.
+ ///
[JsonInclude, JsonPropertyName("highlight")] public Elastic.Clients.Elasticsearch.Core.Search.PhraseSuggestHighlight? Highlight { get; set; } + + /// + /// The maximum percentage of the terms considered to be misspellings in order to form a correction.
This method accepts a float value in the range `[0..1)` as a fraction of the actual query terms or a number `>=1` as an absolute number of query terms.
+ ///
[JsonInclude, JsonPropertyName("max_errors")] public double? MaxErrors { get; set; } + + /// + /// The likelihood of a term being misspelled even if the term exists in the dictionary. + /// [JsonInclude, JsonPropertyName("real_word_error_likelihood")] public double? RealWordErrorLikelihood { get; set; } + + /// + /// The separator that is used to separate terms in the bigram field.
If not set, the whitespace character is used as a separator.
+ ///
[JsonInclude, JsonPropertyName("separator")] public string? Separator { get; set; } + + /// + /// Sets the maximum number of suggested terms to be retrieved from each individual shard. + /// [JsonInclude, JsonPropertyName("shard_size")] public int? ShardSize { get; set; } [JsonInclude, JsonPropertyName("size")] public int? Size { get; set; } + + /// + /// The smoothing model used to balance weight between infrequent grams (grams (shingles) are not existing in the index) and frequent grams (appear at least once in the index).
The default model is Stupid Backoff.
+ ///
[JsonInclude, JsonPropertyName("smoothing")] public Elastic.Clients.Elasticsearch.Core.Search.SmoothingModel? Smoothing { get; set; } + + /// + /// The text/query to provide suggestions for. + /// [JsonInclude, JsonPropertyName("text")] public string? Text { get; set; } [JsonInclude, JsonPropertyName("token_limit")] @@ -99,6 +143,9 @@ public PhraseSuggesterDescriptor() : base() private string? TextValue { get; set; } private int? TokenLimitValue { get; set; } + /// + /// A list of candidate generators that produce a list of possible terms per term in the given text. + /// public PhraseSuggesterDescriptor DirectGenerator(ICollection? directGenerator) { DirectGeneratorDescriptor = null; @@ -141,6 +188,9 @@ public PhraseSuggesterDescriptor Analyzer(string? analyzer) return Self; } + /// + /// Checks each suggestion against the specified query to prune suggestions for which no matching docs exist in the index. + /// public PhraseSuggesterDescriptor Collate(Elastic.Clients.Elasticsearch.Core.Search.PhraseSuggestCollate? collate) { CollateDescriptor = null; @@ -165,6 +215,9 @@ public PhraseSuggesterDescriptor Collate(Action + /// Defines a factor applied to the input phrases score, which is used as a threshold for other suggest candidates.
Only candidates that score higher than the threshold will be included in the result.
+ /// public PhraseSuggesterDescriptor Confidence(double? confidence) { ConfidenceValue = confidence; @@ -189,12 +242,18 @@ public PhraseSuggesterDescriptor ForceUnigrams(bool? forceUnigrams = return Self; } + /// + /// Sets max size of the n-grams (shingles) in the field.
If the field doesn’t contain n-grams (shingles), this should be omitted or set to `1`.
If the field uses a shingle filter, the `gram_size` is set to the `max_shingle_size` if not explicitly set.
+ ///
public PhraseSuggesterDescriptor GramSize(int? gramSize) { GramSizeValue = gramSize; return Self; } + /// + /// Sets up suggestion highlighting.
If not provided, no highlighted field is returned.
+ ///
public PhraseSuggesterDescriptor Highlight(Elastic.Clients.Elasticsearch.Core.Search.PhraseSuggestHighlight? highlight) { HighlightDescriptor = null; @@ -219,24 +278,36 @@ public PhraseSuggesterDescriptor Highlight(Action + /// The maximum percentage of the terms considered to be misspellings in order to form a correction.
This method accepts a float value in the range `[0..1)` as a fraction of the actual query terms or a number `>=1` as an absolute number of query terms.
+ /// public PhraseSuggesterDescriptor MaxErrors(double? maxErrors) { MaxErrorsValue = maxErrors; return Self; } + /// + /// The likelihood of a term being misspelled even if the term exists in the dictionary. + /// public PhraseSuggesterDescriptor RealWordErrorLikelihood(double? realWordErrorLikelihood) { RealWordErrorLikelihoodValue = realWordErrorLikelihood; return Self; } + /// + /// The separator that is used to separate terms in the bigram field.
If not set, the whitespace character is used as a separator.
+ ///
public PhraseSuggesterDescriptor Separator(string? separator) { SeparatorValue = separator; return Self; } + /// + /// Sets the maximum number of suggested terms to be retrieved from each individual shard. + /// public PhraseSuggesterDescriptor ShardSize(int? shardSize) { ShardSizeValue = shardSize; @@ -249,6 +320,9 @@ public PhraseSuggesterDescriptor Size(int? size) return Self; } + /// + /// The smoothing model used to balance weight between infrequent grams (grams (shingles) are not existing in the index) and frequent grams (appear at least once in the index).
The default model is Stupid Backoff.
+ ///
public PhraseSuggesterDescriptor Smoothing(Elastic.Clients.Elasticsearch.Core.Search.SmoothingModel? smoothing) { SmoothingDescriptor = null; @@ -273,6 +347,9 @@ public PhraseSuggesterDescriptor Smoothing(Action + /// The text/query to provide suggestions for. + /// public PhraseSuggesterDescriptor Text(string? text) { TextValue = text; @@ -473,6 +550,9 @@ public PhraseSuggesterDescriptor() : base() private string? TextValue { get; set; } private int? TokenLimitValue { get; set; } + /// + /// A list of candidate generators that produce a list of possible terms per term in the given text. + /// public PhraseSuggesterDescriptor DirectGenerator(ICollection? directGenerator) { DirectGeneratorDescriptor = null; @@ -515,6 +595,9 @@ public PhraseSuggesterDescriptor Analyzer(string? analyzer) return Self; } + /// + /// Checks each suggestion against the specified query to prune suggestions for which no matching docs exist in the index. + /// public PhraseSuggesterDescriptor Collate(Elastic.Clients.Elasticsearch.Core.Search.PhraseSuggestCollate? collate) { CollateDescriptor = null; @@ -539,6 +622,9 @@ public PhraseSuggesterDescriptor Collate(Action return Self; } + /// + /// Defines a factor applied to the input phrases score, which is used as a threshold for other suggest candidates.
Only candidates that score higher than the threshold will be included in the result.
+ ///
public PhraseSuggesterDescriptor Confidence(double? confidence) { ConfidenceValue = confidence; @@ -569,12 +655,18 @@ public PhraseSuggesterDescriptor ForceUnigrams(bool? forceUnigrams = true) return Self; } + /// + /// Sets max size of the n-grams (shingles) in the field.
If the field doesn’t contain n-grams (shingles), this should be omitted or set to `1`.
If the field uses a shingle filter, the `gram_size` is set to the `max_shingle_size` if not explicitly set.
+ ///
public PhraseSuggesterDescriptor GramSize(int? gramSize) { GramSizeValue = gramSize; return Self; } + /// + /// Sets up suggestion highlighting.
If not provided, no highlighted field is returned.
+ ///
public PhraseSuggesterDescriptor Highlight(Elastic.Clients.Elasticsearch.Core.Search.PhraseSuggestHighlight? highlight) { HighlightDescriptor = null; @@ -599,24 +691,36 @@ public PhraseSuggesterDescriptor Highlight(Action + /// The maximum percentage of the terms considered to be misspellings in order to form a correction.
This method accepts a float value in the range `[0..1)` as a fraction of the actual query terms or a number `>=1` as an absolute number of query terms.
+ /// public PhraseSuggesterDescriptor MaxErrors(double? maxErrors) { MaxErrorsValue = maxErrors; return Self; } + /// + /// The likelihood of a term being misspelled even if the term exists in the dictionary. + /// public PhraseSuggesterDescriptor RealWordErrorLikelihood(double? realWordErrorLikelihood) { RealWordErrorLikelihoodValue = realWordErrorLikelihood; return Self; } + /// + /// The separator that is used to separate terms in the bigram field.
If not set, the whitespace character is used as a separator.
+ ///
public PhraseSuggesterDescriptor Separator(string? separator) { SeparatorValue = separator; return Self; } + /// + /// Sets the maximum number of suggested terms to be retrieved from each individual shard. + /// public PhraseSuggesterDescriptor ShardSize(int? shardSize) { ShardSizeValue = shardSize; @@ -629,6 +733,9 @@ public PhraseSuggesterDescriptor Size(int? size) return Self; } + /// + /// The smoothing model used to balance weight between infrequent grams (grams (shingles) are not existing in the index) and frequent grams (appear at least once in the index).
The default model is Stupid Backoff.
+ ///
public PhraseSuggesterDescriptor Smoothing(Elastic.Clients.Elasticsearch.Core.Search.SmoothingModel? smoothing) { SmoothingDescriptor = null; @@ -653,6 +760,9 @@ public PhraseSuggesterDescriptor Smoothing(Action conf return Self; } + /// + /// The text/query to provide suggestions for. + /// public PhraseSuggesterDescriptor Text(string? text) { TextValue = text; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/RegexOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/RegexOptions.g.cs index df639a9f460..0f3a61a953d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/RegexOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/RegexOptions.g.cs @@ -29,8 +29,15 @@ namespace Elastic.Clients.Elasticsearch.Core.Search; public sealed partial class RegexOptions { + /// + /// Optional operators for the regular expression. + /// [JsonInclude, JsonPropertyName("flags")] public Union? Flags { get; set; } + + /// + /// Maximum number of automaton states required for the query. + /// [JsonInclude, JsonPropertyName("max_determinized_states")] public int? MaxDeterminizedStates { get; set; } } @@ -46,12 +53,18 @@ public RegexOptionsDescriptor() : base() private Union? FlagsValue { get; set; } private int? MaxDeterminizedStatesValue { get; set; } + /// + /// Optional operators for the regular expression. + /// public RegexOptionsDescriptor Flags(Union? flags) { FlagsValue = flags; return Self; } + /// + /// Maximum number of automaton states required for the query. + /// public RegexOptionsDescriptor MaxDeterminizedStates(int? maxDeterminizedStates) { MaxDeterminizedStatesValue = maxDeterminizedStates; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/StupidBackoffSmoothingModel.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/StupidBackoffSmoothingModel.g.cs index 415cefc4ca1..a9cab28c5e6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/StupidBackoffSmoothingModel.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/StupidBackoffSmoothingModel.g.cs @@ -29,6 +29,9 @@ namespace Elastic.Clients.Elasticsearch.Core.Search; public sealed partial class StupidBackoffSmoothingModel { + /// + /// A constant factor that the lower order n-gram model is discounted by. + /// [JsonInclude, JsonPropertyName("discount")] public double Discount { get; set; } @@ -45,6 +48,9 @@ public StupidBackoffSmoothingModelDescriptor() : base() private double DiscountValue { get; set; } + /// + /// A constant factor that the lower order n-gram model is discounted by. + /// public StupidBackoffSmoothingModelDescriptor Discount(double discount) { DiscountValue = discount; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/SuggestFuzziness.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/SuggestFuzziness.g.cs index 166e3a656cd..4338dd8fd93 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/SuggestFuzziness.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/SuggestFuzziness.g.cs @@ -29,14 +29,33 @@ namespace Elastic.Clients.Elasticsearch.Core.Search; public sealed partial class SuggestFuzziness { + /// + /// The fuzziness factor. + /// [JsonInclude, JsonPropertyName("fuzziness")] public Elastic.Clients.Elasticsearch.Fuzziness? Fuzziness { get; set; } + + /// + /// Minimum length of the input before fuzzy suggestions are returned. + /// [JsonInclude, JsonPropertyName("min_length")] public int? MinLength { get; set; } + + /// + /// Minimum length of the input, which is not checked for fuzzy alternatives. + /// [JsonInclude, JsonPropertyName("prefix_length")] public int? PrefixLength { get; set; } + + /// + /// If set to `true`, transpositions are counted as one change instead of two. + /// [JsonInclude, JsonPropertyName("transpositions")] public bool? Transpositions { get; set; } + + /// + /// If `true`, all measurements (like fuzzy edit distance, transpositions, and lengths) are measured in Unicode code points instead of in bytes.
This is slightly slower than raw bytes.
+ ///
[JsonInclude, JsonPropertyName("unicode_aware")] public bool? UnicodeAware { get; set; } } @@ -55,30 +74,45 @@ public SuggestFuzzinessDescriptor() : base() private bool? TranspositionsValue { get; set; } private bool? UnicodeAwareValue { get; set; } + /// + /// The fuzziness factor. + /// public SuggestFuzzinessDescriptor Fuzziness(Elastic.Clients.Elasticsearch.Fuzziness? fuzziness) { FuzzinessValue = fuzziness; return Self; } + /// + /// Minimum length of the input before fuzzy suggestions are returned. + /// public SuggestFuzzinessDescriptor MinLength(int? minLength) { MinLengthValue = minLength; return Self; } + /// + /// Minimum length of the input, which is not checked for fuzzy alternatives. + /// public SuggestFuzzinessDescriptor PrefixLength(int? prefixLength) { PrefixLengthValue = prefixLength; return Self; } + /// + /// If set to `true`, transpositions are counted as one change instead of two. + /// public SuggestFuzzinessDescriptor Transpositions(bool? transpositions = true) { TranspositionsValue = transpositions; return Self; } + /// + /// If `true`, all measurements (like fuzzy edit distance, transpositions, and lengths) are measured in Unicode code points instead of in bytes.
This is slightly slower than raw bytes.
+ ///
public SuggestFuzzinessDescriptor UnicodeAware(bool? unicodeAware = true) { UnicodeAwareValue = unicodeAware; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/TermSuggester.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/TermSuggester.g.cs index fb686deaea9..ce92260d28d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/TermSuggester.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/TermSuggester.g.cs @@ -35,28 +35,72 @@ public sealed partial class TermSuggester public Elastic.Clients.Elasticsearch.Field Field { get; set; } [JsonInclude, JsonPropertyName("lowercase_terms")] public bool? LowercaseTerms { get; set; } + + /// + /// The maximum edit distance candidate suggestions can have in order to be considered as a suggestion.
Can only be `1` or `2`.
+ ///
[JsonInclude, JsonPropertyName("max_edits")] public int? MaxEdits { get; set; } + + /// + /// A factor that is used to multiply with the shard_size in order to inspect more candidate spelling corrections on the shard level.
Can improve accuracy at the cost of performance.
+ ///
[JsonInclude, JsonPropertyName("max_inspections")] public int? MaxInspections { get; set; } + + /// + /// The maximum threshold in number of documents in which a suggest text token can exist in order to be included.
Can be a relative percentage number (for example `0.4`) or an absolute number to represent document frequencies.
If a value higher than 1 is specified, then fractional can not be specified.
+ ///
[JsonInclude, JsonPropertyName("max_term_freq")] public float? MaxTermFreq { get; set; } + + /// + /// The minimal threshold in number of documents a suggestion should appear in.
This can improve quality by only suggesting high frequency terms.
Can be specified as an absolute number or as a relative percentage of number of documents.
If a value higher than 1 is specified, then the number cannot be fractional.
+ ///
[JsonInclude, JsonPropertyName("min_doc_freq")] public float? MinDocFreq { get; set; } + + /// + /// The minimum length a suggest text term must have in order to be included. + /// [JsonInclude, JsonPropertyName("min_word_length")] public int? MinWordLength { get; set; } + + /// + /// The number of minimal prefix characters that must match in order be a candidate for suggestions.
Increasing this number improves spellcheck performance.
+ ///
[JsonInclude, JsonPropertyName("prefix_length")] public int? PrefixLength { get; set; } + + /// + /// Sets the maximum number of suggestions to be retrieved from each individual shard. + /// [JsonInclude, JsonPropertyName("shard_size")] public int? ShardSize { get; set; } [JsonInclude, JsonPropertyName("size")] public int? Size { get; set; } + + /// + /// Defines how suggestions should be sorted per suggest text term. + /// [JsonInclude, JsonPropertyName("sort")] public Elastic.Clients.Elasticsearch.Core.Search.SuggestSort? Sort { get; set; } + + /// + /// The string distance implementation to use for comparing how similar suggested terms are. + /// [JsonInclude, JsonPropertyName("string_distance")] public Elastic.Clients.Elasticsearch.Core.Search.StringDistance? StringDistance { get; set; } + + /// + /// Controls what suggestions are included or controls for what suggest text terms, suggestions should be suggested. + /// [JsonInclude, JsonPropertyName("suggest_mode")] public Elastic.Clients.Elasticsearch.SuggestMode? SuggestMode { get; set; } + + /// + /// The suggest text.
Needs to be set globally or per suggestion.
+ ///
[JsonInclude, JsonPropertyName("text")] public string? Text { get; set; } @@ -111,42 +155,63 @@ public TermSuggesterDescriptor LowercaseTerms(bool? lowercaseTerms = return Self; } + /// + /// The maximum edit distance candidate suggestions can have in order to be considered as a suggestion.
Can only be `1` or `2`.
+ ///
public TermSuggesterDescriptor MaxEdits(int? maxEdits) { MaxEditsValue = maxEdits; return Self; } + /// + /// A factor that is used to multiply with the shard_size in order to inspect more candidate spelling corrections on the shard level.
Can improve accuracy at the cost of performance.
+ ///
public TermSuggesterDescriptor MaxInspections(int? maxInspections) { MaxInspectionsValue = maxInspections; return Self; } + /// + /// The maximum threshold in number of documents in which a suggest text token can exist in order to be included.
Can be a relative percentage number (for example `0.4`) or an absolute number to represent document frequencies.
If a value higher than 1 is specified, then fractional can not be specified.
+ ///
public TermSuggesterDescriptor MaxTermFreq(float? maxTermFreq) { MaxTermFreqValue = maxTermFreq; return Self; } + /// + /// The minimal threshold in number of documents a suggestion should appear in.
This can improve quality by only suggesting high frequency terms.
Can be specified as an absolute number or as a relative percentage of number of documents.
If a value higher than 1 is specified, then the number cannot be fractional.
+ ///
public TermSuggesterDescriptor MinDocFreq(float? minDocFreq) { MinDocFreqValue = minDocFreq; return Self; } + /// + /// The minimum length a suggest text term must have in order to be included. + /// public TermSuggesterDescriptor MinWordLength(int? minWordLength) { MinWordLengthValue = minWordLength; return Self; } + /// + /// The number of minimal prefix characters that must match in order be a candidate for suggestions.
Increasing this number improves spellcheck performance.
+ ///
public TermSuggesterDescriptor PrefixLength(int? prefixLength) { PrefixLengthValue = prefixLength; return Self; } + /// + /// Sets the maximum number of suggestions to be retrieved from each individual shard. + /// public TermSuggesterDescriptor ShardSize(int? shardSize) { ShardSizeValue = shardSize; @@ -159,24 +224,36 @@ public TermSuggesterDescriptor Size(int? size) return Self; } + /// + /// Defines how suggestions should be sorted per suggest text term. + /// public TermSuggesterDescriptor Sort(Elastic.Clients.Elasticsearch.Core.Search.SuggestSort? sort) { SortValue = sort; return Self; } + /// + /// The string distance implementation to use for comparing how similar suggested terms are. + /// public TermSuggesterDescriptor StringDistance(Elastic.Clients.Elasticsearch.Core.Search.StringDistance? stringDistance) { StringDistanceValue = stringDistance; return Self; } + /// + /// Controls what suggestions are included or controls for what suggest text terms, suggestions should be suggested. + /// public TermSuggesterDescriptor SuggestMode(Elastic.Clients.Elasticsearch.SuggestMode? suggestMode) { SuggestModeValue = suggestMode; return Self; } + /// + /// The suggest text.
Needs to be set globally or per suggestion.
+ ///
public TermSuggesterDescriptor Text(string? text) { TextValue = text; @@ -330,42 +407,63 @@ public TermSuggesterDescriptor LowercaseTerms(bool? lowercaseTerms = true) return Self; } + /// + /// The maximum edit distance candidate suggestions can have in order to be considered as a suggestion.
Can only be `1` or `2`.
+ ///
public TermSuggesterDescriptor MaxEdits(int? maxEdits) { MaxEditsValue = maxEdits; return Self; } + /// + /// A factor that is used to multiply with the shard_size in order to inspect more candidate spelling corrections on the shard level.
Can improve accuracy at the cost of performance.
+ ///
public TermSuggesterDescriptor MaxInspections(int? maxInspections) { MaxInspectionsValue = maxInspections; return Self; } + /// + /// The maximum threshold in number of documents in which a suggest text token can exist in order to be included.
Can be a relative percentage number (for example `0.4`) or an absolute number to represent document frequencies.
If a value higher than 1 is specified, then fractional can not be specified.
+ ///
public TermSuggesterDescriptor MaxTermFreq(float? maxTermFreq) { MaxTermFreqValue = maxTermFreq; return Self; } + /// + /// The minimal threshold in number of documents a suggestion should appear in.
This can improve quality by only suggesting high frequency terms.
Can be specified as an absolute number or as a relative percentage of number of documents.
If a value higher than 1 is specified, then the number cannot be fractional.
+ ///
public TermSuggesterDescriptor MinDocFreq(float? minDocFreq) { MinDocFreqValue = minDocFreq; return Self; } + /// + /// The minimum length a suggest text term must have in order to be included. + /// public TermSuggesterDescriptor MinWordLength(int? minWordLength) { MinWordLengthValue = minWordLength; return Self; } + /// + /// The number of minimal prefix characters that must match in order be a candidate for suggestions.
Increasing this number improves spellcheck performance.
+ ///
public TermSuggesterDescriptor PrefixLength(int? prefixLength) { PrefixLengthValue = prefixLength; return Self; } + /// + /// Sets the maximum number of suggestions to be retrieved from each individual shard. + /// public TermSuggesterDescriptor ShardSize(int? shardSize) { ShardSizeValue = shardSize; @@ -378,24 +476,36 @@ public TermSuggesterDescriptor Size(int? size) return Self; } + /// + /// Defines how suggestions should be sorted per suggest text term. + /// public TermSuggesterDescriptor Sort(Elastic.Clients.Elasticsearch.Core.Search.SuggestSort? sort) { SortValue = sort; return Self; } + /// + /// The string distance implementation to use for comparing how similar suggested terms are. + /// public TermSuggesterDescriptor StringDistance(Elastic.Clients.Elasticsearch.Core.Search.StringDistance? stringDistance) { StringDistanceValue = stringDistance; return Self; } + /// + /// Controls what suggestions are included or controls for what suggest text terms, suggestions should be suggested. + /// public TermSuggesterDescriptor SuggestMode(Elastic.Clients.Elasticsearch.SuggestMode? suggestMode) { SuggestModeValue = suggestMode; return Self; } + /// + /// The suggest text.
Needs to be set globally or per suggestion.
+ ///
public TermSuggesterDescriptor Text(string? text) { TextValue = text; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Filter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Filter.g.cs index 719dba32882..42d83a398ac 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Filter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Filter.g.cs @@ -29,18 +29,45 @@ namespace Elastic.Clients.Elasticsearch.Core.TermVectors; public sealed partial class Filter { + /// + /// Ignore words which occur in more than this many docs.
Defaults to unbounded.
+ ///
[JsonInclude, JsonPropertyName("max_doc_freq")] public int? MaxDocFreq { get; set; } + + /// + /// Maximum number of terms that must be returned per field. + /// [JsonInclude, JsonPropertyName("max_num_terms")] public int? MaxNumTerms { get; set; } + + /// + /// Ignore words with more than this frequency in the source doc.
Defaults to unbounded.
+ ///
[JsonInclude, JsonPropertyName("max_term_freq")] public int? MaxTermFreq { get; set; } + + /// + /// The maximum word length above which words will be ignored.
Defaults to unbounded.
+ ///
[JsonInclude, JsonPropertyName("max_word_length")] public int? MaxWordLength { get; set; } + + /// + /// Ignore terms which do not occur in at least this many docs. + /// [JsonInclude, JsonPropertyName("min_doc_freq")] public int? MinDocFreq { get; set; } + + /// + /// Ignore words with less than this frequency in the source doc. + /// [JsonInclude, JsonPropertyName("min_term_freq")] public int? MinTermFreq { get; set; } + + /// + /// The minimum word length below which words will be ignored. + /// [JsonInclude, JsonPropertyName("min_word_length")] public int? MinWordLength { get; set; } } @@ -61,42 +88,63 @@ public FilterDescriptor() : base() private int? MinTermFreqValue { get; set; } private int? MinWordLengthValue { get; set; } + /// + /// Ignore words which occur in more than this many docs.
Defaults to unbounded.
+ ///
public FilterDescriptor MaxDocFreq(int? maxDocFreq) { MaxDocFreqValue = maxDocFreq; return Self; } + /// + /// Maximum number of terms that must be returned per field. + /// public FilterDescriptor MaxNumTerms(int? maxNumTerms) { MaxNumTermsValue = maxNumTerms; return Self; } + /// + /// Ignore words with more than this frequency in the source doc.
Defaults to unbounded.
+ ///
public FilterDescriptor MaxTermFreq(int? maxTermFreq) { MaxTermFreqValue = maxTermFreq; return Self; } + /// + /// The maximum word length above which words will be ignored.
Defaults to unbounded.
+ ///
public FilterDescriptor MaxWordLength(int? maxWordLength) { MaxWordLengthValue = maxWordLength; return Self; } + /// + /// Ignore terms which do not occur in at least this many docs. + /// public FilterDescriptor MinDocFreq(int? minDocFreq) { MinDocFreqValue = minDocFreq; return Self; } + /// + /// Ignore words with less than this frequency in the source doc. + /// public FilterDescriptor MinTermFreq(int? minTermFreq) { MinTermFreqValue = minTermFreq; return Self; } + /// + /// The minimum word length below which words will be ignored. + /// public FilterDescriptor MinWordLength(int? minWordLength) { MinWordLengthValue = minWordLength; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Core.Search.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Core.Search.g.cs index 7f3d26f7d55..11e5f488104 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Core.Search.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Core.Search.g.cs @@ -352,14 +352,29 @@ public override void Write(Utf8JsonWriter writer, ScoreMode value, JsonSerialize [JsonConverter(typeof(StringDistanceConverter))] public enum StringDistance { + /// + /// String distance algorithm based on character n-grams. + /// [EnumMember(Value = "ngram")] Ngram, + /// + /// String distance algorithm based on the Levenshtein edit distance algorithm. + /// [EnumMember(Value = "levenshtein")] Levenshtein, + /// + /// String distance algorithm based on Jaro-Winkler algorithm. + /// [EnumMember(Value = "jaro_winkler")] JaroWinkler, + /// + /// Based on the Damerau-Levenshtein algorithm, but highly optimized for comparing string distance for terms inside the index. + /// [EnumMember(Value = "internal")] Internal, + /// + /// String distance algorithm based on Damerau-Levenshtein algorithm. + /// [EnumMember(Value = "damerau_levenshtein")] DamerauLevenshtein } @@ -414,8 +429,14 @@ public override void Write(Utf8JsonWriter writer, StringDistance value, JsonSeri [JsonConverter(typeof(SuggestSortConverter))] public enum SuggestSort { + /// + /// Sort by score first, then document frequency and then the term itself. + /// [EnumMember(Value = "score")] Score, + /// + /// Sort by document frequency first, then similarity score and then the term itself. + /// [EnumMember(Value = "frequency")] Frequency } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Mapping.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Mapping.g.cs index 44d9cdee696..085b9e87efc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Mapping.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Mapping.g.cs @@ -90,6 +90,8 @@ public enum FieldType TokenCount, [EnumMember(Value = "text")] Text, + [EnumMember(Value = "sparse_vector")] + SparseVector, [EnumMember(Value = "short")] Short, [EnumMember(Value = "shape")] @@ -183,6 +185,8 @@ public override FieldType Read(ref Utf8JsonReader reader, Type typeToConvert, Js return FieldType.TokenCount; case "text": return FieldType.Text; + case "sparse_vector": + return FieldType.SparseVector; case "short": return FieldType.Short; case "shape": @@ -278,6 +282,9 @@ public override void Write(Utf8JsonWriter writer, FieldType value, JsonSerialize case FieldType.Text: writer.WriteStringValue("text"); return; + case FieldType.SparseVector: + writer.WriteStringValue("sparse_vector"); + return; case FieldType.Short: writer.WriteStringValue("short"); return; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.NoNamespace.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.NoNamespace.g.cs index 1581f267e96..24b8b50cec6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.NoNamespace.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.NoNamespace.g.cs @@ -93,8 +93,14 @@ public override void Write(Utf8JsonWriter writer, ClusterSearchStatus value, Jso [JsonConverter(typeof(ConflictsConverter))] public enum Conflicts { + /// + /// Continue reindexing even if there are conflicts. + /// [EnumMember(Value = "proceed")] Proceed, + /// + /// Stop reindexing if there are conflicts. + /// [EnumMember(Value = "abort")] Abort } @@ -1364,10 +1370,19 @@ public override void Write(Utf8JsonWriter writer, SortOrder value, JsonSerialize [JsonConverter(typeof(SuggestModeConverter))] public enum SuggestMode { + /// + /// Only suggest terms that occur in more docs on the shard than the original term. + /// [EnumMember(Value = "popular")] Popular, + /// + /// Only generate suggestions for terms that are not in the shard. + /// [EnumMember(Value = "missing")] Missing, + /// + /// Suggest any matching suggestions based on terms in the suggest text. + /// [EnumMember(Value = "always")] Always } @@ -1488,12 +1503,21 @@ public override void Write(Utf8JsonWriter writer, TimeUnit value, JsonSerializer [JsonConverter(typeof(VersionTypeConverter))] public enum VersionType { + /// + /// Use internal versioning that starts at 1 and increments with each update or delete. + /// [EnumMember(Value = "internal")] Internal, [EnumMember(Value = "force")] Force, + /// + /// Only index the document if the given version is equal or higher than the version of the stored document or if there is no existing document.
Note: the external_gte version type is meant for special use cases and should be used with care.
If used incorrectly, it can result in loss of data.
+ ///
[EnumMember(Value = "external_gte")] ExternalGte, + /// + /// Only index the document if the given version is strictly higher than the version of the stored document or if there is no existing document. + /// [EnumMember(Value = "external")] External } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStream.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStream.g.cs index ee6bf105812..0135afc6708 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStream.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStream.g.cs @@ -69,7 +69,7 @@ public sealed partial class DataStream /// Contains the configuration for the data lifecycle management of this data stream. /// [JsonInclude, JsonPropertyName("lifecycle")] - public Elastic.Clients.Elasticsearch.IndexManagement.DataLifecycleWithRollover? Lifecycle { get; init; } + public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRollover? Lifecycle { get; init; } /// /// Name of the data stream. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs index 500a112d0e8..8a0aff82a8f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycle.g.cs @@ -27,10 +27,88 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; +/// +/// Data lifecycle denotes that a data stream is managed by the data stream lifecycle and contains the configuration. +/// public sealed partial class DataStreamLifecycle { - [JsonInclude, JsonPropertyName("lifecycle")] - public Elastic.Clients.Elasticsearch.IndexManagement.DataLifecycle? Lifecycle { get; init; } - [JsonInclude, JsonPropertyName("name")] - public string Name { get; init; } + [JsonInclude, JsonPropertyName("data_retention")] + public Elastic.Clients.Elasticsearch.Duration? DataRetention { get; set; } + [JsonInclude, JsonPropertyName("downsampling")] + public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? Downsampling { get; set; } +} + +/// +/// Data lifecycle denotes that a data stream is managed by the data stream lifecycle and contains the configuration. +/// +public sealed partial class DataStreamLifecycleDescriptor : SerializableDescriptor +{ + internal DataStreamLifecycleDescriptor(Action configure) => configure.Invoke(this); + + public DataStreamLifecycleDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Duration? DataRetentionValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? DownsamplingValue { get; set; } + private DataStreamLifecycleDownsamplingDescriptor DownsamplingDescriptor { get; set; } + private Action DownsamplingDescriptorAction { get; set; } + + public DataStreamLifecycleDescriptor DataRetention(Elastic.Clients.Elasticsearch.Duration? dataRetention) + { + DataRetentionValue = dataRetention; + return Self; + } + + public DataStreamLifecycleDescriptor Downsampling(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? downsampling) + { + DownsamplingDescriptor = null; + DownsamplingDescriptorAction = null; + DownsamplingValue = downsampling; + return Self; + } + + public DataStreamLifecycleDescriptor Downsampling(DataStreamLifecycleDownsamplingDescriptor descriptor) + { + DownsamplingValue = null; + DownsamplingDescriptorAction = null; + DownsamplingDescriptor = descriptor; + return Self; + } + + public DataStreamLifecycleDescriptor Downsampling(Action configure) + { + DownsamplingValue = null; + DownsamplingDescriptor = null; + DownsamplingDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (DataRetentionValue is not null) + { + writer.WritePropertyName("data_retention"); + JsonSerializer.Serialize(writer, DataRetentionValue, options); + } + + if (DownsamplingDescriptor is not null) + { + writer.WritePropertyName("downsampling"); + JsonSerializer.Serialize(writer, DownsamplingDescriptor, options); + } + else if (DownsamplingDescriptorAction is not null) + { + writer.WritePropertyName("downsampling"); + JsonSerializer.Serialize(writer, new DataStreamLifecycleDownsamplingDescriptor(DownsamplingDescriptorAction), options); + } + else if (DownsamplingValue is not null) + { + writer.WritePropertyName("downsampling"); + JsonSerializer.Serialize(writer, DownsamplingValue, options); + } + + writer.WriteEndObject(); + } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleDownsampling.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleDownsampling.g.cs new file mode 100644 index 00000000000..237fcb01a1d --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleDownsampling.g.cs @@ -0,0 +1,127 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed partial class DataStreamLifecycleDownsampling +{ + /// + /// The list of downsampling rounds to execute as part of this downsampling configuration + /// + [JsonInclude, JsonPropertyName("rounds")] + public ICollection Rounds { get; set; } +} + +public sealed partial class DataStreamLifecycleDownsamplingDescriptor : SerializableDescriptor +{ + internal DataStreamLifecycleDownsamplingDescriptor(Action configure) => configure.Invoke(this); + + public DataStreamLifecycleDownsamplingDescriptor() : base() + { + } + + private ICollection RoundsValue { get; set; } + private DownsamplingRoundDescriptor RoundsDescriptor { get; set; } + private Action RoundsDescriptorAction { get; set; } + private Action[] RoundsDescriptorActions { get; set; } + + /// + /// The list of downsampling rounds to execute as part of this downsampling configuration + /// + public DataStreamLifecycleDownsamplingDescriptor Rounds(ICollection rounds) + { + RoundsDescriptor = null; + RoundsDescriptorAction = null; + RoundsDescriptorActions = null; + RoundsValue = rounds; + return Self; + } + + public DataStreamLifecycleDownsamplingDescriptor Rounds(DownsamplingRoundDescriptor descriptor) + { + RoundsValue = null; + RoundsDescriptorAction = null; + RoundsDescriptorActions = null; + RoundsDescriptor = descriptor; + return Self; + } + + public DataStreamLifecycleDownsamplingDescriptor Rounds(Action configure) + { + RoundsValue = null; + RoundsDescriptor = null; + RoundsDescriptorActions = null; + RoundsDescriptorAction = configure; + return Self; + } + + public DataStreamLifecycleDownsamplingDescriptor Rounds(params Action[] configure) + { + RoundsValue = null; + RoundsDescriptor = null; + RoundsDescriptorAction = null; + RoundsDescriptorActions = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (RoundsDescriptor is not null) + { + writer.WritePropertyName("rounds"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, RoundsDescriptor, options); + writer.WriteEndArray(); + } + else if (RoundsDescriptorAction is not null) + { + writer.WritePropertyName("rounds"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new DownsamplingRoundDescriptor(RoundsDescriptorAction), options); + writer.WriteEndArray(); + } + else if (RoundsDescriptorActions is not null) + { + writer.WritePropertyName("rounds"); + writer.WriteStartArray(); + foreach (var action in RoundsDescriptorActions) + { + JsonSerializer.Serialize(writer, new DownsamplingRoundDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else + { + writer.WritePropertyName("rounds"); + JsonSerializer.Serialize(writer, RoundsValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataLifecycleExplain.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleExplain.g.cs similarity index 89% rename from src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataLifecycleExplain.g.cs rename to src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleExplain.g.cs index e4a8cf1b4e3..588beec7ffd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataLifecycleExplain.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleExplain.g.cs @@ -27,7 +27,7 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; -public sealed partial class DataLifecycleExplain +public sealed partial class DataStreamLifecycleExplain { [JsonInclude, JsonPropertyName("error")] public string? Error { get; init; } @@ -38,9 +38,9 @@ public sealed partial class DataLifecycleExplain [JsonInclude, JsonPropertyName("index_creation_date_millis")] public long? IndexCreationDateMillis { get; init; } [JsonInclude, JsonPropertyName("lifecycle")] - public Elastic.Clients.Elasticsearch.IndexManagement.DataLifecycleWithRollover? Lifecycle { get; init; } - [JsonInclude, JsonPropertyName("managed_by_dlm")] - public bool ManagedByDlm { get; init; } + public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRollover? Lifecycle { get; init; } + [JsonInclude, JsonPropertyName("managed_by_lifecycle")] + public bool ManagedByLifecycle { get; init; } [JsonInclude, JsonPropertyName("rollover_date_millis")] public long? RolloverDateMillis { get; init; } [JsonInclude, JsonPropertyName("time_since_index_creation")] diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DlmRolloverConditions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleRolloverConditions.g.cs similarity index 97% rename from src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DlmRolloverConditions.g.cs rename to src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleRolloverConditions.g.cs index 6ae7a2cd5c4..41fef444c36 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DlmRolloverConditions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleRolloverConditions.g.cs @@ -27,7 +27,7 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; -public sealed partial class DlmRolloverConditions +public sealed partial class DataStreamLifecycleRolloverConditions { [JsonInclude, JsonPropertyName("max_age")] public string? MaxAge { get; init; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataLifecycleWithRollover.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleWithRollover.g.cs similarity index 83% rename from src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataLifecycleWithRollover.g.cs rename to src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleWithRollover.g.cs index f8ff935a180..c1ad26bb94e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataLifecycleWithRollover.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamLifecycleWithRollover.g.cs @@ -30,7 +30,7 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; /// /// Data lifecycle with rollover can be used to display the configuration including the default rollover conditions,
if asked.
///
-public sealed partial class DataLifecycleWithRollover +public sealed partial class DataStreamLifecycleWithRollover { /// /// If defined, every document added to this data stream will be stored at least for this time frame.
Any time after this duration the document could be deleted.
When empty, every document in this data stream will be stored indefinitely.
@@ -38,9 +38,15 @@ public sealed partial class DataLifecycleWithRollover [JsonInclude, JsonPropertyName("data_retention")] public Elastic.Clients.Elasticsearch.Duration? DataRetention { get; init; } + /// + /// The downsampling configuration to execute for the managed backing index after rollover. + /// + [JsonInclude, JsonPropertyName("downsampling")] + public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleDownsampling? Downsampling { get; init; } + /// /// The conditions which will trigger the rollover of a backing index as configured by the cluster setting `cluster.lifecycle.default.rollover`.
This property is an implementation detail and it will only be retrieved when the query param `include_defaults` is set to true.
The contents of this field are subject to change.
///
[JsonInclude, JsonPropertyName("rollover")] - public Elastic.Clients.Elasticsearch.IndexManagement.DlmRolloverConditions? Rollover { get; init; } + public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleRolloverConditions? Rollover { get; init; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs new file mode 100644 index 00000000000..f1f55abf69b --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataStreamWithLifecycle.g.cs @@ -0,0 +1,36 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed partial class DataStreamWithLifecycle +{ + [JsonInclude, JsonPropertyName("lifecycle")] + public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycle? Lifecycle { get; init; } + [JsonInclude, JsonPropertyName("name")] + public string Name { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataLifecycle.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DownsampleConfig.g.cs similarity index 61% rename from src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataLifecycle.g.cs rename to src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DownsampleConfig.g.cs index 620c05f5e85..d20d3b3f663 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DataLifecycle.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DownsampleConfig.g.cs @@ -27,43 +27,39 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; -/// -/// Data lifecycle denotes that a data stream is managed by DLM and contains the configuration. -/// -public sealed partial class DataLifecycle +public sealed partial class DownsampleConfig { - [JsonInclude, JsonPropertyName("data_retention")] - public Elastic.Clients.Elasticsearch.Duration? DataRetention { get; set; } + /// + /// The interval at which to aggregate the original time series index. + /// + [JsonInclude, JsonPropertyName("fixed_interval")] + public string FixedInterval { get; set; } } -/// -/// Data lifecycle denotes that a data stream is managed by DLM and contains the configuration. -/// -public sealed partial class DataLifecycleDescriptor : SerializableDescriptor +public sealed partial class DownsampleConfigDescriptor : SerializableDescriptor { - internal DataLifecycleDescriptor(Action configure) => configure.Invoke(this); + internal DownsampleConfigDescriptor(Action configure) => configure.Invoke(this); - public DataLifecycleDescriptor() : base() + public DownsampleConfigDescriptor() : base() { } - private Elastic.Clients.Elasticsearch.Duration? DataRetentionValue { get; set; } + private string FixedIntervalValue { get; set; } - public DataLifecycleDescriptor DataRetention(Elastic.Clients.Elasticsearch.Duration? dataRetention) + /// + /// The interval at which to aggregate the original time series index. + /// + public DownsampleConfigDescriptor FixedInterval(string fixedInterval) { - DataRetentionValue = dataRetention; + FixedIntervalValue = fixedInterval; return Self; } protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) { writer.WriteStartObject(); - if (DataRetentionValue is not null) - { - writer.WritePropertyName("data_retention"); - JsonSerializer.Serialize(writer, DataRetentionValue, options); - } - + writer.WritePropertyName("fixed_interval"); + JsonSerializer.Serialize(writer, FixedIntervalValue, options); writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DownsamplingRound.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DownsamplingRound.g.cs new file mode 100644 index 00000000000..2f429938aca --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/DownsamplingRound.g.cs @@ -0,0 +1,117 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.IndexManagement; + +public sealed partial class DownsamplingRound +{ + /// + /// The duration since rollover when this downsampling round should execute + /// + [JsonInclude, JsonPropertyName("after")] + public Elastic.Clients.Elasticsearch.Duration After { get; set; } + + /// + /// The downsample configuration to execute. + /// + [JsonInclude, JsonPropertyName("config")] + public Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig Config { get; set; } +} + +public sealed partial class DownsamplingRoundDescriptor : SerializableDescriptor +{ + internal DownsamplingRoundDescriptor(Action configure) => configure.Invoke(this); + + public DownsamplingRoundDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Duration AfterValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig ConfigValue { get; set; } + private DownsampleConfigDescriptor ConfigDescriptor { get; set; } + private Action ConfigDescriptorAction { get; set; } + + /// + /// The duration since rollover when this downsampling round should execute + /// + public DownsamplingRoundDescriptor After(Elastic.Clients.Elasticsearch.Duration after) + { + AfterValue = after; + return Self; + } + + /// + /// The downsample configuration to execute. + /// + public DownsamplingRoundDescriptor Config(Elastic.Clients.Elasticsearch.IndexManagement.DownsampleConfig config) + { + ConfigDescriptor = null; + ConfigDescriptorAction = null; + ConfigValue = config; + return Self; + } + + public DownsamplingRoundDescriptor Config(DownsampleConfigDescriptor descriptor) + { + ConfigValue = null; + ConfigDescriptorAction = null; + ConfigDescriptor = descriptor; + return Self; + } + + public DownsamplingRoundDescriptor Config(Action configure) + { + ConfigValue = null; + ConfigDescriptor = null; + ConfigDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("after"); + JsonSerializer.Serialize(writer, AfterValue, options); + if (ConfigDescriptor is not null) + { + writer.WritePropertyName("config"); + JsonSerializer.Serialize(writer, ConfigDescriptor, options); + } + else if (ConfigDescriptorAction is not null) + { + writer.WritePropertyName("config"); + JsonSerializer.Serialize(writer, new DownsampleConfigDescriptor(ConfigDescriptorAction), options); + } + else + { + writer.WritePropertyName("config"); + JsonSerializer.Serialize(writer, ConfigValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexState.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexState.g.cs index d7a505e9843..54ef1808ff3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexState.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexState.g.cs @@ -44,7 +44,7 @@ public sealed partial class IndexState /// Data lifecycle applicable if this is a data stream. ///
[JsonInclude, JsonPropertyName("lifecycle")] - public Elastic.Clients.Elasticsearch.IndexManagement.DataLifecycle? Lifecycle { get; set; } + public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycle? Lifecycle { get; set; } [JsonInclude, JsonPropertyName("mappings")] public Elastic.Clients.Elasticsearch.Mapping.TypeMapping? Mappings { get; set; } [JsonInclude, JsonPropertyName("settings")] @@ -70,9 +70,9 @@ public IndexStateDescriptor() : base() private Action> SettingsDescriptorAction { get; set; } private IDictionary? AliasesValue { get; set; } private Elastic.Clients.Elasticsearch.DataStreamName? DataStreamValue { get; set; } - private Elastic.Clients.Elasticsearch.IndexManagement.DataLifecycle? LifecycleValue { get; set; } - private DataLifecycleDescriptor LifecycleDescriptor { get; set; } - private Action LifecycleDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycle? LifecycleValue { get; set; } + private DataStreamLifecycleDescriptor LifecycleDescriptor { get; set; } + private Action LifecycleDescriptorAction { get; set; } /// /// Default settings, included when the request's `include_default` is `true`. @@ -164,7 +164,7 @@ public IndexStateDescriptor DataStream(Elastic.Clients.Elasticsearch. /// /// Data lifecycle applicable if this is a data stream. /// - public IndexStateDescriptor Lifecycle(Elastic.Clients.Elasticsearch.IndexManagement.DataLifecycle? lifecycle) + public IndexStateDescriptor Lifecycle(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycle? lifecycle) { LifecycleDescriptor = null; LifecycleDescriptorAction = null; @@ -172,7 +172,7 @@ public IndexStateDescriptor Lifecycle(Elastic.Clients.Elasticsearch.I return Self; } - public IndexStateDescriptor Lifecycle(DataLifecycleDescriptor descriptor) + public IndexStateDescriptor Lifecycle(DataStreamLifecycleDescriptor descriptor) { LifecycleValue = null; LifecycleDescriptorAction = null; @@ -180,7 +180,7 @@ public IndexStateDescriptor Lifecycle(DataLifecycleDescriptor descrip return Self; } - public IndexStateDescriptor Lifecycle(Action configure) + public IndexStateDescriptor Lifecycle(Action configure) { LifecycleValue = null; LifecycleDescriptor = null; @@ -259,7 +259,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o else if (LifecycleDescriptorAction is not null) { writer.WritePropertyName("lifecycle"); - JsonSerializer.Serialize(writer, new DataLifecycleDescriptor(LifecycleDescriptorAction), options); + JsonSerializer.Serialize(writer, new DataStreamLifecycleDescriptor(LifecycleDescriptorAction), options); } else if (LifecycleValue is not null) { @@ -290,9 +290,9 @@ public IndexStateDescriptor() : base() private Action SettingsDescriptorAction { get; set; } private IDictionary? AliasesValue { get; set; } private Elastic.Clients.Elasticsearch.DataStreamName? DataStreamValue { get; set; } - private Elastic.Clients.Elasticsearch.IndexManagement.DataLifecycle? LifecycleValue { get; set; } - private DataLifecycleDescriptor LifecycleDescriptor { get; set; } - private Action LifecycleDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycle? LifecycleValue { get; set; } + private DataStreamLifecycleDescriptor LifecycleDescriptor { get; set; } + private Action LifecycleDescriptorAction { get; set; } /// /// Default settings, included when the request's `include_default` is `true`. @@ -384,7 +384,7 @@ public IndexStateDescriptor DataStream(Elastic.Clients.Elasticsearch.DataStreamN /// /// Data lifecycle applicable if this is a data stream. /// - public IndexStateDescriptor Lifecycle(Elastic.Clients.Elasticsearch.IndexManagement.DataLifecycle? lifecycle) + public IndexStateDescriptor Lifecycle(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycle? lifecycle) { LifecycleDescriptor = null; LifecycleDescriptorAction = null; @@ -392,7 +392,7 @@ public IndexStateDescriptor Lifecycle(Elastic.Clients.Elasticsearch.IndexManagem return Self; } - public IndexStateDescriptor Lifecycle(DataLifecycleDescriptor descriptor) + public IndexStateDescriptor Lifecycle(DataStreamLifecycleDescriptor descriptor) { LifecycleValue = null; LifecycleDescriptorAction = null; @@ -400,7 +400,7 @@ public IndexStateDescriptor Lifecycle(DataLifecycleDescriptor descriptor) return Self; } - public IndexStateDescriptor Lifecycle(Action configure) + public IndexStateDescriptor Lifecycle(Action configure) { LifecycleValue = null; LifecycleDescriptor = null; @@ -479,7 +479,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o else if (LifecycleDescriptorAction is not null) { writer.WritePropertyName("lifecycle"); - JsonSerializer.Serialize(writer, new DataLifecycleDescriptor(LifecycleDescriptorAction), options); + JsonSerializer.Serialize(writer, new DataStreamLifecycleDescriptor(LifecycleDescriptorAction), options); } else if (LifecycleValue is not null) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateMapping.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateMapping.g.cs index 938aaaf6b26..7eee240ee80 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateMapping.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateMapping.g.cs @@ -35,7 +35,7 @@ public sealed partial class IndexTemplateMapping [JsonInclude, JsonPropertyName("aliases")] public IDictionary? Aliases { get; set; } [JsonInclude, JsonPropertyName("lifecycle")] - public Elastic.Clients.Elasticsearch.IndexManagement.DataLifecycle? Lifecycle { get; set; } + public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycle? Lifecycle { get; set; } /// /// Mapping for fields in the index.
If specified, this mapping can include field names, field data types, and mapping parameters.
@@ -65,9 +65,9 @@ public IndexTemplateMappingDescriptor() : base() private IndexSettingsDescriptor SettingsDescriptor { get; set; } private Action> SettingsDescriptorAction { get; set; } private IDictionary? AliasesValue { get; set; } - private Elastic.Clients.Elasticsearch.IndexManagement.DataLifecycle? LifecycleValue { get; set; } - private DataLifecycleDescriptor LifecycleDescriptor { get; set; } - private Action LifecycleDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycle? LifecycleValue { get; set; } + private DataStreamLifecycleDescriptor LifecycleDescriptor { get; set; } + private Action LifecycleDescriptorAction { get; set; } /// /// Mapping for fields in the index.
If specified, this mapping can include field names, field data types, and mapping parameters.
@@ -132,7 +132,7 @@ public IndexTemplateMappingDescriptor Aliases(Func Lifecycle(Elastic.Clients.Elasticsearch.IndexManagement.DataLifecycle? lifecycle) + public IndexTemplateMappingDescriptor Lifecycle(Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycle? lifecycle) { LifecycleDescriptor = null; LifecycleDescriptorAction = null; @@ -140,7 +140,7 @@ public IndexTemplateMappingDescriptor Lifecycle(Elastic.Clients.Elast return Self; } - public IndexTemplateMappingDescriptor Lifecycle(DataLifecycleDescriptor descriptor) + public IndexTemplateMappingDescriptor Lifecycle(DataStreamLifecycleDescriptor descriptor) { LifecycleValue = null; LifecycleDescriptorAction = null; @@ -148,7 +148,7 @@ public IndexTemplateMappingDescriptor Lifecycle(DataLifecycleDescript return Self; } - public IndexTemplateMappingDescriptor Lifecycle(Action configure) + public IndexTemplateMappingDescriptor Lifecycle(Action configure) { LifecycleValue = null; LifecycleDescriptor = null; @@ -205,7 +205,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o else if (LifecycleDescriptorAction is not null) { writer.WritePropertyName("lifecycle"); - JsonSerializer.Serialize(writer, new DataLifecycleDescriptor(LifecycleDescriptorAction), options); + JsonSerializer.Serialize(writer, new DataStreamLifecycleDescriptor(LifecycleDescriptorAction), options); } else if (LifecycleValue is not null) { @@ -232,9 +232,9 @@ public IndexTemplateMappingDescriptor() : base() private IndexSettingsDescriptor SettingsDescriptor { get; set; } private Action SettingsDescriptorAction { get; set; } private IDictionary? AliasesValue { get; set; } - private Elastic.Clients.Elasticsearch.IndexManagement.DataLifecycle? LifecycleValue { get; set; } - private DataLifecycleDescriptor LifecycleDescriptor { get; set; } - private Action LifecycleDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycle? LifecycleValue { get; set; } + private DataStreamLifecycleDescriptor LifecycleDescriptor { get; set; } + private Action LifecycleDescriptorAction { get; set; } /// /// Mapping for fields in the index.
If specified, this mapping can include field names, field data types, and mapping parameters.
@@ -299,7 +299,7 @@ public IndexTemplateMappingDescriptor Aliases(Func configure) + public IndexTemplateMappingDescriptor Lifecycle(Action configure) { LifecycleValue = null; LifecycleDescriptor = null; @@ -372,7 +372,7 @@ protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions o else if (LifecycleDescriptorAction is not null) { writer.WritePropertyName("lifecycle"); - JsonSerializer.Serialize(writer, new DataLifecycleDescriptor(LifecycleDescriptorAction), options); + JsonSerializer.Serialize(writer, new DataStreamLifecycleDescriptor(LifecycleDescriptorAction), options); } else if (LifecycleValue is not null) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateSummary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateSummary.g.cs index f4e34d3c92a..76101931399 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateSummary.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexTemplateSummary.g.cs @@ -36,7 +36,7 @@ public sealed partial class IndexTemplateSummary [ReadOnlyIndexNameDictionaryConverter(typeof(Elastic.Clients.Elasticsearch.IndexManagement.Alias))] public IReadOnlyDictionary? Aliases { get; init; } [JsonInclude, JsonPropertyName("lifecycle")] - public Elastic.Clients.Elasticsearch.IndexManagement.DataLifecycleWithRollover? Lifecycle { get; init; } + public Elastic.Clients.Elasticsearch.IndexManagement.DataStreamLifecycleWithRollover? Lifecycle { get; init; } /// /// Mapping for fields in the index.
If specified, this mapping can include field names, field data types, and mapping parameters.