From 37262f1d150c877bae524fa2f25d497269d57417 Mon Sep 17 00:00:00 2001 From: Steve Gordon Date: Tue, 11 Apr 2023 13:01:44 +0100 Subject: [PATCH] Add support for additional endpoints (#7607) * Add support for RenderSearchTemplate and SearchTemplate * Add support for TermVectors endpoint * Support generated enrich endpoints * Support generated graph explore endpoint * Support generated MultiTermVectors endpoint * Support additional generated cluster endpoints * Support list dangling indices endpoint --- .../_Generated/Api/ApiUrlLookup.g.cs | 15 + .../Api/Cluster/AllocationExplainRequest.g.cs | 183 ++++++ .../Cluster/AllocationExplainResponse.g.cs | 80 +++ .../Api/Cluster/ClusterStatsRequest.g.cs | 106 ++++ .../Api/Cluster/ClusterStatsResponse.g.cs | 67 +++ .../Cluster/GetClusterSettingsRequest.g.cs | 116 ++++ .../Cluster/GetClusterSettingsResponse.g.cs | 36 ++ .../Api/Cluster/PendingTasksRequest.g.cs | 92 +++ .../Api/Cluster/PendingTasksResponse.g.cs | 32 + .../ListDanglingIndicesRequest.g.cs | 68 +++ .../ListDanglingIndicesResponse.g.cs | 32 + .../Api/Enrich/DeletePolicyRequest.g.cs | 82 +++ .../Api/Enrich/DeletePolicyResponse.g.cs | 35 ++ .../Api/Enrich/EnrichStatsRequest.g.cs | 68 +++ .../Api/Enrich/EnrichStatsResponse.g.cs | 36 ++ .../Api/Enrich/ExecutePolicyRequest.g.cs | 94 +++ .../Api/Enrich/ExecutePolicyResponse.g.cs | 34 ++ .../Api/Enrich/GetPolicyRequest.g.cs | 82 +++ .../Api/Enrich/GetPolicyResponse.g.cs | 32 + .../Api/Enrich/PutPolicyRequest.g.cs | 385 ++++++++++++ .../Api/Enrich/PutPolicyResponse.g.cs | 35 ++ .../_Generated/Api/Graph/ExploreRequest.g.cs | 555 +++++++++++++++++ .../_Generated/Api/Graph/ExploreResponse.g.cs | 40 ++ .../Api/MultiTermVectorsRequest.g.cs | 432 ++++++++++++++ .../Api/MultiTermVectorsResponse.g.cs | 32 + .../Api/RenderSearchTemplateRequest.g.cs | 201 +++++++ .../Api/RenderSearchTemplateResponse.g.cs | 32 + .../_Generated/Api/SearchTemplateRequest.g.cs | 420 +++++++++++++ .../Api/SearchTemplateResponse.g.cs | 56 ++ .../_Generated/Api/TermVectorsRequest.g.cs | 319 ++++++++++ .../_Generated/Api/TermVectorsResponse.g.cs | 43 ++ .../ElasticsearchClient.AsyncSearch.g.cs | 80 +-- .../Client/ElasticsearchClient.Cluster.g.cs | 368 +++++++++++- .../ElasticsearchClient.DanglingIndices.g.cs | 124 ++++ .../Client/ElasticsearchClient.Enrich.g.cs | 490 +++++++++++++++ .../Client/ElasticsearchClient.Graph.g.cs | 168 ++++++ .../Client/ElasticsearchClient.Tasks.g.cs | 48 +- .../Client/ElasticsearchClient.g.cs | 562 ++++++++++++++++-- .../Types/Cluster/AllocationDecision.g.cs | 38 ++ .../Types/Cluster/AllocationStore.g.cs | 44 ++ .../Types/Cluster/CharFilterTypes.g.cs | 46 ++ .../Types/Cluster/ClusterFileSystem.g.cs | 38 ++ .../Types/Cluster/ClusterIndices.g.cs | 93 +++ .../Types/Cluster/ClusterIndicesShards.g.cs | 58 ++ .../Cluster/ClusterIndicesShardsIndex.g.cs | 49 ++ .../_Generated/Types/Cluster/ClusterInfo.g.cs | 42 ++ .../Types/Cluster/ClusterIngest.g.cs | 36 ++ .../_Generated/Types/Cluster/ClusterJvm.g.cs | 40 ++ .../Types/Cluster/ClusterJvmMemory.g.cs | 36 ++ .../Types/Cluster/ClusterJvmVersion.g.cs | 46 ++ .../Types/Cluster/ClusterNetworkTypes.g.cs | 36 ++ .../Types/Cluster/ClusterNodeCount.g.cs | 60 ++ .../Types/Cluster/ClusterNodes.g.cs | 95 +++ .../Types/Cluster/ClusterOperatingSystem.g.cs | 44 ++ .../ClusterOperatingSystemArchitecture.g.cs | 36 ++ .../Cluster/ClusterOperatingSystemName.g.cs | 36 ++ .../ClusterOperatingSystemPrettyName.g.cs | 36 ++ .../Types/Cluster/ClusterProcess.g.cs | 36 ++ .../Types/Cluster/ClusterProcessCpu.g.cs | 34 ++ .../ClusterProcessOpenFileDescriptors.g.cs | 38 ++ .../Types/Cluster/ClusterProcessor.g.cs | 42 ++ .../Types/Cluster/ClusterShardMetrics.g.cs | 38 ++ .../_Generated/Types/Cluster/CurrentNode.g.cs | 42 ++ .../_Generated/Types/Cluster/DiskUsage.g.cs | 44 ++ .../_Generated/Types/Cluster/FieldTypes.g.cs | 46 ++ .../Types/Cluster/FieldTypesMappings.g.cs | 44 ++ .../Types/Cluster/IndexingPressure.g.cs | 34 ++ .../Types/Cluster/IndexingPressureMemory.g.cs | 38 ++ .../IndexingPressureMemorySummary.g.cs | 48 ++ .../Types/Cluster/IndicesVersions.g.cs | 40 ++ .../Cluster/NodeAllocationExplanation.g.cs | 48 ++ .../Types/Cluster/NodeDiskUsage.g.cs | 38 ++ .../Types/Cluster/NodePackagingType.g.cs | 38 ++ .../Cluster/OperatingSystemMemoryInfo.g.cs | 44 ++ .../_Generated/Types/Cluster/PendingTask.g.cs | 44 ++ .../Types/Cluster/ReservedSize.g.cs | 40 ++ .../Types/Cluster/RuntimeFieldTypes.g.cs | 60 ++ .../MultiTermVectorsOperation.g.cs | 480 +++++++++++++++ .../Mtermvectors/MultiTermVectorsResult.g.cs | 47 ++ .../Core/TermVectors/FieldStatistics.g.cs | 38 ++ .../Types/Core/TermVectors/Filter.g.cs | 153 +++++ .../Types/Core/TermVectors/Term.g.cs | 42 ++ .../Types/Core/TermVectors/TermVector.g.cs | 36 ++ .../Types/Core/TermVectors/Token.g.cs | 40 ++ .../Types/DanglingIndices/DanglingIndex.g.cs | 40 ++ .../_Generated/Types/Enrich/CacheStats.g.cs | 42 ++ .../Types/Enrich/CoordinatorStats.g.cs | 42 ++ .../_Generated/Types/Enrich/EnrichPolicy.g.cs | 226 +++++++ .../Types/Enrich/EnrichSummary.g.cs | 34 ++ .../Enrich/ExecuteEnrichPolicyStatus.g.cs | 34 ++ .../Types/Enrich/ExecutingPolicy.g.cs | 36 ++ .../_Generated/Types/Enums/Enums.Cluster.g.cs | 138 +++++ .../_Generated/Types/Enums/Enums.Enrich.g.cs | 130 ++++ .../_Generated/Types/Graph/Connection.g.cs | 40 ++ .../Types/Graph/ExploreControls.g.cs | 228 +++++++ .../_Generated/Types/Graph/Hop.g.cs | 384 ++++++++++++ .../Types/Graph/SampleDiversity.g.cs | 122 ++++ .../_Generated/Types/Graph/Vertex.g.cs | 40 ++ .../Types/Graph/VertexDefinition.g.cs | 358 +++++++++++ .../_Generated/Types/Graph/VertexInclude.g.cs | 70 +++ .../_Generated/Types/NodeStatistics.g.cs | 54 ++ .../_Generated/Types/PluginStats.g.cs | 50 ++ 102 files changed, 10214 insertions(+), 115 deletions(-) create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetClusterSettingsRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetClusterSettingsResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PendingTasksRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PendingTasksResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/ListDanglingIndicesRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/ListDanglingIndicesResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/DeletePolicyRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/DeletePolicyResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/GetPolicyRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/GetPolicyResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/PutPolicyRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/PutPolicyResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsResponse.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.DanglingIndices.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Enrich.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/AllocationDecision.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/AllocationStore.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CharFilterTypes.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterFileSystem.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndices.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndicesShards.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndicesShardsIndex.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterInfo.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIngest.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvm.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvmMemory.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvmVersion.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNetworkTypes.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNodeCount.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNodes.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystem.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemArchitecture.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemName.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemPrettyName.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcess.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessCpu.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessOpenFileDescriptors.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessor.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterShardMetrics.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CurrentNode.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/DiskUsage.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/FieldTypes.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/FieldTypesMappings.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexingPressure.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexingPressureMemory.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexingPressureMemorySummary.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndicesVersions.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodeAllocationExplanation.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodeDiskUsage.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodePackagingType.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/OperatingSystemMemoryInfo.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/PendingTask.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ReservedSize.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RuntimeFieldTypes.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Mtermvectors/MultiTermVectorsOperation.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Mtermvectors/MultiTermVectorsResult.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/FieldStatistics.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Filter.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Term.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/TermVector.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Token.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/DanglingIndices/DanglingIndex.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/CacheStats.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/CoordinatorStats.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/EnrichPolicy.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/EnrichSummary.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/ExecuteEnrichPolicyStatus.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/ExecutingPolicy.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Enrich.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Connection.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/ExploreControls.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Hop.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/SampleDiversity.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Vertex.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/VertexDefinition.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/VertexInclude.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/NodeStatistics.g.cs create mode 100644 src/Elastic.Clients.Elasticsearch/_Generated/Types/PluginStats.g.cs diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs index 259cf062157..42f13b4e636 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlLookup.g.cs @@ -28,13 +28,23 @@ internal static class ApiUrlLookup internal static ApiUrls NoNamespaceBulk = new ApiUrls(new[] { "/_bulk", "/{index}/_bulk" }); internal static ApiUrls NoNamespaceClearScroll = new ApiUrls(new[] { "/_search/scroll" }); internal static ApiUrls NoNamespaceClosePointInTime = new ApiUrls(new[] { "/_pit" }); + internal static ApiUrls ClusterAllocationExplain = new ApiUrls(new[] { "/_cluster/allocation/explain" }); + internal static ApiUrls ClusterStats = new ApiUrls(new[] { "/_cluster/stats", "/_cluster/stats/nodes/{node_id}" }); + internal static ApiUrls ClusterGetSettings = new ApiUrls(new[] { "/_cluster/settings" }); internal static ApiUrls ClusterHealth = new ApiUrls(new[] { "/_cluster/health", "/_cluster/health/{index}" }); + internal static ApiUrls ClusterPendingTasks = new ApiUrls(new[] { "/_cluster/pending_tasks" }); internal static ApiUrls NoNamespaceCount = new ApiUrls(new[] { "/_count", "/{index}/_count" }); internal static ApiUrls NoNamespaceCreate = new ApiUrls(new[] { "/{index}/_create/{id}" }); + internal static ApiUrls DanglingIndicesListDanglingIndices = new ApiUrls(new[] { "/_dangling" }); 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}" }); + internal static ApiUrls EnrichStats = new ApiUrls(new[] { "/_enrich/_stats" }); + 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" }); @@ -48,6 +58,7 @@ internal static class ApiUrlLookup internal static ApiUrls NoNamespaceGetScriptLanguages = new ApiUrls(new[] { "/_script_language" }); internal static ApiUrls NoNamespaceGetScript = new ApiUrls(new[] { "/_scripts/{id}" }); internal static ApiUrls NoNamespaceGetSource = new ApiUrls(new[] { "/{index}/_source/{id}" }); + internal static ApiUrls GraphExplore = new ApiUrls(new[] { "/{index}/_graph/explore" }); internal static ApiUrls IndexManagementClone = new ApiUrls(new[] { "/{index}/_clone/{target}" }); internal static ApiUrls IndexManagementClose = new ApiUrls(new[] { "/{index}/_close" }); internal static ApiUrls IndexManagementCreateDataStream = new ApiUrls(new[] { "/_data_stream/{name}" }); @@ -95,15 +106,18 @@ internal static class ApiUrlLookup internal static ApiUrls NoNamespaceMget = new ApiUrls(new[] { "/_mget", "/{index}/_mget" }); internal static ApiUrls NoNamespaceMsearch = new ApiUrls(new[] { "/_msearch", "/{index}/_msearch" }); internal static ApiUrls NoNamespaceMsearchTemplate = new ApiUrls(new[] { "/_msearch/template", "/{index}/_msearch/template" }); + internal static ApiUrls NoNamespaceMtermvectors = new ApiUrls(new[] { "/_mtermvectors", "/{index}/_mtermvectors" }); internal static ApiUrls NoNamespaceOpenPointInTime = new ApiUrls(new[] { "/{index}/_pit" }); 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 NoNamespaceSearchShards = new ApiUrls(new[] { "/_search_shards", "/{index}/_search_shards" }); + 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}" }); @@ -113,6 +127,7 @@ internal static class ApiUrlLookup 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}" }); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainRequest.g.cs new file mode 100644 index 00000000000..a39376c01ea --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainRequest.g.cs @@ -0,0 +1,183 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Cluster; + +public sealed class AllocationExplainRequestParameters : RequestParameters +{ + /// + /// If true, returns information about disk usage and shard sizes. + /// + public bool? IncludeDiskInfo { get => Q("include_disk_info"); set => Q("include_disk_info", value); } + + /// + /// If true, returns YES decisions in explanation. + /// + public bool? IncludeYesDecisions { get => Q("include_yes_decisions"); set => Q("include_yes_decisions", value); } +} + +/// +/// Provides explanations for shard allocations in the cluster. +/// +public sealed partial class AllocationExplainRequest : PlainRequest +{ + internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterAllocationExplain; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + /// + /// If true, returns information about disk usage and shard sizes. + /// + [JsonIgnore] + public bool? IncludeDiskInfo { get => Q("include_disk_info"); set => Q("include_disk_info", value); } + + /// + /// If true, returns YES decisions in explanation. + /// + [JsonIgnore] + public bool? IncludeYesDecisions { get => Q("include_yes_decisions"); set => Q("include_yes_decisions", value); } + + /// + /// Specifies the node ID or the name of the node to only explain a shard that is currently located on the specified node. + /// + [JsonInclude, JsonPropertyName("current_node")] + public string? CurrentNode { get; set; } + + /// + /// Specifies the name of the index that you would like an explanation for. + /// + [JsonInclude, JsonPropertyName("index")] + public Elastic.Clients.Elasticsearch.IndexName? Index { get; set; } + + /// + /// If true, returns explanation for the primary shard for the given shard ID. + /// + [JsonInclude, JsonPropertyName("primary")] + public bool? Primary { get; set; } + + /// + /// Specifies the ID of the shard that you would like an explanation for. + /// + [JsonInclude, JsonPropertyName("shard")] + public int? Shard { get; set; } +} + +/// +/// Provides explanations for shard allocations in the cluster. +/// +public sealed partial class AllocationExplainRequestDescriptor : RequestDescriptor +{ + internal AllocationExplainRequestDescriptor(Action configure) => configure.Invoke(this); + + public AllocationExplainRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterAllocationExplain; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + public AllocationExplainRequestDescriptor IncludeDiskInfo(bool? includeDiskInfo = true) => Qs("include_disk_info", includeDiskInfo); + public AllocationExplainRequestDescriptor IncludeYesDecisions(bool? includeYesDecisions = true) => Qs("include_yes_decisions", includeYesDecisions); + + private string? CurrentNodeValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexName? IndexValue { get; set; } + private bool? PrimaryValue { get; set; } + private int? ShardValue { get; set; } + + /// + /// Specifies the node ID or the name of the node to only explain a shard that is currently located on the specified node. + /// + public AllocationExplainRequestDescriptor CurrentNode(string? currentNode) + { + CurrentNodeValue = currentNode; + return Self; + } + + /// + /// Specifies the name of the index that you would like an explanation for. + /// + public AllocationExplainRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName? index) + { + IndexValue = index; + return Self; + } + + /// + /// If true, returns explanation for the primary shard for the given shard ID. + /// + public AllocationExplainRequestDescriptor Primary(bool? primary = true) + { + PrimaryValue = primary; + return Self; + } + + /// + /// Specifies the ID of the shard that you would like an explanation for. + /// + public AllocationExplainRequestDescriptor Shard(int? shard) + { + ShardValue = shard; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(CurrentNodeValue)) + { + writer.WritePropertyName("current_node"); + writer.WriteStringValue(CurrentNodeValue); + } + + if (IndexValue is not null) + { + writer.WritePropertyName("index"); + JsonSerializer.Serialize(writer, IndexValue, options); + } + + if (PrimaryValue.HasValue) + { + writer.WritePropertyName("primary"); + writer.WriteBooleanValue(PrimaryValue.Value); + } + + if (ShardValue.HasValue) + { + writer.WritePropertyName("shard"); + writer.WriteNumberValue(ShardValue.Value); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainResponse.g.cs new file mode 100644 index 00000000000..e3447a5c421 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/AllocationExplainResponse.g.cs @@ -0,0 +1,80 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Cluster; + +public sealed partial class AllocationExplainResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("allocate_explanation")] + public string? AllocateExplanation { get; init; } + [JsonInclude, JsonPropertyName("allocation_delay")] + public Elastic.Clients.Elasticsearch.Duration? AllocationDelay { get; init; } + [JsonInclude, JsonPropertyName("allocation_delay_in_millis")] + public long? AllocationDelayInMillis { get; init; } + [JsonInclude, JsonPropertyName("can_allocate")] + public Elastic.Clients.Elasticsearch.Cluster.Decision? CanAllocate { get; init; } + [JsonInclude, JsonPropertyName("can_move_to_other_node")] + public Elastic.Clients.Elasticsearch.Cluster.Decision? CanMoveToOtherNode { get; init; } + [JsonInclude, JsonPropertyName("can_rebalance_cluster")] + public Elastic.Clients.Elasticsearch.Cluster.Decision? CanRebalanceCluster { get; init; } + [JsonInclude, JsonPropertyName("can_rebalance_cluster_decisions")] + public IReadOnlyCollection? CanRebalanceClusterDecisions { get; init; } + [JsonInclude, JsonPropertyName("can_rebalance_to_other_node")] + public Elastic.Clients.Elasticsearch.Cluster.Decision? CanRebalanceToOtherNode { get; init; } + [JsonInclude, JsonPropertyName("can_remain_decisions")] + public IReadOnlyCollection? CanRemainDecisions { get; init; } + [JsonInclude, JsonPropertyName("can_remain_on_current_node")] + public Elastic.Clients.Elasticsearch.Cluster.Decision? CanRemainOnCurrentNode { get; init; } + [JsonInclude, JsonPropertyName("cluster_info")] + public Elastic.Clients.Elasticsearch.Cluster.ClusterInfo? ClusterInfo { get; init; } + [JsonInclude, JsonPropertyName("configured_delay")] + public Elastic.Clients.Elasticsearch.Duration? ConfiguredDelay { get; init; } + [JsonInclude, JsonPropertyName("configured_delay_in_millis")] + public long? ConfiguredDelayInMillis { get; init; } + [JsonInclude, JsonPropertyName("current_node")] + public Elastic.Clients.Elasticsearch.Cluster.CurrentNode? CurrentNode { get; init; } + [JsonInclude, JsonPropertyName("current_state")] + public string CurrentState { get; init; } + [JsonInclude, JsonPropertyName("index")] + public string Index { get; init; } + [JsonInclude, JsonPropertyName("move_explanation")] + public string? MoveExplanation { get; init; } + [JsonInclude, JsonPropertyName("node_allocation_decisions")] + public IReadOnlyCollection? NodeAllocationDecisions { get; init; } + [JsonInclude, JsonPropertyName("note")] + public string? Note { get; init; } + [JsonInclude, JsonPropertyName("primary")] + public bool Primary { get; init; } + [JsonInclude, JsonPropertyName("rebalance_explanation")] + public string? RebalanceExplanation { get; init; } + [JsonInclude, JsonPropertyName("remaining_delay")] + public Elastic.Clients.Elasticsearch.Duration? RemainingDelay { get; init; } + [JsonInclude, JsonPropertyName("remaining_delay_in_millis")] + public long? RemainingDelayInMillis { get; init; } + [JsonInclude, JsonPropertyName("shard")] + public int Shard { get; init; } + [JsonInclude, JsonPropertyName("unassigned_info")] + public Elastic.Clients.Elasticsearch.Cluster.UnassignedInformation? UnassignedInfo { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsRequest.g.cs new file mode 100644 index 00000000000..18ebd7dd97d --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsRequest.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Cluster; + +public sealed class ClusterStatsRequestParameters : RequestParameters +{ + /// + /// Return settings in flat format (default: false) + /// + public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } + + /// + /// Period to wait for each node to respond. If a node does not respond before its timeout expires, the response does not include its stats. However, timed out nodes are included in the response’s _nodes.failed property. Defaults to no timeout. + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } +} + +/// +/// Returns high-level overview of cluster statistics. +/// +public sealed partial class ClusterStatsRequest : PlainRequest +{ + public ClusterStatsRequest() + { + } + + public ClusterStatsRequest(Elastic.Clients.Elasticsearch.NodeIds? node_id) : base(r => r.Optional("node_id", node_id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterStats; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + /// + /// Return settings in flat format (default: false) + /// + [JsonIgnore] + public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } + + /// + /// Period to wait for each node to respond. If a node does not respond before its timeout expires, the response does not include its stats. However, timed out nodes are included in the response’s _nodes.failed property. Defaults to no timeout. + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } +} + +/// +/// Returns high-level overview of cluster statistics. +/// +public sealed partial class ClusterStatsRequestDescriptor : RequestDescriptor +{ + internal ClusterStatsRequestDescriptor(Action configure) => configure.Invoke(this); + + public ClusterStatsRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterStats; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + public ClusterStatsRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); + public ClusterStatsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + + public ClusterStatsRequestDescriptor NodeId(Elastic.Clients.Elasticsearch.NodeIds? node_id) + { + RouteValues.Optional("node_id", node_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/_Generated/Api/Cluster/ClusterStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsResponse.g.cs new file mode 100644 index 00000000000..84789344bcc --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterStatsResponse.g.cs @@ -0,0 +1,67 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Cluster; + +public sealed partial class ClusterStatsResponse : ElasticsearchResponse +{ + /// + /// Name of the cluster, based on the Cluster name setting setting. + /// + [JsonInclude, JsonPropertyName("cluster_name")] + public string ClusterName { get; init; } + + /// + /// Unique identifier for the cluster. + /// + [JsonInclude, JsonPropertyName("cluster_uuid")] + public string ClusterUuid { get; init; } + + /// + /// Contains statistics about indices with shards assigned to selected nodes. + /// + [JsonInclude, JsonPropertyName("indices")] + public Elastic.Clients.Elasticsearch.Cluster.ClusterIndices Indices { get; init; } + + /// + /// Contains statistics about nodes selected by the request’s node filters. + /// + [JsonInclude, JsonPropertyName("nodes")] + public Elastic.Clients.Elasticsearch.Cluster.ClusterNodes Nodes { get; init; } + [JsonInclude, JsonPropertyName("_nodes")] + public Elastic.Clients.Elasticsearch.NodeStatistics? NodeStats { get; init; } + + /// + /// Health status of the cluster, based on the state of its primary and replica shards. + /// + [JsonInclude, JsonPropertyName("status")] + public Elastic.Clients.Elasticsearch.HealthStatus Status { get; init; } + + /// + /// Unix timestamp, in milliseconds, of the last time the cluster statistics were refreshed. + /// + [JsonInclude, JsonPropertyName("timestamp")] + public long Timestamp { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetClusterSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetClusterSettingsRequest.g.cs new file mode 100644 index 00000000000..a6fc30853a1 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetClusterSettingsRequest.g.cs @@ -0,0 +1,116 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Cluster; + +public sealed class GetClusterSettingsRequestParameters : RequestParameters +{ + /// + /// Return settings in flat format (default: false) + /// + public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } + + /// + /// Whether to return all default clusters setting. + /// + public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } + + /// + /// Explicit operation timeout for connection to master node + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// Explicit operation timeout + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } +} + +/// +/// Returns cluster settings. +/// +public sealed partial class GetClusterSettingsRequest : PlainRequest +{ + internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterGetSettings; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + /// + /// Return settings in flat format (default: false) + /// + [JsonIgnore] + public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } + + /// + /// Whether to return all default clusters setting. + /// + [JsonIgnore] + public bool? IncludeDefaults { get => Q("include_defaults"); set => Q("include_defaults", value); } + + /// + /// Explicit operation timeout for connection to master node + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } + + /// + /// Explicit operation timeout + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } +} + +/// +/// Returns cluster settings. +/// +public sealed partial class GetClusterSettingsRequestDescriptor : RequestDescriptor +{ + internal GetClusterSettingsRequestDescriptor(Action configure) => configure.Invoke(this); + + public GetClusterSettingsRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterGetSettings; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + public GetClusterSettingsRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); + public GetClusterSettingsRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); + public GetClusterSettingsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + public GetClusterSettingsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetClusterSettingsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetClusterSettingsResponse.g.cs new file mode 100644 index 00000000000..85288a8ed06 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/GetClusterSettingsResponse.g.cs @@ -0,0 +1,36 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Cluster; + +public sealed partial class GetClusterSettingsResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("defaults")] + public IReadOnlyDictionary? Defaults { get; init; } + [JsonInclude, JsonPropertyName("persistent")] + public IReadOnlyDictionary Persistent { get; init; } + [JsonInclude, JsonPropertyName("transient")] + public IReadOnlyDictionary Transient { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PendingTasksRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PendingTasksRequest.g.cs new file mode 100644 index 00000000000..38d8634049c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PendingTasksRequest.g.cs @@ -0,0 +1,92 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Cluster; + +public sealed class PendingTasksRequestParameters : RequestParameters +{ + /// + /// Return local information, do not retrieve the state from master node (default: false) + /// + public bool? Local { get => Q("local"); set => Q("local", value); } + + /// + /// Specify timeout for connection to master + /// + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } +} + +/// +/// Returns a list of any cluster-level changes (e.g. create index, update mapping,
allocate or fail shard) which have not yet been executed.
+///
+public sealed partial class PendingTasksRequest : PlainRequest +{ + internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterPendingTasks; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + /// + /// Return local information, do not retrieve the state from master node (default: false) + /// + [JsonIgnore] + public bool? Local { get => Q("local"); set => Q("local", value); } + + /// + /// Specify timeout for connection to master + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } +} + +/// +/// Returns a list of any cluster-level changes (e.g. create index, update mapping,
allocate or fail shard) which have not yet been executed.
+///
+public sealed partial class PendingTasksRequestDescriptor : RequestDescriptor +{ + internal PendingTasksRequestDescriptor(Action configure) => configure.Invoke(this); + + public PendingTasksRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.ClusterPendingTasks; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + public PendingTasksRequestDescriptor Local(bool? local = true) => Qs("local", local); + public PendingTasksRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PendingTasksResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PendingTasksResponse.g.cs new file mode 100644 index 00000000000..6dc438ee074 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/PendingTasksResponse.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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Cluster; + +public sealed partial class PendingTasksResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("tasks")] + public IReadOnlyCollection Tasks { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/ListDanglingIndicesRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/ListDanglingIndicesRequest.g.cs new file mode 100644 index 00000000000..c4f17496111 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/ListDanglingIndicesRequest.g.cs @@ -0,0 +1,68 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.DanglingIndices; + +public sealed class ListDanglingIndicesRequestParameters : RequestParameters +{ +} + +/// +/// Returns all dangling indices. +/// +public sealed partial class ListDanglingIndicesRequest : PlainRequest +{ + internal override ApiUrls ApiUrls => ApiUrlLookup.DanglingIndicesListDanglingIndices; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; +} + +/// +/// Returns all dangling indices. +/// +public sealed partial class ListDanglingIndicesRequestDescriptor : RequestDescriptor +{ + internal ListDanglingIndicesRequestDescriptor(Action configure) => configure.Invoke(this); + + public ListDanglingIndicesRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.DanglingIndicesListDanglingIndices; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/ListDanglingIndicesResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/ListDanglingIndicesResponse.g.cs new file mode 100644 index 00000000000..f961eabd340 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DanglingIndices/ListDanglingIndicesResponse.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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.DanglingIndices; + +public sealed partial class ListDanglingIndicesResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("dangling_indices")] + public IReadOnlyCollection DanglingIndices { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/DeletePolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/DeletePolicyRequest.g.cs new file mode 100644 index 00000000000..69924cb663a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/DeletePolicyRequest.g.cs @@ -0,0 +1,82 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Enrich; + +public sealed class DeletePolicyRequestParameters : RequestParameters +{ +} + +/// +/// Deletes an existing enrich policy and its enrich index. +/// +public sealed partial class DeletePolicyRequest : PlainRequest +{ + public DeletePolicyRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EnrichDeletePolicy; + + protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; + + internal override bool SupportsBody => false; +} + +/// +/// Deletes an existing enrich policy and its enrich index. +/// +public sealed partial class DeletePolicyRequestDescriptor : RequestDescriptor +{ + internal DeletePolicyRequestDescriptor(Action configure) => configure.Invoke(this); + + public DeletePolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) + { + } + + internal DeletePolicyRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EnrichDeletePolicy; + + protected override HttpMethod StaticHttpMethod => HttpMethod.DELETE; + + internal override bool SupportsBody => false; + + public DeletePolicyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) + { + RouteValues.Required("name", name); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/DeletePolicyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/DeletePolicyResponse.g.cs new file mode 100644 index 00000000000..ae3a5864288 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/DeletePolicyResponse.g.cs @@ -0,0 +1,35 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Enrich; + +public sealed partial class DeletePolicyResponse : ElasticsearchResponse +{ + /// + /// For a successful response, this value is always true. On failure, an exception is returned instead. + /// + [JsonInclude, JsonPropertyName("acknowledged")] + public bool Acknowledged { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsRequest.g.cs new file mode 100644 index 00000000000..08ca244e71a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsRequest.g.cs @@ -0,0 +1,68 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Enrich; + +public sealed class EnrichStatsRequestParameters : RequestParameters +{ +} + +/// +/// Gets enrich coordinator statistics and information about enrich policies that are currently executing. +/// +public sealed partial class EnrichStatsRequest : PlainRequest +{ + internal override ApiUrls ApiUrls => ApiUrlLookup.EnrichStats; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; +} + +/// +/// Gets enrich coordinator statistics and information about enrich policies that are currently executing. +/// +public sealed partial class EnrichStatsRequestDescriptor : RequestDescriptor +{ + internal EnrichStatsRequestDescriptor(Action configure) => configure.Invoke(this); + + public EnrichStatsRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EnrichStats; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsResponse.g.cs new file mode 100644 index 00000000000..77a52178f81 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/EnrichStatsResponse.g.cs @@ -0,0 +1,36 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Enrich; + +public sealed partial class EnrichStatsResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("cache_stats")] + public IReadOnlyCollection? CacheStats { get; init; } + [JsonInclude, JsonPropertyName("coordinator_stats")] + public IReadOnlyCollection CoordinatorStats { get; init; } + [JsonInclude, JsonPropertyName("executing_policies")] + public IReadOnlyCollection ExecutingPolicies { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs new file mode 100644 index 00000000000..582cbc2ef9f --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyRequest.g.cs @@ -0,0 +1,94 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Enrich; + +public sealed class ExecutePolicyRequestParameters : RequestParameters +{ + /// + /// Should the request should block until the execution is complete. + /// + public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } +} + +/// +/// Creates the enrich index for an existing enrich policy. +/// +public sealed partial class ExecutePolicyRequest : PlainRequest +{ + public ExecutePolicyRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EnrichExecutePolicy; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => false; + + /// + /// Should the request should block until the execution is complete. + /// + [JsonIgnore] + public bool? WaitForCompletion { get => Q("wait_for_completion"); set => Q("wait_for_completion", value); } +} + +/// +/// Creates the enrich index for an existing enrich policy. +/// +public sealed partial class ExecutePolicyRequestDescriptor : RequestDescriptor +{ + internal ExecutePolicyRequestDescriptor(Action configure) => configure.Invoke(this); + + public ExecutePolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) + { + } + + internal ExecutePolicyRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EnrichExecutePolicy; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => false; + + public ExecutePolicyRequestDescriptor WaitForCompletion(bool? waitForCompletion = true) => Qs("wait_for_completion", waitForCompletion); + + public ExecutePolicyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) + { + RouteValues.Required("name", name); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyResponse.g.cs new file mode 100644 index 00000000000..f6300228727 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/ExecutePolicyResponse.g.cs @@ -0,0 +1,34 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Enrich; + +public sealed partial class ExecutePolicyResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("status")] + public Elastic.Clients.Elasticsearch.Enrich.ExecuteEnrichPolicyStatus Status { get; init; } + [JsonInclude, JsonPropertyName("task_id")] + public Elastic.Clients.Elasticsearch.TaskId? TaskId { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/GetPolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/GetPolicyRequest.g.cs new file mode 100644 index 00000000000..d196b9e4761 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/GetPolicyRequest.g.cs @@ -0,0 +1,82 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Enrich; + +public sealed class GetPolicyRequestParameters : RequestParameters +{ +} + +/// +/// Gets information about an enrich policy. +/// +public sealed partial class GetPolicyRequest : PlainRequest +{ + public GetPolicyRequest() + { + } + + public GetPolicyRequest(Elastic.Clients.Elasticsearch.Names? name) : base(r => r.Optional("name", name)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EnrichGetPolicy; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; +} + +/// +/// Gets information about an enrich policy. +/// +public sealed partial class GetPolicyRequestDescriptor : RequestDescriptor +{ + internal GetPolicyRequestDescriptor(Action configure) => configure.Invoke(this); + + public GetPolicyRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EnrichGetPolicy; + + protected override HttpMethod StaticHttpMethod => HttpMethod.GET; + + internal override bool SupportsBody => false; + + public GetPolicyRequestDescriptor Name(Elastic.Clients.Elasticsearch.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/_Generated/Api/Enrich/GetPolicyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/GetPolicyResponse.g.cs new file mode 100644 index 00000000000..f829ce8e150 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/GetPolicyResponse.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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Enrich; + +public sealed partial class GetPolicyResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("policies")] + public IReadOnlyCollection Policies { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/PutPolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/PutPolicyRequest.g.cs new file mode 100644 index 00000000000..ac7fee98ac6 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/PutPolicyRequest.g.cs @@ -0,0 +1,385 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Enrich; + +public sealed class PutPolicyRequestParameters : RequestParameters +{ +} + +/// +/// Creates a new enrich policy. +/// +public sealed partial class PutPolicyRequest : PlainRequest +{ + public PutPolicyRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EnrichPutPolicy; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + [JsonInclude, JsonPropertyName("geo_match")] + public Elastic.Clients.Elasticsearch.Enrich.EnrichPolicy? GeoMatch { get; set; } + [JsonInclude, JsonPropertyName("match")] + public Elastic.Clients.Elasticsearch.Enrich.EnrichPolicy? Match { get; set; } + [JsonInclude, JsonPropertyName("range")] + public Elastic.Clients.Elasticsearch.Enrich.EnrichPolicy? Range { get; set; } +} + +/// +/// Creates a new enrich policy. +/// +public sealed partial class PutPolicyRequestDescriptor : RequestDescriptor, PutPolicyRequestParameters> +{ + internal PutPolicyRequestDescriptor(Action> configure) => configure.Invoke(this); + + public PutPolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) + { + } + + internal PutPolicyRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EnrichPutPolicy; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + public PutPolicyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) + { + RouteValues.Required("name", name); + return Self; + } + + private Elastic.Clients.Elasticsearch.Enrich.EnrichPolicy? GeoMatchValue { get; set; } + private EnrichPolicyDescriptor GeoMatchDescriptor { get; set; } + private Action> GeoMatchDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Enrich.EnrichPolicy? MatchValue { get; set; } + private EnrichPolicyDescriptor MatchDescriptor { get; set; } + private Action> MatchDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Enrich.EnrichPolicy? RangeValue { get; set; } + private EnrichPolicyDescriptor RangeDescriptor { get; set; } + private Action> RangeDescriptorAction { get; set; } + + public PutPolicyRequestDescriptor GeoMatch(Elastic.Clients.Elasticsearch.Enrich.EnrichPolicy? geoMatch) + { + GeoMatchDescriptor = null; + GeoMatchDescriptorAction = null; + GeoMatchValue = geoMatch; + return Self; + } + + public PutPolicyRequestDescriptor GeoMatch(EnrichPolicyDescriptor descriptor) + { + GeoMatchValue = null; + GeoMatchDescriptorAction = null; + GeoMatchDescriptor = descriptor; + return Self; + } + + public PutPolicyRequestDescriptor GeoMatch(Action> configure) + { + GeoMatchValue = null; + GeoMatchDescriptor = null; + GeoMatchDescriptorAction = configure; + return Self; + } + + public PutPolicyRequestDescriptor Match(Elastic.Clients.Elasticsearch.Enrich.EnrichPolicy? match) + { + MatchDescriptor = null; + MatchDescriptorAction = null; + MatchValue = match; + return Self; + } + + public PutPolicyRequestDescriptor Match(EnrichPolicyDescriptor descriptor) + { + MatchValue = null; + MatchDescriptorAction = null; + MatchDescriptor = descriptor; + return Self; + } + + public PutPolicyRequestDescriptor Match(Action> configure) + { + MatchValue = null; + MatchDescriptor = null; + MatchDescriptorAction = configure; + return Self; + } + + public PutPolicyRequestDescriptor Range(Elastic.Clients.Elasticsearch.Enrich.EnrichPolicy? range) + { + RangeDescriptor = null; + RangeDescriptorAction = null; + RangeValue = range; + return Self; + } + + public PutPolicyRequestDescriptor Range(EnrichPolicyDescriptor descriptor) + { + RangeValue = null; + RangeDescriptorAction = null; + RangeDescriptor = descriptor; + return Self; + } + + public PutPolicyRequestDescriptor Range(Action> configure) + { + RangeValue = null; + RangeDescriptor = null; + RangeDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (GeoMatchDescriptor is not null) + { + writer.WritePropertyName("geo_match"); + JsonSerializer.Serialize(writer, GeoMatchDescriptor, options); + } + else if (GeoMatchDescriptorAction is not null) + { + writer.WritePropertyName("geo_match"); + JsonSerializer.Serialize(writer, new EnrichPolicyDescriptor(GeoMatchDescriptorAction), options); + } + else if (GeoMatchValue is not null) + { + writer.WritePropertyName("geo_match"); + JsonSerializer.Serialize(writer, GeoMatchValue, options); + } + + if (MatchDescriptor is not null) + { + writer.WritePropertyName("match"); + JsonSerializer.Serialize(writer, MatchDescriptor, options); + } + else if (MatchDescriptorAction is not null) + { + writer.WritePropertyName("match"); + JsonSerializer.Serialize(writer, new EnrichPolicyDescriptor(MatchDescriptorAction), options); + } + else if (MatchValue is not null) + { + writer.WritePropertyName("match"); + JsonSerializer.Serialize(writer, MatchValue, options); + } + + if (RangeDescriptor is not null) + { + writer.WritePropertyName("range"); + JsonSerializer.Serialize(writer, RangeDescriptor, options); + } + else if (RangeDescriptorAction is not null) + { + writer.WritePropertyName("range"); + JsonSerializer.Serialize(writer, new EnrichPolicyDescriptor(RangeDescriptorAction), options); + } + else if (RangeValue is not null) + { + writer.WritePropertyName("range"); + JsonSerializer.Serialize(writer, RangeValue, options); + } + + writer.WriteEndObject(); + } +} + +/// +/// Creates a new enrich policy. +/// +public sealed partial class PutPolicyRequestDescriptor : RequestDescriptor +{ + internal PutPolicyRequestDescriptor(Action configure) => configure.Invoke(this); + + public PutPolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name)) + { + } + + internal PutPolicyRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.EnrichPutPolicy; + + protected override HttpMethod StaticHttpMethod => HttpMethod.PUT; + + internal override bool SupportsBody => true; + + public PutPolicyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name) + { + RouteValues.Required("name", name); + return Self; + } + + private Elastic.Clients.Elasticsearch.Enrich.EnrichPolicy? GeoMatchValue { get; set; } + private EnrichPolicyDescriptor GeoMatchDescriptor { get; set; } + private Action GeoMatchDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Enrich.EnrichPolicy? MatchValue { get; set; } + private EnrichPolicyDescriptor MatchDescriptor { get; set; } + private Action MatchDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Enrich.EnrichPolicy? RangeValue { get; set; } + private EnrichPolicyDescriptor RangeDescriptor { get; set; } + private Action RangeDescriptorAction { get; set; } + + public PutPolicyRequestDescriptor GeoMatch(Elastic.Clients.Elasticsearch.Enrich.EnrichPolicy? geoMatch) + { + GeoMatchDescriptor = null; + GeoMatchDescriptorAction = null; + GeoMatchValue = geoMatch; + return Self; + } + + public PutPolicyRequestDescriptor GeoMatch(EnrichPolicyDescriptor descriptor) + { + GeoMatchValue = null; + GeoMatchDescriptorAction = null; + GeoMatchDescriptor = descriptor; + return Self; + } + + public PutPolicyRequestDescriptor GeoMatch(Action configure) + { + GeoMatchValue = null; + GeoMatchDescriptor = null; + GeoMatchDescriptorAction = configure; + return Self; + } + + public PutPolicyRequestDescriptor Match(Elastic.Clients.Elasticsearch.Enrich.EnrichPolicy? match) + { + MatchDescriptor = null; + MatchDescriptorAction = null; + MatchValue = match; + return Self; + } + + public PutPolicyRequestDescriptor Match(EnrichPolicyDescriptor descriptor) + { + MatchValue = null; + MatchDescriptorAction = null; + MatchDescriptor = descriptor; + return Self; + } + + public PutPolicyRequestDescriptor Match(Action configure) + { + MatchValue = null; + MatchDescriptor = null; + MatchDescriptorAction = configure; + return Self; + } + + public PutPolicyRequestDescriptor Range(Elastic.Clients.Elasticsearch.Enrich.EnrichPolicy? range) + { + RangeDescriptor = null; + RangeDescriptorAction = null; + RangeValue = range; + return Self; + } + + public PutPolicyRequestDescriptor Range(EnrichPolicyDescriptor descriptor) + { + RangeValue = null; + RangeDescriptorAction = null; + RangeDescriptor = descriptor; + return Self; + } + + public PutPolicyRequestDescriptor Range(Action configure) + { + RangeValue = null; + RangeDescriptor = null; + RangeDescriptorAction = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (GeoMatchDescriptor is not null) + { + writer.WritePropertyName("geo_match"); + JsonSerializer.Serialize(writer, GeoMatchDescriptor, options); + } + else if (GeoMatchDescriptorAction is not null) + { + writer.WritePropertyName("geo_match"); + JsonSerializer.Serialize(writer, new EnrichPolicyDescriptor(GeoMatchDescriptorAction), options); + } + else if (GeoMatchValue is not null) + { + writer.WritePropertyName("geo_match"); + JsonSerializer.Serialize(writer, GeoMatchValue, options); + } + + if (MatchDescriptor is not null) + { + writer.WritePropertyName("match"); + JsonSerializer.Serialize(writer, MatchDescriptor, options); + } + else if (MatchDescriptorAction is not null) + { + writer.WritePropertyName("match"); + JsonSerializer.Serialize(writer, new EnrichPolicyDescriptor(MatchDescriptorAction), options); + } + else if (MatchValue is not null) + { + writer.WritePropertyName("match"); + JsonSerializer.Serialize(writer, MatchValue, options); + } + + if (RangeDescriptor is not null) + { + writer.WritePropertyName("range"); + JsonSerializer.Serialize(writer, RangeDescriptor, options); + } + else if (RangeDescriptorAction is not null) + { + writer.WritePropertyName("range"); + JsonSerializer.Serialize(writer, new EnrichPolicyDescriptor(RangeDescriptorAction), options); + } + else if (RangeValue is not null) + { + writer.WritePropertyName("range"); + JsonSerializer.Serialize(writer, RangeValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/PutPolicyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/PutPolicyResponse.g.cs new file mode 100644 index 00000000000..b1b21ad1422 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Enrich/PutPolicyResponse.g.cs @@ -0,0 +1,35 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Enrich; + +public sealed partial class PutPolicyResponse : ElasticsearchResponse +{ + /// + /// For a successful response, this value is always true. On failure, an exception is returned instead. + /// + [JsonInclude, JsonPropertyName("acknowledged")] + public bool Acknowledged { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreRequest.g.cs new file mode 100644 index 00000000000..bd2c1160542 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreRequest.g.cs @@ -0,0 +1,555 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Graph; + +public sealed class ExploreRequestParameters : RequestParameters +{ + /// + /// Specific routing value + /// + public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } + + /// + /// Explicit operation timeout + /// + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } +} + +/// +/// Explore extracted and summarized information about the documents and terms in an index. +/// +public sealed partial class ExploreRequest : PlainRequest +{ + public ExploreRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.GraphExplore; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + /// + /// Specific routing value + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } + + /// + /// Explicit operation timeout + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get => Q("timeout"); set => Q("timeout", value); } + [JsonInclude, JsonPropertyName("connections")] + public Elastic.Clients.Elasticsearch.Graph.Hop? Connections { get; set; } + [JsonInclude, JsonPropertyName("controls")] + public Elastic.Clients.Elasticsearch.Graph.ExploreControls? Controls { get; set; } + [JsonInclude, JsonPropertyName("query")] + public Elastic.Clients.Elasticsearch.QueryDsl.Query? Query { get; set; } + [JsonInclude, JsonPropertyName("vertices")] + public ICollection? Vertices { get; set; } +} + +/// +/// Explore extracted and summarized information about the documents and terms in an index. +/// +public sealed partial class ExploreRequestDescriptor : RequestDescriptor, ExploreRequestParameters> +{ + internal ExploreRequestDescriptor(Action> configure) => configure.Invoke(this); + + public ExploreRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) + { + } + + internal ExploreRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.GraphExplore; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + public ExploreRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) => Qs("routing", routing); + public ExploreRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + + public ExploreRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) + { + RouteValues.Required("index", indices); + return Self; + } + + private Elastic.Clients.Elasticsearch.Graph.Hop? ConnectionsValue { get; set; } + private HopDescriptor ConnectionsDescriptor { get; set; } + private Action> ConnectionsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Graph.ExploreControls? ControlsValue { get; set; } + private ExploreControlsDescriptor ControlsDescriptor { get; set; } + private Action> ControlsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.QueryDsl.Query? QueryValue { get; set; } + private QueryDsl.QueryDescriptor QueryDescriptor { get; set; } + private Action> QueryDescriptorAction { get; set; } + private ICollection? VerticesValue { get; set; } + private VertexDefinitionDescriptor VerticesDescriptor { get; set; } + private Action> VerticesDescriptorAction { get; set; } + private Action>[] VerticesDescriptorActions { get; set; } + + public ExploreRequestDescriptor Connections(Elastic.Clients.Elasticsearch.Graph.Hop? connections) + { + ConnectionsDescriptor = null; + ConnectionsDescriptorAction = null; + ConnectionsValue = connections; + return Self; + } + + public ExploreRequestDescriptor Connections(HopDescriptor descriptor) + { + ConnectionsValue = null; + ConnectionsDescriptorAction = null; + ConnectionsDescriptor = descriptor; + return Self; + } + + public ExploreRequestDescriptor Connections(Action> configure) + { + ConnectionsValue = null; + ConnectionsDescriptor = null; + ConnectionsDescriptorAction = configure; + return Self; + } + + public ExploreRequestDescriptor Controls(Elastic.Clients.Elasticsearch.Graph.ExploreControls? controls) + { + ControlsDescriptor = null; + ControlsDescriptorAction = null; + ControlsValue = controls; + return Self; + } + + public ExploreRequestDescriptor Controls(ExploreControlsDescriptor descriptor) + { + ControlsValue = null; + ControlsDescriptorAction = null; + ControlsDescriptor = descriptor; + return Self; + } + + public ExploreRequestDescriptor Controls(Action> configure) + { + ControlsValue = null; + ControlsDescriptor = null; + ControlsDescriptorAction = configure; + return Self; + } + + public ExploreRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query? query) + { + QueryDescriptor = null; + QueryDescriptorAction = null; + QueryValue = query; + return Self; + } + + public ExploreRequestDescriptor Query(QueryDsl.QueryDescriptor descriptor) + { + QueryValue = null; + QueryDescriptorAction = null; + QueryDescriptor = descriptor; + return Self; + } + + public ExploreRequestDescriptor Query(Action> configure) + { + QueryValue = null; + QueryDescriptor = null; + QueryDescriptorAction = configure; + return Self; + } + + public ExploreRequestDescriptor Vertices(ICollection? vertices) + { + VerticesDescriptor = null; + VerticesDescriptorAction = null; + VerticesDescriptorActions = null; + VerticesValue = vertices; + return Self; + } + + public ExploreRequestDescriptor Vertices(VertexDefinitionDescriptor descriptor) + { + VerticesValue = null; + VerticesDescriptorAction = null; + VerticesDescriptorActions = null; + VerticesDescriptor = descriptor; + return Self; + } + + public ExploreRequestDescriptor Vertices(Action> configure) + { + VerticesValue = null; + VerticesDescriptor = null; + VerticesDescriptorActions = null; + VerticesDescriptorAction = configure; + return Self; + } + + public ExploreRequestDescriptor Vertices(params Action>[] configure) + { + VerticesValue = null; + VerticesDescriptor = null; + VerticesDescriptorAction = null; + VerticesDescriptorActions = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ConnectionsDescriptor is not null) + { + writer.WritePropertyName("connections"); + JsonSerializer.Serialize(writer, ConnectionsDescriptor, options); + } + else if (ConnectionsDescriptorAction is not null) + { + writer.WritePropertyName("connections"); + JsonSerializer.Serialize(writer, new HopDescriptor(ConnectionsDescriptorAction), options); + } + else if (ConnectionsValue is not null) + { + writer.WritePropertyName("connections"); + JsonSerializer.Serialize(writer, ConnectionsValue, options); + } + + if (ControlsDescriptor is not null) + { + writer.WritePropertyName("controls"); + JsonSerializer.Serialize(writer, ControlsDescriptor, options); + } + else if (ControlsDescriptorAction is not null) + { + writer.WritePropertyName("controls"); + JsonSerializer.Serialize(writer, new ExploreControlsDescriptor(ControlsDescriptorAction), options); + } + else if (ControlsValue is not null) + { + writer.WritePropertyName("controls"); + JsonSerializer.Serialize(writer, ControlsValue, options); + } + + 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 (VerticesDescriptor is not null) + { + writer.WritePropertyName("vertices"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, VerticesDescriptor, options); + writer.WriteEndArray(); + } + else if (VerticesDescriptorAction is not null) + { + writer.WritePropertyName("vertices"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new VertexDefinitionDescriptor(VerticesDescriptorAction), options); + writer.WriteEndArray(); + } + else if (VerticesDescriptorActions is not null) + { + writer.WritePropertyName("vertices"); + writer.WriteStartArray(); + foreach (var action in VerticesDescriptorActions) + { + JsonSerializer.Serialize(writer, new VertexDefinitionDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (VerticesValue is not null) + { + writer.WritePropertyName("vertices"); + JsonSerializer.Serialize(writer, VerticesValue, options); + } + + writer.WriteEndObject(); + } +} + +/// +/// Explore extracted and summarized information about the documents and terms in an index. +/// +public sealed partial class ExploreRequestDescriptor : RequestDescriptor +{ + internal ExploreRequestDescriptor(Action configure) => configure.Invoke(this); + + public ExploreRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices)) + { + } + + internal ExploreRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.GraphExplore; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + public ExploreRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) => Qs("routing", routing); + public ExploreRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); + + public ExploreRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) + { + RouteValues.Required("index", indices); + return Self; + } + + private Elastic.Clients.Elasticsearch.Graph.Hop? ConnectionsValue { get; set; } + private HopDescriptor ConnectionsDescriptor { get; set; } + private Action ConnectionsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.Graph.ExploreControls? ControlsValue { get; set; } + private ExploreControlsDescriptor ControlsDescriptor { get; set; } + private Action ControlsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.QueryDsl.Query? QueryValue { get; set; } + private QueryDsl.QueryDescriptor QueryDescriptor { get; set; } + private Action QueryDescriptorAction { get; set; } + private ICollection? VerticesValue { get; set; } + private VertexDefinitionDescriptor VerticesDescriptor { get; set; } + private Action VerticesDescriptorAction { get; set; } + private Action[] VerticesDescriptorActions { get; set; } + + public ExploreRequestDescriptor Connections(Elastic.Clients.Elasticsearch.Graph.Hop? connections) + { + ConnectionsDescriptor = null; + ConnectionsDescriptorAction = null; + ConnectionsValue = connections; + return Self; + } + + public ExploreRequestDescriptor Connections(HopDescriptor descriptor) + { + ConnectionsValue = null; + ConnectionsDescriptorAction = null; + ConnectionsDescriptor = descriptor; + return Self; + } + + public ExploreRequestDescriptor Connections(Action configure) + { + ConnectionsValue = null; + ConnectionsDescriptor = null; + ConnectionsDescriptorAction = configure; + return Self; + } + + public ExploreRequestDescriptor Controls(Elastic.Clients.Elasticsearch.Graph.ExploreControls? controls) + { + ControlsDescriptor = null; + ControlsDescriptorAction = null; + ControlsValue = controls; + return Self; + } + + public ExploreRequestDescriptor Controls(ExploreControlsDescriptor descriptor) + { + ControlsValue = null; + ControlsDescriptorAction = null; + ControlsDescriptor = descriptor; + return Self; + } + + public ExploreRequestDescriptor Controls(Action configure) + { + ControlsValue = null; + ControlsDescriptor = null; + ControlsDescriptorAction = configure; + return Self; + } + + public ExploreRequestDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query? query) + { + QueryDescriptor = null; + QueryDescriptorAction = null; + QueryValue = query; + return Self; + } + + public ExploreRequestDescriptor Query(QueryDsl.QueryDescriptor descriptor) + { + QueryValue = null; + QueryDescriptorAction = null; + QueryDescriptor = descriptor; + return Self; + } + + public ExploreRequestDescriptor Query(Action configure) + { + QueryValue = null; + QueryDescriptor = null; + QueryDescriptorAction = configure; + return Self; + } + + public ExploreRequestDescriptor Vertices(ICollection? vertices) + { + VerticesDescriptor = null; + VerticesDescriptorAction = null; + VerticesDescriptorActions = null; + VerticesValue = vertices; + return Self; + } + + public ExploreRequestDescriptor Vertices(VertexDefinitionDescriptor descriptor) + { + VerticesValue = null; + VerticesDescriptorAction = null; + VerticesDescriptorActions = null; + VerticesDescriptor = descriptor; + return Self; + } + + public ExploreRequestDescriptor Vertices(Action configure) + { + VerticesValue = null; + VerticesDescriptor = null; + VerticesDescriptorActions = null; + VerticesDescriptorAction = configure; + return Self; + } + + public ExploreRequestDescriptor Vertices(params Action[] configure) + { + VerticesValue = null; + VerticesDescriptor = null; + VerticesDescriptorAction = null; + VerticesDescriptorActions = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ConnectionsDescriptor is not null) + { + writer.WritePropertyName("connections"); + JsonSerializer.Serialize(writer, ConnectionsDescriptor, options); + } + else if (ConnectionsDescriptorAction is not null) + { + writer.WritePropertyName("connections"); + JsonSerializer.Serialize(writer, new HopDescriptor(ConnectionsDescriptorAction), options); + } + else if (ConnectionsValue is not null) + { + writer.WritePropertyName("connections"); + JsonSerializer.Serialize(writer, ConnectionsValue, options); + } + + if (ControlsDescriptor is not null) + { + writer.WritePropertyName("controls"); + JsonSerializer.Serialize(writer, ControlsDescriptor, options); + } + else if (ControlsDescriptorAction is not null) + { + writer.WritePropertyName("controls"); + JsonSerializer.Serialize(writer, new ExploreControlsDescriptor(ControlsDescriptorAction), options); + } + else if (ControlsValue is not null) + { + writer.WritePropertyName("controls"); + JsonSerializer.Serialize(writer, ControlsValue, options); + } + + 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 (VerticesDescriptor is not null) + { + writer.WritePropertyName("vertices"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, VerticesDescriptor, options); + writer.WriteEndArray(); + } + else if (VerticesDescriptorAction is not null) + { + writer.WritePropertyName("vertices"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new VertexDefinitionDescriptor(VerticesDescriptorAction), options); + writer.WriteEndArray(); + } + else if (VerticesDescriptorActions is not null) + { + writer.WritePropertyName("vertices"); + writer.WriteStartArray(); + foreach (var action in VerticesDescriptorActions) + { + JsonSerializer.Serialize(writer, new VertexDefinitionDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (VerticesValue is not null) + { + writer.WritePropertyName("vertices"); + JsonSerializer.Serialize(writer, VerticesValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreResponse.g.cs new file mode 100644 index 00000000000..bcf66c62f61 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Graph/ExploreResponse.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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Graph; + +public sealed partial class ExploreResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("connections")] + public IReadOnlyCollection Connections { get; init; } + [JsonInclude, JsonPropertyName("failures")] + public IReadOnlyCollection Failures { get; init; } + [JsonInclude, JsonPropertyName("timed_out")] + public bool TimedOut { get; init; } + [JsonInclude, JsonPropertyName("took")] + public long Took { get; init; } + [JsonInclude, JsonPropertyName("vertices")] + public IReadOnlyCollection Vertices { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsRequest.g.cs new file mode 100644 index 00000000000..584c7b938b7 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsRequest.g.cs @@ -0,0 +1,432 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch; + +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". + /// + 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". + /// + 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". + /// + 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". + /// + 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". + /// + 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". + /// + public string? Preference { get => Q("preference"); set => Q("preference", value); } + + /// + /// Specifies if requests are real-time as opposed to near-real-time (default: true). + /// + 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". + /// + 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". + /// + public bool? TermStatistics { get => Q("term_statistics"); set => Q("term_statistics", value); } + + /// + /// Explicit version number for concurrency control + /// + public long? Version { get => Q("version"); set => Q("version", value); } + + /// + /// Specific version type + /// + public Elastic.Clients.Elasticsearch.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } +} + +/// +/// Returns multiple termvectors in one request. +/// +public sealed partial class MultiTermVectorsRequest : PlainRequest +{ + public MultiTermVectorsRequest() + { + } + + public MultiTermVectorsRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r => r.Optional("index", index)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceMtermvectors; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + /// + /// A comma-separated list of fields to return. Applies to all returned documents unless otherwise specified in body "params" or "docs". + /// + [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". + /// + [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". + /// + [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". + /// + [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". + /// + [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". + /// + [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). + /// + [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". + /// + [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". + /// + [JsonIgnore] + public bool? TermStatistics { get => Q("term_statistics"); set => Q("term_statistics", value); } + + /// + /// Explicit version number for concurrency control + /// + [JsonIgnore] + public long? Version { get => Q("version"); set => Q("version", value); } + + /// + /// Specific version type + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } + [JsonInclude, JsonPropertyName("docs")] + public ICollection? Docs { get; set; } + [JsonInclude, JsonPropertyName("ids")] + public ICollection? Ids { get; set; } +} + +/// +/// Returns multiple termvectors in one request. +/// +public sealed partial class MultiTermVectorsRequestDescriptor : RequestDescriptor, MultiTermVectorsRequestParameters> +{ + internal MultiTermVectorsRequestDescriptor(Action> configure) => configure.Invoke(this); + + public MultiTermVectorsRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceMtermvectors; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + public MultiTermVectorsRequestDescriptor FieldStatistics(bool? fieldStatistics = true) => Qs("field_statistics", fieldStatistics); + public MultiTermVectorsRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Fields? fields) => Qs("fields", fields); + public MultiTermVectorsRequestDescriptor Offsets(bool? offsets = true) => Qs("offsets", offsets); + public MultiTermVectorsRequestDescriptor Payloads(bool? payloads = true) => Qs("payloads", payloads); + public MultiTermVectorsRequestDescriptor Positions(bool? positions = true) => Qs("positions", positions); + public MultiTermVectorsRequestDescriptor Preference(string? preference) => Qs("preference", preference); + public MultiTermVectorsRequestDescriptor Realtime(bool? realtime = true) => Qs("realtime", realtime); + public MultiTermVectorsRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) => Qs("routing", routing); + public MultiTermVectorsRequestDescriptor TermStatistics(bool? termStatistics = true) => Qs("term_statistics", termStatistics); + public MultiTermVectorsRequestDescriptor Version(long? version) => Qs("version", version); + public MultiTermVectorsRequestDescriptor VersionType(Elastic.Clients.Elasticsearch.VersionType? versionType) => Qs("version_type", versionType); + + public MultiTermVectorsRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName? index) + { + RouteValues.Optional("index", index); + return Self; + } + + private ICollection? DocsValue { get; set; } + private Core.Mtermvectors.MultiTermVectorsOperationDescriptor DocsDescriptor { get; set; } + private Action> DocsDescriptorAction { get; set; } + private Action>[] DocsDescriptorActions { get; set; } + private ICollection? IdsValue { get; set; } + + public MultiTermVectorsRequestDescriptor Docs(ICollection? docs) + { + DocsDescriptor = null; + DocsDescriptorAction = null; + DocsDescriptorActions = null; + DocsValue = docs; + return Self; + } + + public MultiTermVectorsRequestDescriptor Docs(Core.Mtermvectors.MultiTermVectorsOperationDescriptor descriptor) + { + DocsValue = null; + DocsDescriptorAction = null; + DocsDescriptorActions = null; + DocsDescriptor = descriptor; + return Self; + } + + public MultiTermVectorsRequestDescriptor Docs(Action> configure) + { + DocsValue = null; + DocsDescriptor = null; + DocsDescriptorActions = null; + DocsDescriptorAction = configure; + return Self; + } + + public MultiTermVectorsRequestDescriptor Docs(params Action>[] configure) + { + DocsValue = null; + DocsDescriptor = null; + DocsDescriptorAction = null; + DocsDescriptorActions = configure; + return Self; + } + + public MultiTermVectorsRequestDescriptor Ids(ICollection? ids) + { + IdsValue = ids; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (DocsDescriptor is not null) + { + writer.WritePropertyName("docs"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, DocsDescriptor, options); + writer.WriteEndArray(); + } + else if (DocsDescriptorAction is not null) + { + writer.WritePropertyName("docs"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Core.Mtermvectors.MultiTermVectorsOperationDescriptor(DocsDescriptorAction), options); + writer.WriteEndArray(); + } + else if (DocsDescriptorActions is not null) + { + writer.WritePropertyName("docs"); + writer.WriteStartArray(); + foreach (var action in DocsDescriptorActions) + { + JsonSerializer.Serialize(writer, new Core.Mtermvectors.MultiTermVectorsOperationDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (DocsValue is not null) + { + writer.WritePropertyName("docs"); + JsonSerializer.Serialize(writer, DocsValue, options); + } + + if (IdsValue is not null) + { + writer.WritePropertyName("ids"); + JsonSerializer.Serialize(writer, IdsValue, options); + } + + writer.WriteEndObject(); + } +} + +/// +/// Returns multiple termvectors in one request. +/// +public sealed partial class MultiTermVectorsRequestDescriptor : RequestDescriptor +{ + internal MultiTermVectorsRequestDescriptor(Action configure) => configure.Invoke(this); + + public MultiTermVectorsRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceMtermvectors; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + public MultiTermVectorsRequestDescriptor FieldStatistics(bool? fieldStatistics = true) => Qs("field_statistics", fieldStatistics); + public MultiTermVectorsRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Fields? fields) => Qs("fields", fields); + public MultiTermVectorsRequestDescriptor Offsets(bool? offsets = true) => Qs("offsets", offsets); + public MultiTermVectorsRequestDescriptor Payloads(bool? payloads = true) => Qs("payloads", payloads); + public MultiTermVectorsRequestDescriptor Positions(bool? positions = true) => Qs("positions", positions); + public MultiTermVectorsRequestDescriptor Preference(string? preference) => Qs("preference", preference); + public MultiTermVectorsRequestDescriptor Realtime(bool? realtime = true) => Qs("realtime", realtime); + public MultiTermVectorsRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) => Qs("routing", routing); + public MultiTermVectorsRequestDescriptor TermStatistics(bool? termStatistics = true) => Qs("term_statistics", termStatistics); + public MultiTermVectorsRequestDescriptor Version(long? version) => Qs("version", version); + public MultiTermVectorsRequestDescriptor VersionType(Elastic.Clients.Elasticsearch.VersionType? versionType) => Qs("version_type", versionType); + + public MultiTermVectorsRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName? index) + { + RouteValues.Optional("index", index); + return Self; + } + + private ICollection? DocsValue { get; set; } + private Core.Mtermvectors.MultiTermVectorsOperationDescriptor DocsDescriptor { get; set; } + private Action DocsDescriptorAction { get; set; } + private Action[] DocsDescriptorActions { get; set; } + private ICollection? IdsValue { get; set; } + + public MultiTermVectorsRequestDescriptor Docs(ICollection? docs) + { + DocsDescriptor = null; + DocsDescriptorAction = null; + DocsDescriptorActions = null; + DocsValue = docs; + return Self; + } + + public MultiTermVectorsRequestDescriptor Docs(Core.Mtermvectors.MultiTermVectorsOperationDescriptor descriptor) + { + DocsValue = null; + DocsDescriptorAction = null; + DocsDescriptorActions = null; + DocsDescriptor = descriptor; + return Self; + } + + public MultiTermVectorsRequestDescriptor Docs(Action configure) + { + DocsValue = null; + DocsDescriptor = null; + DocsDescriptorActions = null; + DocsDescriptorAction = configure; + return Self; + } + + public MultiTermVectorsRequestDescriptor Docs(params Action[] configure) + { + DocsValue = null; + DocsDescriptor = null; + DocsDescriptorAction = null; + DocsDescriptorActions = configure; + return Self; + } + + public MultiTermVectorsRequestDescriptor Ids(ICollection? ids) + { + IdsValue = ids; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (DocsDescriptor is not null) + { + writer.WritePropertyName("docs"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, DocsDescriptor, options); + writer.WriteEndArray(); + } + else if (DocsDescriptorAction is not null) + { + writer.WritePropertyName("docs"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new Core.Mtermvectors.MultiTermVectorsOperationDescriptor(DocsDescriptorAction), options); + writer.WriteEndArray(); + } + else if (DocsDescriptorActions is not null) + { + writer.WritePropertyName("docs"); + writer.WriteStartArray(); + foreach (var action in DocsDescriptorActions) + { + JsonSerializer.Serialize(writer, new Core.Mtermvectors.MultiTermVectorsOperationDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (DocsValue is not null) + { + writer.WritePropertyName("docs"); + JsonSerializer.Serialize(writer, DocsValue, options); + } + + if (IdsValue is not null) + { + writer.WritePropertyName("ids"); + JsonSerializer.Serialize(writer, IdsValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsResponse.g.cs new file mode 100644 index 00000000000..0dc8a1d11fb --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiTermVectorsResponse.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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch; + +public sealed partial class MultiTermVectorsResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("docs")] + public IReadOnlyCollection Docs { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateRequest.g.cs new file mode 100644 index 00000000000..fa861faea3a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateRequest.g.cs @@ -0,0 +1,201 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch; + +public sealed class RenderSearchTemplateRequestParameters : RequestParameters +{ +} + +/// +/// Allows to use the Mustache language to pre-render a search definition. +/// +public sealed partial class RenderSearchTemplateRequest : PlainRequest +{ + public RenderSearchTemplateRequest() + { + } + + public RenderSearchTemplateRequest(Elastic.Clients.Elasticsearch.Id? id) : base(r => r.Optional("id", id)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceRenderSearchTemplate; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + [JsonInclude, JsonPropertyName("file")] + public string? File { get; set; } + [JsonInclude, JsonPropertyName("params")] + public IDictionary? Params { get; set; } + [JsonInclude, JsonPropertyName("source")] + public string? Source { get; set; } +} + +/// +/// Allows to use the Mustache language to pre-render a search definition. +/// +public sealed partial class RenderSearchTemplateRequestDescriptor : RequestDescriptor, RenderSearchTemplateRequestParameters> +{ + internal RenderSearchTemplateRequestDescriptor(Action> configure) => configure.Invoke(this); + + public RenderSearchTemplateRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceRenderSearchTemplate; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + public RenderSearchTemplateRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) + { + RouteValues.Optional("id", id); + return Self; + } + + private string? FileValue { get; set; } + private IDictionary? ParamsValue { get; set; } + private string? SourceValue { get; set; } + + public RenderSearchTemplateRequestDescriptor File(string? file) + { + FileValue = file; + return Self; + } + + public RenderSearchTemplateRequestDescriptor Params(Func, FluentDictionary> selector) + { + ParamsValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + public RenderSearchTemplateRequestDescriptor Source(string? source) + { + SourceValue = source; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(FileValue)) + { + writer.WritePropertyName("file"); + writer.WriteStringValue(FileValue); + } + + if (ParamsValue is not null) + { + writer.WritePropertyName("params"); + JsonSerializer.Serialize(writer, ParamsValue, options); + } + + if (!string.IsNullOrEmpty(SourceValue)) + { + writer.WritePropertyName("source"); + writer.WriteStringValue(SourceValue); + } + + writer.WriteEndObject(); + } +} + +/// +/// Allows to use the Mustache language to pre-render a search definition. +/// +public sealed partial class RenderSearchTemplateRequestDescriptor : RequestDescriptor +{ + internal RenderSearchTemplateRequestDescriptor(Action configure) => configure.Invoke(this); + + public RenderSearchTemplateRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceRenderSearchTemplate; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + public RenderSearchTemplateRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) + { + RouteValues.Optional("id", id); + return Self; + } + + private string? FileValue { get; set; } + private IDictionary? ParamsValue { get; set; } + private string? SourceValue { get; set; } + + public RenderSearchTemplateRequestDescriptor File(string? file) + { + FileValue = file; + return Self; + } + + public RenderSearchTemplateRequestDescriptor Params(Func, FluentDictionary> selector) + { + ParamsValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + public RenderSearchTemplateRequestDescriptor Source(string? source) + { + SourceValue = source; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(FileValue)) + { + writer.WritePropertyName("file"); + writer.WriteStringValue(FileValue); + } + + if (ParamsValue is not null) + { + writer.WritePropertyName("params"); + JsonSerializer.Serialize(writer, ParamsValue, options); + } + + if (!string.IsNullOrEmpty(SourceValue)) + { + writer.WritePropertyName("source"); + writer.WriteStringValue(SourceValue); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateResponse.g.cs new file mode 100644 index 00000000000..d583cb4976b --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RenderSearchTemplateResponse.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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch; + +public sealed partial class RenderSearchTemplateResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("template_output")] + public IReadOnlyDictionary TemplateOutput { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs new file mode 100644 index 00000000000..756f063f8a7 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs @@ -0,0 +1,420 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch; + +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) + /// + 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 + /// + 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. + /// + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + + /// + /// Whether specified concrete, expanded or aliased indices should be ignored 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) + /// + 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) + /// + public string? Preference { get => Q("preference"); set => Q("preference", 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 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 type of the search operation. + /// + public Elastic.Clients.Elasticsearch.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } + + /// + /// If true, hits.total are rendered as an integer in the response. + /// + 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 + /// + public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } +} + +/// +/// Allows to use the Mustache language to pre-render a search definition. +/// +public sealed partial class SearchTemplateRequest : PlainRequest +{ + public SearchTemplateRequest() + { + } + + public SearchTemplateRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => r.Optional("index", indices)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceSearchTemplate; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + /// + /// 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); } + + /// + /// Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution + /// + [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. + /// + [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 + /// + [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) + /// + [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) + /// + [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.Routing? Routing { get => Q("routing"); set => Q("routing", value); } + + /// + /// 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 type of the search operation. + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.SearchType? SearchType { get => Q("search_type"); set => Q("search_type", value); } + + /// + /// If true, hits.total are rendered as an integer in the response. + /// + [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 + /// + [JsonIgnore] + public bool? TypedKeys { get => Q("typed_keys"); set => Q("typed_keys", value); } + [JsonInclude, JsonPropertyName("explain")] + public bool? Explain { get; set; } + + /// + /// ID of the search template to use. If no source is specified,
this parameter is required.
+ ///
+ [JsonInclude, JsonPropertyName("id")] + public Elastic.Clients.Elasticsearch.Id? Id { get; set; } + [JsonInclude, JsonPropertyName("params")] + public IDictionary? Params { get; set; } + [JsonInclude, JsonPropertyName("profile")] + public bool? Profile { get; set; } + + /// + /// An inline search template. Supports the same parameters as the search API's
request body. Also supports Mustache variables. If no id 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. +/// +public sealed partial class SearchTemplateRequestDescriptor : RequestDescriptor, SearchTemplateRequestParameters> +{ + internal SearchTemplateRequestDescriptor(Action> configure) => configure.Invoke(this); + + public SearchTemplateRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceSearchTemplate; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + public SearchTemplateRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); + public SearchTemplateRequestDescriptor CcsMinimizeRoundtrips(bool? ccsMinimizeRoundtrips = true) => Qs("ccs_minimize_roundtrips", ccsMinimizeRoundtrips); + public SearchTemplateRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public SearchTemplateRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); + public SearchTemplateRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); + public SearchTemplateRequestDescriptor Preference(string? preference) => Qs("preference", preference); + public SearchTemplateRequestDescriptor RestTotalHitsAsInt(bool? restTotalHitsAsInt = true) => Qs("rest_total_hits_as_int", restTotalHitsAsInt); + public SearchTemplateRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) => Qs("routing", routing); + public SearchTemplateRequestDescriptor Scroll(Elastic.Clients.Elasticsearch.Duration? scroll) => Qs("scroll", scroll); + public SearchTemplateRequestDescriptor SearchType(Elastic.Clients.Elasticsearch.SearchType? searchType) => Qs("search_type", searchType); + public SearchTemplateRequestDescriptor TypedKeys(bool? typedKeys = true) => Qs("typed_keys", typedKeys); + + public SearchTemplateRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) + { + RouteValues.Optional("index", indices); + return Self; + } + + private bool? ExplainValue { get; set; } + private Elastic.Clients.Elasticsearch.Id? IdValue { get; set; } + private IDictionary? ParamsValue { get; set; } + private bool? ProfileValue { get; set; } + private string? SourceValue { get; set; } + + public SearchTemplateRequestDescriptor Explain(bool? explain = true) + { + ExplainValue = explain; + return Self; + } + + /// + /// ID of the search template to use. If no source is specified,
this parameter is required.
+ ///
+ public SearchTemplateRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) + { + IdValue = id; + return Self; + } + + public SearchTemplateRequestDescriptor Params(Func, FluentDictionary> selector) + { + ParamsValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + public SearchTemplateRequestDescriptor Profile(bool? profile = true) + { + ProfileValue = profile; + return Self; + } + + /// + /// An inline search template. Supports the same parameters as the search API's
request body. Also supports Mustache variables. If no id is specified, this
parameter is required.
+ ///
+ public SearchTemplateRequestDescriptor Source(string? source) + { + SourceValue = source; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ExplainValue.HasValue) + { + writer.WritePropertyName("explain"); + writer.WriteBooleanValue(ExplainValue.Value); + } + + if (IdValue is not null) + { + writer.WritePropertyName("id"); + JsonSerializer.Serialize(writer, IdValue, options); + } + + if (ParamsValue is not null) + { + writer.WritePropertyName("params"); + JsonSerializer.Serialize(writer, ParamsValue, options); + } + + if (ProfileValue.HasValue) + { + writer.WritePropertyName("profile"); + writer.WriteBooleanValue(ProfileValue.Value); + } + + if (!string.IsNullOrEmpty(SourceValue)) + { + writer.WritePropertyName("source"); + writer.WriteStringValue(SourceValue); + } + + writer.WriteEndObject(); + } +} + +/// +/// Allows to use the Mustache language to pre-render a search definition. +/// +public sealed partial class SearchTemplateRequestDescriptor : RequestDescriptor +{ + internal SearchTemplateRequestDescriptor(Action configure) => configure.Invoke(this); + + public SearchTemplateRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceSearchTemplate; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + public SearchTemplateRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); + public SearchTemplateRequestDescriptor CcsMinimizeRoundtrips(bool? ccsMinimizeRoundtrips = true) => Qs("ccs_minimize_roundtrips", ccsMinimizeRoundtrips); + public SearchTemplateRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public SearchTemplateRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); + public SearchTemplateRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); + public SearchTemplateRequestDescriptor Preference(string? preference) => Qs("preference", preference); + public SearchTemplateRequestDescriptor RestTotalHitsAsInt(bool? restTotalHitsAsInt = true) => Qs("rest_total_hits_as_int", restTotalHitsAsInt); + public SearchTemplateRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) => Qs("routing", routing); + public SearchTemplateRequestDescriptor Scroll(Elastic.Clients.Elasticsearch.Duration? scroll) => Qs("scroll", scroll); + public SearchTemplateRequestDescriptor SearchType(Elastic.Clients.Elasticsearch.SearchType? searchType) => Qs("search_type", searchType); + public SearchTemplateRequestDescriptor TypedKeys(bool? typedKeys = true) => Qs("typed_keys", typedKeys); + + public SearchTemplateRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) + { + RouteValues.Optional("index", indices); + return Self; + } + + private bool? ExplainValue { get; set; } + private Elastic.Clients.Elasticsearch.Id? IdValue { get; set; } + private IDictionary? ParamsValue { get; set; } + private bool? ProfileValue { get; set; } + private string? SourceValue { get; set; } + + public SearchTemplateRequestDescriptor Explain(bool? explain = true) + { + ExplainValue = explain; + return Self; + } + + /// + /// ID of the search template to use. If no source is specified,
this parameter is required.
+ ///
+ public SearchTemplateRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) + { + IdValue = id; + return Self; + } + + public SearchTemplateRequestDescriptor Params(Func, FluentDictionary> selector) + { + ParamsValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + public SearchTemplateRequestDescriptor Profile(bool? profile = true) + { + ProfileValue = profile; + return Self; + } + + /// + /// An inline search template. Supports the same parameters as the search API's
request body. Also supports Mustache variables. If no id is specified, this
parameter is required.
+ ///
+ public SearchTemplateRequestDescriptor Source(string? source) + { + SourceValue = source; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ExplainValue.HasValue) + { + writer.WritePropertyName("explain"); + writer.WriteBooleanValue(ExplainValue.Value); + } + + if (IdValue is not null) + { + writer.WritePropertyName("id"); + JsonSerializer.Serialize(writer, IdValue, options); + } + + if (ParamsValue is not null) + { + writer.WritePropertyName("params"); + JsonSerializer.Serialize(writer, ParamsValue, options); + } + + if (ProfileValue.HasValue) + { + writer.WritePropertyName("profile"); + writer.WriteBooleanValue(ProfileValue.Value); + } + + if (!string.IsNullOrEmpty(SourceValue)) + { + writer.WritePropertyName("source"); + writer.WriteStringValue(SourceValue); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateResponse.g.cs new file mode 100644 index 00000000000..a4a15ab1159 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateResponse.g.cs @@ -0,0 +1,56 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch; + +public sealed partial class SearchTemplateResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("aggregations")] + public Elastic.Clients.Elasticsearch.Aggregations.AggregateDictionary? Aggregations { get; init; } + [JsonInclude, JsonPropertyName("_clusters")] + public Elastic.Clients.Elasticsearch.ClusterStatistics? Clusters { get; init; } + [JsonInclude, JsonPropertyName("fields")] + public IReadOnlyDictionary? Fields { get; init; } + [JsonInclude, JsonPropertyName("hits")] + public Elastic.Clients.Elasticsearch.Core.Search.HitsMetadata Hits { get; init; } + [JsonInclude, JsonPropertyName("max_score")] + public double? MaxScore { get; init; } + [JsonInclude, JsonPropertyName("num_reduce_phases")] + public long? NumReducePhases { get; init; } + [JsonInclude, JsonPropertyName("pit_id")] + public string? PitId { get; init; } + [JsonInclude, JsonPropertyName("profile")] + public Elastic.Clients.Elasticsearch.Core.Search.Profile? Profile { get; init; } + [JsonInclude, JsonPropertyName("_scroll_id")] + public Elastic.Clients.Elasticsearch.ScrollId? ScrollId { get; init; } + [JsonInclude, JsonPropertyName("_shards")] + public Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; init; } + [JsonInclude, JsonPropertyName("terminated_early")] + public bool? TerminatedEarly { get; init; } + [JsonInclude, JsonPropertyName("timed_out")] + public bool TimedOut { get; init; } + [JsonInclude, JsonPropertyName("took")] + public long Took { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs new file mode 100644 index 00000000000..8b72157135e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsRequest.g.cs @@ -0,0 +1,319 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Requests; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch; + +public sealed class TermVectorsRequestParameters : RequestParameters +{ + /// + /// A comma-separated list of fields to return. + /// + 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. + /// + public bool? FieldStatistics { get => Q("field_statistics"); set => Q("field_statistics", value); } + + /// + /// Specifies if term offsets should be returned. + /// + public bool? Offsets { get => Q("offsets"); set => Q("offsets", value); } + + /// + /// Specifies if term payloads should be returned. + /// + public bool? Payloads { get => Q("payloads"); set => Q("payloads", value); } + + /// + /// Specifies if term positions should be returned. + /// + public bool? Positions { get => Q("positions"); set => Q("positions", value); } + + /// + /// Specify the node or shard the operation should be performed on (default: random). + /// + public string? Preference { get => Q("preference"); set => Q("preference", value); } + + /// + /// Specifies if request is real-time as opposed to near-real-time (default: true). + /// + public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } + + /// + /// Specific routing value. + /// + public Elastic.Clients.Elasticsearch.Routing? Routing { get => Q("routing"); set => Q("routing", value); } + + /// + /// Specifies if total term frequency and document frequency should be returned. + /// + public bool? TermStatistics { get => Q("term_statistics"); set => Q("term_statistics", value); } + + /// + /// Explicit version number for concurrency control + /// + public long? Version { get => Q("version"); set => Q("version", value); } + + /// + /// Specific version type + /// + public Elastic.Clients.Elasticsearch.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } +} + +/// +/// Returns information and statistics about terms in the fields of a particular document. +/// +public sealed partial class TermVectorsRequest : PlainRequest +{ + public TermVectorsRequest(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id? id) : base(r => r.Required("index", index).Optional("id", id)) + { + } + + public TermVectorsRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceTermvectors; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + [JsonIgnore] + public TDocument Document { get; set; } + + /// + /// A comma-separated list of fields to return. + /// + [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. + /// + [JsonIgnore] + public bool? FieldStatistics { get => Q("field_statistics"); set => Q("field_statistics", value); } + + /// + /// Specifies if term offsets should be returned. + /// + [JsonIgnore] + public bool? Offsets { get => Q("offsets"); set => Q("offsets", value); } + + /// + /// Specifies if term payloads should be returned. + /// + [JsonIgnore] + public bool? Payloads { get => Q("payloads"); set => Q("payloads", value); } + + /// + /// Specifies if term positions should be returned. + /// + [JsonIgnore] + public bool? Positions { get => Q("positions"); set => Q("positions", value); } + + /// + /// Specify the node or shard the operation should be performed on (default: random). + /// + [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). + /// + [JsonIgnore] + public bool? Realtime { get => Q("realtime"); set => Q("realtime", value); } + + /// + /// Specific routing value. + /// + [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. + /// + [JsonIgnore] + public bool? TermStatistics { get => Q("term_statistics"); set => Q("term_statistics", value); } + + /// + /// Explicit version number for concurrency control + /// + [JsonIgnore] + public long? Version { get => Q("version"); set => Q("version", value); } + + /// + /// Specific version type + /// + [JsonIgnore] + public Elastic.Clients.Elasticsearch.VersionType? VersionType { get => Q("version_type"); set => Q("version_type", value); } + [JsonInclude, JsonPropertyName("doc")] + public TDocument? Doc { get; set; } + [JsonInclude, JsonPropertyName("filter")] + public Elastic.Clients.Elasticsearch.Core.TermVectors.Filter? Filter { get; set; } + [JsonInclude, JsonPropertyName("per_field_analyzer")] + public IDictionary? PerFieldAnalyzer { get; set; } +} + +/// +/// Returns information and statistics about terms in the fields of a particular document. +/// +public sealed partial class TermVectorsRequestDescriptor : RequestDescriptor, TermVectorsRequestParameters> +{ + internal TermVectorsRequestDescriptor(Action> configure) => configure.Invoke(this); + + internal TermVectorsRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id? id) : base(r => r.Required("index", index).Optional("id", id)) + { + } + + public TermVectorsRequestDescriptor(TDocument document) : this(typeof(TDocument), Elasticsearch.Id.From(document)) => DocumentValue = document; + public TermVectorsRequestDescriptor(TDocument document, IndexName index, Id id) : this(index, id) => DocumentValue = document; + public TermVectorsRequestDescriptor(TDocument document, IndexName index) : this(index, Elasticsearch.Id.From(document)) => DocumentValue = document; + public TermVectorsRequestDescriptor(TDocument document, Id id) : this(typeof(TDocument), id) => DocumentValue = document; + + public TermVectorsRequestDescriptor(Id id) : this(typeof(TDocument), id) + { + } + + public TermVectorsRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index)) + { + } + + internal TermVectorsRequestDescriptor() + { + } + + internal override ApiUrls ApiUrls => ApiUrlLookup.NoNamespaceTermvectors; + + protected override HttpMethod StaticHttpMethod => HttpMethod.POST; + + internal override bool SupportsBody => true; + + public TermVectorsRequestDescriptor FieldStatistics(bool? fieldStatistics = true) => Qs("field_statistics", fieldStatistics); + public TermVectorsRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Fields? fields) => Qs("fields", fields); + public TermVectorsRequestDescriptor Offsets(bool? offsets = true) => Qs("offsets", offsets); + public TermVectorsRequestDescriptor Payloads(bool? payloads = true) => Qs("payloads", payloads); + public TermVectorsRequestDescriptor Positions(bool? positions = true) => Qs("positions", positions); + public TermVectorsRequestDescriptor Preference(string? preference) => Qs("preference", preference); + public TermVectorsRequestDescriptor Realtime(bool? realtime = true) => Qs("realtime", realtime); + public TermVectorsRequestDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) => Qs("routing", routing); + public TermVectorsRequestDescriptor TermStatistics(bool? termStatistics = true) => Qs("term_statistics", termStatistics); + public TermVectorsRequestDescriptor Version(long? version) => Qs("version", version); + public TermVectorsRequestDescriptor VersionType(Elastic.Clients.Elasticsearch.VersionType? versionType) => Qs("version_type", versionType); + + public TermVectorsRequestDescriptor Id(Elastic.Clients.Elasticsearch.Id? id) + { + RouteValues.Optional("id", id); + return Self; + } + + public TermVectorsRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index) + { + RouteValues.Required("index", index); + return Self; + } + + private TDocument? DocValue { get; set; } + private Elastic.Clients.Elasticsearch.Core.TermVectors.Filter? FilterValue { get; set; } + private Core.TermVectors.FilterDescriptor FilterDescriptor { get; set; } + private Action FilterDescriptorAction { get; set; } + private IDictionary? PerFieldAnalyzerValue { get; set; } + private TDocument DocumentValue { get; set; } + + public TermVectorsRequestDescriptor Doc(TDocument? doc) + { + DocValue = doc; + return Self; + } + + public TermVectorsRequestDescriptor Filter(Elastic.Clients.Elasticsearch.Core.TermVectors.Filter? filter) + { + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterValue = filter; + return Self; + } + + public TermVectorsRequestDescriptor Filter(Core.TermVectors.FilterDescriptor descriptor) + { + FilterValue = null; + FilterDescriptorAction = null; + FilterDescriptor = descriptor; + return Self; + } + + public TermVectorsRequestDescriptor Filter(Action configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorAction = configure; + return Self; + } + + public TermVectorsRequestDescriptor PerFieldAnalyzer(Func, FluentDictionary> selector) + { + PerFieldAnalyzerValue = selector?.Invoke(new FluentDictionary()); + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (DocValue is not null) + { + writer.WritePropertyName("doc"); + JsonSerializer.Serialize(writer, DocValue, 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 Core.TermVectors.FilterDescriptor(FilterDescriptorAction), options); + } + else if (FilterValue is not null) + { + writer.WritePropertyName("filter"); + JsonSerializer.Serialize(writer, FilterValue, options); + } + + if (PerFieldAnalyzerValue is not null) + { + writer.WritePropertyName("per_field_analyzer"); + JsonSerializer.Serialize(writer, PerFieldAnalyzerValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsResponse.g.cs new file mode 100644 index 00000000000..3dd672db1f7 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/TermVectorsResponse.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.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using Elastic.Transport.Products.Elasticsearch; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch; + +public sealed partial class TermVectorsResponse : ElasticsearchResponse +{ + [JsonInclude, JsonPropertyName("found")] + public bool Found { get; init; } + [JsonInclude, JsonPropertyName("_id")] + public string Id { get; init; } + [JsonInclude, JsonPropertyName("_index")] + public string Index { get; init; } + [JsonInclude, JsonPropertyName("term_vectors")] + [ReadOnlyFieldDictionaryConverter(typeof(Elastic.Clients.Elasticsearch.Core.TermVectors.TermVector))] + public IReadOnlyDictionary? TermVectors { get; init; } + [JsonInclude, JsonPropertyName("took")] + public long Took { get; init; } + [JsonInclude, JsonPropertyName("_version")] + public long Version { get; init; } +} \ No newline at end of file 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 861bb08cdd0..83cdc6c31f0 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 42642ff79e5..337c2726627 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs @@ -36,9 +36,267 @@ internal ClusterNamespacedClient(ElasticsearchClient client) : base(client) { } + /// + /// Provides explanations for shard allocations in the cluster. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual AllocationExplainResponse AllocationExplain(AllocationExplainRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// Provides explanations for shard allocations in the cluster. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AllocationExplainAsync(AllocationExplainRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// Provides explanations for shard allocations in the cluster. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual AllocationExplainResponse AllocationExplain() + { + var descriptor = new AllocationExplainRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Provides explanations for shard allocations in the cluster. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual AllocationExplainResponse AllocationExplain(AllocationExplainRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Provides explanations for shard allocations in the cluster. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual AllocationExplainResponse AllocationExplain(Action configureRequest) + { + var descriptor = new AllocationExplainRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Provides explanations for shard allocations in the cluster. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AllocationExplainAsync(CancellationToken cancellationToken = default) + { + var descriptor = new AllocationExplainRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Provides explanations for shard allocations in the cluster. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AllocationExplainAsync(AllocationExplainRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Provides explanations for shard allocations in the cluster. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task AllocationExplainAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new AllocationExplainRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns high-level overview of cluster statistics. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ClusterStatsResponse Stats(ClusterStatsRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// Returns high-level overview of cluster statistics. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task StatsAsync(ClusterStatsRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// Returns high-level overview of cluster statistics. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ClusterStatsResponse Stats() + { + var descriptor = new ClusterStatsRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns high-level overview of cluster statistics. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ClusterStatsResponse Stats(ClusterStatsRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns high-level overview of cluster statistics. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ClusterStatsResponse Stats(Action configureRequest) + { + var descriptor = new ClusterStatsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns high-level overview of cluster statistics. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task StatsAsync(CancellationToken cancellationToken = default) + { + var descriptor = new ClusterStatsRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns high-level overview of cluster statistics. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task StatsAsync(ClusterStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns high-level overview of cluster statistics. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task StatsAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ClusterStatsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns cluster settings. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetClusterSettingsResponse GetSettings(GetClusterSettingsRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// Returns cluster settings. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetSettingsAsync(GetClusterSettingsRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// Returns cluster settings. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetClusterSettingsResponse GetSettings() + { + var descriptor = new GetClusterSettingsRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns cluster settings. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetClusterSettingsResponse GetSettings(GetClusterSettingsRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns cluster settings. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetClusterSettingsResponse GetSettings(Action configureRequest) + { + var descriptor = new GetClusterSettingsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns cluster settings. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetSettingsAsync(CancellationToken cancellationToken = default) + { + var descriptor = new GetClusterSettingsRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns cluster settings. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetSettingsAsync(GetClusterSettingsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns cluster settings. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetSettingsAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetClusterSettingsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(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(HealthRequest request) { @@ -48,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) { @@ -58,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() { @@ -69,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) { @@ -79,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) { @@ -91,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) { @@ -101,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) { @@ -113,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) { @@ -124,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) { @@ -134,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) { @@ -146,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) { @@ -156,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) { @@ -165,4 +423,90 @@ public virtual Task HealthAsync(Action, HealthResponse, HealthRequestParameters>(descriptor); } + + /// + /// 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. + ///
+ public virtual PendingTasksResponse PendingTasks(PendingTasksRequest request) + { + request.BeforeRequest(); + return DoRequest(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. + ///
+ public virtual Task PendingTasksAsync(PendingTasksRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// 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. + ///
+ public virtual PendingTasksResponse PendingTasks() + { + var descriptor = new PendingTasksRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// 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. + ///
+ public virtual PendingTasksResponse PendingTasks(PendingTasksRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// 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. + ///
+ public virtual PendingTasksResponse PendingTasks(Action configureRequest) + { + var descriptor = new PendingTasksRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// 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. + ///
+ public virtual Task PendingTasksAsync(CancellationToken cancellationToken = default) + { + var descriptor = new PendingTasksRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// 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. + ///
+ public virtual Task PendingTasksAsync(PendingTasksRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// 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. + ///
+ public virtual Task PendingTasksAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PendingTasksRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.DanglingIndices.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.DanglingIndices.g.cs new file mode 100644 index 00000000000..75014913974 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.DanglingIndices.g.cs @@ -0,0 +1,124 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Threading; +using System.Threading.Tasks; + +namespace Elastic.Clients.Elasticsearch.DanglingIndices; + +public partial class DanglingIndicesNamespacedClient : NamespacedClientProxy +{ + /// + /// Initializes a new instance of the class for mocking. + /// + protected DanglingIndicesNamespacedClient() : base() + { + } + + internal DanglingIndicesNamespacedClient(ElasticsearchClient client) : base(client) + { + } + + /// + /// Returns all dangling indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ListDanglingIndicesResponse ListDanglingIndices(ListDanglingIndicesRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// Returns all dangling indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ListDanglingIndicesAsync(ListDanglingIndicesRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// Returns all dangling indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ListDanglingIndicesResponse ListDanglingIndices() + { + var descriptor = new ListDanglingIndicesRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns all dangling indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ListDanglingIndicesResponse ListDanglingIndices(ListDanglingIndicesRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns all dangling indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ListDanglingIndicesResponse ListDanglingIndices(Action configureRequest) + { + var descriptor = new ListDanglingIndicesRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns all dangling indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ListDanglingIndicesAsync(CancellationToken cancellationToken = default) + { + var descriptor = new ListDanglingIndicesRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns all dangling indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ListDanglingIndicesAsync(ListDanglingIndicesRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns all dangling indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ListDanglingIndicesAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ListDanglingIndicesRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Enrich.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Enrich.g.cs new file mode 100644 index 00000000000..f34821a5172 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Enrich.g.cs @@ -0,0 +1,490 @@ +// 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.Enrich; + +public partial class EnrichNamespacedClient : NamespacedClientProxy +{ + /// + /// Initializes a new instance of the class for mocking. + /// + protected EnrichNamespacedClient() : base() + { + } + + internal EnrichNamespacedClient(ElasticsearchClient client) : base(client) + { + } + + /// + /// Deletes an existing enrich policy and its enrich index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeletePolicyResponse DeletePolicy(DeletePolicyRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// Deletes an existing enrich policy and its enrich index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeletePolicyAsync(DeletePolicyRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// Deletes an existing enrich policy and its enrich index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeletePolicyResponse DeletePolicy(Elastic.Clients.Elasticsearch.Name name) + { + var descriptor = new DeletePolicyRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Deletes an existing enrich policy and its enrich index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeletePolicyResponse DeletePolicy(DeletePolicyRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Deletes an existing enrich policy and its enrich index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeletePolicyResponse DeletePolicy(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) + { + var descriptor = new DeletePolicyRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Deletes an existing enrich policy and its enrich index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeletePolicyAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) + { + var descriptor = new DeletePolicyRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Deletes an existing enrich policy and its enrich index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeletePolicyAsync(DeletePolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Deletes an existing enrich policy and its enrich index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeletePolicyAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeletePolicyRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Gets enrich coordinator statistics and information about enrich policies that are currently executing. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual EnrichStatsResponse Stats(EnrichStatsRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// Gets enrich coordinator statistics and information about enrich policies that are currently executing. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task StatsAsync(EnrichStatsRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// Gets enrich coordinator statistics and information about enrich policies that are currently executing. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual EnrichStatsResponse Stats() + { + var descriptor = new EnrichStatsRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Gets enrich coordinator statistics and information about enrich policies that are currently executing. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual EnrichStatsResponse Stats(EnrichStatsRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Gets enrich coordinator statistics and information about enrich policies that are currently executing. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual EnrichStatsResponse Stats(Action configureRequest) + { + var descriptor = new EnrichStatsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Gets enrich coordinator statistics and information about enrich policies that are currently executing. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task StatsAsync(CancellationToken cancellationToken = default) + { + var descriptor = new EnrichStatsRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Gets enrich coordinator statistics and information about enrich policies that are currently executing. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task StatsAsync(EnrichStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Gets enrich coordinator statistics and information about enrich policies that are currently executing. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task StatsAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new EnrichStatsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Creates the enrich index for an existing enrich policy. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// Creates the enrich index for an existing enrich policy. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExecutePolicyAsync(ExecutePolicyRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// Creates the enrich index for an existing enrich policy. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExecutePolicyResponse ExecutePolicy(Elastic.Clients.Elasticsearch.Name name) + { + var descriptor = new ExecutePolicyRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Creates the enrich index for an existing enrich policy. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Creates the enrich index for an existing enrich policy. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExecutePolicyResponse ExecutePolicy(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) + { + var descriptor = new ExecutePolicyRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Creates the enrich index for an existing enrich policy. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExecutePolicyAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) + { + var descriptor = new ExecutePolicyRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Creates the enrich index for an existing enrich policy. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExecutePolicyAsync(ExecutePolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Creates the enrich index for an existing enrich policy. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExecutePolicyAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExecutePolicyRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Gets information about an enrich policy. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetPolicyResponse GetPolicy(GetPolicyRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// Gets information about an enrich policy. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetPolicyAsync(GetPolicyRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// Gets information about an enrich policy. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetPolicyResponse GetPolicy() + { + var descriptor = new GetPolicyRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Gets information about an enrich policy. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetPolicyResponse GetPolicy(GetPolicyRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Gets information about an enrich policy. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetPolicyResponse GetPolicy(Action configureRequest) + { + var descriptor = new GetPolicyRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Gets information about an enrich policy. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetPolicyAsync(CancellationToken cancellationToken = default) + { + var descriptor = new GetPolicyRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Gets information about an enrich policy. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetPolicyAsync(GetPolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Gets information about an enrich policy. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetPolicyAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new GetPolicyRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Creates a new enrich policy. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual PutPolicyResponse PutPolicy(PutPolicyRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// Creates a new enrich policy. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutPolicyAsync(PutPolicyRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// Creates a new enrich policy. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual PutPolicyResponse PutPolicy(PutPolicyRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Creates a new enrich policy. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) + { + var descriptor = new PutPolicyRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Creates a new enrich policy. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual PutPolicyResponse PutPolicy(PutPolicyRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, PutPolicyResponse, PutPolicyRequestParameters>(descriptor); + } + + /// + /// Creates a new enrich policy. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual PutPolicyResponse PutPolicy(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest) + { + var descriptor = new PutPolicyRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, PutPolicyResponse, PutPolicyRequestParameters>(descriptor); + } + + /// + /// Creates a new enrich policy. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutPolicyAsync(PutPolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Creates a new enrich policy. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutPolicyRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Creates a new enrich policy. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutPolicyAsync(PutPolicyRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, PutPolicyResponse, PutPolicyRequestParameters>(descriptor); + } + + /// + /// Creates a new enrich policy. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new PutPolicyRequestDescriptor(name); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, PutPolicyResponse, PutPolicyRequestParameters>(descriptor); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs new file mode 100644 index 00000000000..f1df512a89c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs @@ -0,0 +1,168 @@ +// 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.Graph; + +public partial class GraphNamespacedClient : NamespacedClientProxy +{ + /// + /// Initializes a new instance of the class for mocking. + /// + protected GraphNamespacedClient() : base() + { + } + + 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. + /// + public virtual ExploreResponse Explore(ExploreRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// Explore extracted and summarized information about the documents and terms in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExploreAsync(ExploreRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// Explore extracted and summarized information about the documents and terms in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Indices indices) + { + var descriptor = new ExploreRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Explore extracted and summarized information about the documents and terms in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExploreResponse Explore(ExploreRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Explore extracted and summarized information about the documents and terms in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) + { + var descriptor = new ExploreRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Explore extracted and summarized information about the documents and terms in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExploreResponse Explore(ExploreRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, ExploreResponse, ExploreRequestParameters>(descriptor); + } + + /// + /// Explore extracted and summarized information about the documents and terms in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExploreResponse Explore(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) + { + var descriptor = new ExploreRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, ExploreResponse, ExploreRequestParameters>(descriptor); + } + + /// + /// Explore extracted and summarized information about the documents and terms in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) + { + var descriptor = new ExploreRequestDescriptor(indices); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Explore extracted and summarized information about the documents and terms in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExploreAsync(ExploreRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Explore extracted and summarized information about the documents and terms in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExploreRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Explore extracted and summarized information about the documents and terms in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExploreAsync(ExploreRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, ExploreResponse, ExploreRequestParameters>(descriptor); + } + + /// + /// Explore extracted and summarized information about the documents and terms in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExploreAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExploreRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, ExploreResponse, ExploreRequestParameters>(descriptor); + } +} \ No newline at end of file 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 fae829c3857..6d6399c4808 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 c32f24e8c0b..a84015e1d9e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs @@ -19,7 +19,10 @@ using Elastic.Clients.Elasticsearch.AsyncSearch; using Elastic.Clients.Elasticsearch.Cluster; +using Elastic.Clients.Elasticsearch.DanglingIndices; +using Elastic.Clients.Elasticsearch.Enrich; using Elastic.Clients.Elasticsearch.Eql; +using Elastic.Clients.Elasticsearch.Graph; using Elastic.Clients.Elasticsearch.IndexManagement; using Elastic.Clients.Elasticsearch.Ingest; using Elastic.Clients.Elasticsearch.Sql; @@ -34,7 +37,10 @@ public partial class ElasticsearchClient { public virtual AsyncSearchNamespacedClient AsyncSearch { get; private set; } public virtual ClusterNamespacedClient Cluster { get; private set; } + public virtual DanglingIndicesNamespacedClient DanglingIndices { 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; } @@ -42,12 +48,12 @@ public partial class ElasticsearchClient private partial void SetupNamespaces() { - AsyncSearch = new AsyncSearchNamespacedClient(this); Cluster = new ClusterNamespacedClient(this); Eql = new EqlNamespacedClient(this); Indices = new IndicesNamespacedClient(this); Ingest = new IngestNamespacedClient(this); Sql = new SqlNamespacedClient(this); Tasks = new TasksNamespacedClient(this); + AsyncSearch = new AsyncSearchNamespacedClient(this); Cluster = new ClusterNamespacedClient(this); DanglingIndices = new DanglingIndicesNamespacedClient(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) { @@ -57,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) { @@ -67,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) { @@ -77,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) { @@ -89,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) { @@ -99,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) { @@ -111,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) { @@ -121,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) { @@ -133,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) { @@ -143,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) { @@ -155,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) { @@ -165,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) { @@ -175,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() { @@ -186,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) { @@ -196,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) { @@ -208,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) { @@ -219,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) { @@ -229,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) { @@ -241,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) { @@ -251,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) { @@ -261,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() { @@ -272,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) { @@ -282,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) { @@ -294,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) { @@ -305,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) { @@ -315,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) { @@ -2663,9 +2669,139 @@ public virtual Task> MultiSearchTemplateA return DoRequestAsync, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor); } + /// + /// Returns multiple termvectors in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual MultiTermVectorsResponse MultiTermVectors(MultiTermVectorsRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// Returns multiple termvectors in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task MultiTermVectorsAsync(MultiTermVectorsRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// Returns multiple termvectors in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual MultiTermVectorsResponse MultiTermVectors() + { + var descriptor = new MultiTermVectorsRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns multiple termvectors in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual MultiTermVectorsResponse MultiTermVectors(MultiTermVectorsRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns multiple termvectors in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual MultiTermVectorsResponse MultiTermVectors(Action configureRequest) + { + var descriptor = new MultiTermVectorsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns multiple termvectors in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual MultiTermVectorsResponse MultiTermVectors(MultiTermVectorsRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, MultiTermVectorsResponse, MultiTermVectorsRequestParameters>(descriptor); + } + + /// + /// Returns multiple termvectors in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual MultiTermVectorsResponse MultiTermVectors(Action> configureRequest) + { + var descriptor = new MultiTermVectorsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, MultiTermVectorsResponse, MultiTermVectorsRequestParameters>(descriptor); + } + + /// + /// Returns multiple termvectors in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task MultiTermVectorsAsync(CancellationToken cancellationToken = default) + { + var descriptor = new MultiTermVectorsRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns multiple termvectors in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task MultiTermVectorsAsync(MultiTermVectorsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns multiple termvectors in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task MultiTermVectorsAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new MultiTermVectorsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns multiple termvectors in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task MultiTermVectorsAsync(MultiTermVectorsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, MultiTermVectorsResponse, MultiTermVectorsRequestParameters>(descriptor); + } + + /// + /// Returns multiple termvectors in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task MultiTermVectorsAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new MultiTermVectorsRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, MultiTermVectorsResponse, MultiTermVectorsRequestParameters>(descriptor); + } + /// /// 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) { @@ -2675,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) { @@ -2685,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) { @@ -2696,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) { @@ -2706,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) { @@ -2718,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) { @@ -2728,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) { @@ -2740,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) { @@ -2751,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) { @@ -2761,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) { @@ -2773,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) { @@ -2783,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) { @@ -3311,6 +3447,136 @@ public virtual Task ReindexRethrottleAsync(Elastic.Cl return DoRequestAsync(descriptor); } + /// + /// Allows to use the Mustache language to pre-render a search definition. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual RenderSearchTemplateResponse RenderSearchTemplate(RenderSearchTemplateRequest request) + { + request.BeforeRequest(); + return DoRequest(request); + } + + /// + /// Allows to use the Mustache language to pre-render a search definition. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RenderSearchTemplateAsync(RenderSearchTemplateRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync(request, cancellationToken); + } + + /// + /// Allows to use the Mustache language to pre-render a search definition. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual RenderSearchTemplateResponse RenderSearchTemplate() + { + var descriptor = new RenderSearchTemplateRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Allows to use the Mustache language to pre-render a search definition. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual RenderSearchTemplateResponse RenderSearchTemplate(RenderSearchTemplateRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Allows to use the Mustache language to pre-render a search definition. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual RenderSearchTemplateResponse RenderSearchTemplate(Action configureRequest) + { + var descriptor = new RenderSearchTemplateRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Allows to use the Mustache language to pre-render a search definition. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual RenderSearchTemplateResponse RenderSearchTemplate(RenderSearchTemplateRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor); + } + + /// + /// Allows to use the Mustache language to pre-render a search definition. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual RenderSearchTemplateResponse RenderSearchTemplate(Action> configureRequest) + { + var descriptor = new RenderSearchTemplateRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor); + } + + /// + /// Allows to use the Mustache language to pre-render a search definition. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RenderSearchTemplateAsync(CancellationToken cancellationToken = default) + { + var descriptor = new RenderSearchTemplateRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Allows to use the Mustache language to pre-render a search definition. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RenderSearchTemplateAsync(RenderSearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Allows to use the Mustache language to pre-render a search definition. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RenderSearchTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new RenderSearchTemplateRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Allows to use the Mustache language to pre-render a search definition. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RenderSearchTemplateAsync(RenderSearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor); + } + + /// + /// Allows to use the Mustache language to pre-render a search definition. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RenderSearchTemplateAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new RenderSearchTemplateRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, RenderSearchTemplateResponse, RenderSearchTemplateRequestParameters>(descriptor); + } + /// /// Allows to retrieve a large numbers of results from a single search request. /// Learn more about this API in the Elasticsearch documentation. @@ -3613,6 +3879,92 @@ public virtual Task SearchShardsAsync(Action, SearchShardsResponse, SearchShardsRequestParameters>(descriptor); } + /// + /// Allows to use the Mustache language to pre-render a search definition. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual SearchTemplateResponse SearchTemplate(SearchTemplateRequest request) + { + request.BeforeRequest(); + return DoRequest, SearchTemplateRequestParameters>(request); + } + + /// + /// Allows to use the Mustache language to pre-render a search definition. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> SearchTemplateAsync(SearchTemplateRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync, SearchTemplateRequestParameters>(request, cancellationToken); + } + + /// + /// Allows to use the Mustache language to pre-render a search definition. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual SearchTemplateResponse SearchTemplate() + { + var descriptor = new SearchTemplateRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor); + } + + /// + /// Allows to use the Mustache language to pre-render a search definition. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual SearchTemplateResponse SearchTemplate(SearchTemplateRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor); + } + + /// + /// Allows to use the Mustache language to pre-render a search definition. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual SearchTemplateResponse SearchTemplate(Action> configureRequest) + { + var descriptor = new SearchTemplateRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor); + } + + /// + /// Allows to use the Mustache language to pre-render a search definition. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> SearchTemplateAsync(CancellationToken cancellationToken = default) + { + var descriptor = new SearchTemplateRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequestAsync, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor); + } + + /// + /// Allows to use the Mustache language to pre-render a search definition. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> SearchTemplateAsync(SearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor); + } + + /// + /// Allows to use the Mustache language to pre-render a search definition. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> SearchTemplateAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new SearchTemplateRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, SearchTemplateResponse, SearchTemplateRequestParameters>(descriptor); + } + /// /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. /// Learn more about this API in the Elasticsearch documentation. @@ -3789,6 +4141,138 @@ public virtual Task TermsEnumAsync(Elastic.Clients return DoRequestAsync, TermsEnumResponse, TermsEnumRequestParameters>(descriptor); } + /// + /// Returns information and statistics about terms in the fields of a particular document. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual TermVectorsResponse TermVectors(TermVectorsRequest request) + { + request.BeforeRequest(); + return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(request); + } + + /// + /// Returns information and statistics about terms in the fields of a particular document. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task TermVectorsAsync(TermVectorsRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(request, cancellationToken); + } + + /// + /// Returns information and statistics about terms in the fields of a particular document. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual TermVectorsResponse TermVectors(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) + { + var descriptor = new TermVectorsRequestDescriptor(document, index); + descriptor.BeforeRequest(); + return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); + } + + /// + /// Returns information and statistics about terms in the fields of a particular document. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual TermVectorsResponse TermVectors(TermVectorsRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); + } + + /// + /// Returns information and statistics about terms in the fields of a particular document. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual TermVectorsResponse TermVectors(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) + { + var descriptor = new TermVectorsRequestDescriptor(document, index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); + } + + /// + /// Returns information and statistics about terms in the fields of a particular document. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual TermVectorsResponse TermVectors(TDocument document) + { + var descriptor = new TermVectorsRequestDescriptor(document); + descriptor.BeforeRequest(); + return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); + } + + /// + /// Returns information and statistics about terms in the fields of a particular document. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual TermVectorsResponse TermVectors(TDocument document, Action> configureRequest) + { + var descriptor = new TermVectorsRequestDescriptor(document); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); + } + + /// + /// Returns information and statistics about terms in the fields of a particular document. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task TermVectorsAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) + { + var descriptor = new TermVectorsRequestDescriptor(document, index); + descriptor.BeforeRequest(); + return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); + } + + /// + /// Returns information and statistics about terms in the fields of a particular document. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task TermVectorsAsync(TermVectorsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); + } + + /// + /// Returns information and statistics about terms in the fields of a particular document. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task TermVectorsAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new TermVectorsRequestDescriptor(document, index); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); + } + + /// + /// Returns information and statistics about terms in the fields of a particular document. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task TermVectorsAsync(TDocument document, CancellationToken cancellationToken = default) + { + var descriptor = new TermVectorsRequestDescriptor(document); + descriptor.BeforeRequest(); + return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); + } + + /// + /// Returns information and statistics about terms in the fields of a particular document. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task TermVectorsAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new TermVectorsRequestDescriptor(document); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor); + } + /// /// Performs an update on every document in the index without changing the source,
for example to pick up a mapping change.
/// Learn more about this API in the Elasticsearch documentation. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/AllocationDecision.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/AllocationDecision.g.cs new file mode 100644 index 00000000000..73f4caf7f7a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/AllocationDecision.g.cs @@ -0,0 +1,38 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Cluster; + +public sealed partial class AllocationDecision +{ + [JsonInclude, JsonPropertyName("decider")] + public string Decider { get; init; } + [JsonInclude, JsonPropertyName("decision")] + public Elastic.Clients.Elasticsearch.Cluster.AllocationExplainDecision Decision { get; init; } + [JsonInclude, JsonPropertyName("explanation")] + public string Explanation { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/AllocationStore.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/AllocationStore.g.cs new file mode 100644 index 00000000000..1d9ef9659c3 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/AllocationStore.g.cs @@ -0,0 +1,44 @@ +// 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.Cluster; + +public sealed partial class AllocationStore +{ + [JsonInclude, JsonPropertyName("allocation_id")] + public string AllocationId { get; init; } + [JsonInclude, JsonPropertyName("found")] + public bool Found { get; init; } + [JsonInclude, JsonPropertyName("in_sync")] + public bool InSync { get; init; } + [JsonInclude, JsonPropertyName("matching_size_in_bytes")] + public long MatchingSizeInBytes { get; init; } + [JsonInclude, JsonPropertyName("matching_sync_id")] + public bool MatchingSyncId { get; init; } + [JsonInclude, JsonPropertyName("store_exception")] + public string StoreException { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CharFilterTypes.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CharFilterTypes.g.cs new file mode 100644 index 00000000000..5661a755fb3 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CharFilterTypes.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.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.Cluster; + +public sealed partial class CharFilterTypes +{ + [JsonInclude, JsonPropertyName("analyzer_types")] + public IReadOnlyCollection AnalyzerTypes { get; init; } + [JsonInclude, JsonPropertyName("built_in_analyzers")] + public IReadOnlyCollection BuiltInAnalyzers { get; init; } + [JsonInclude, JsonPropertyName("built_in_char_filters")] + public IReadOnlyCollection BuiltInCharFilters { get; init; } + [JsonInclude, JsonPropertyName("built_in_filters")] + public IReadOnlyCollection BuiltInFilters { get; init; } + [JsonInclude, JsonPropertyName("built_in_tokenizers")] + public IReadOnlyCollection BuiltInTokenizers { get; init; } + [JsonInclude, JsonPropertyName("filter_types")] + public IReadOnlyCollection FilterTypes { get; init; } + [JsonInclude, JsonPropertyName("tokenizer_types")] + public IReadOnlyCollection TokenizerTypes { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterFileSystem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterFileSystem.g.cs new file mode 100644 index 00000000000..57ac52a0707 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterFileSystem.g.cs @@ -0,0 +1,38 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Cluster; + +public sealed partial class ClusterFileSystem +{ + [JsonInclude, JsonPropertyName("available_in_bytes")] + public long AvailableInBytes { get; init; } + [JsonInclude, JsonPropertyName("free_in_bytes")] + public long FreeInBytes { get; init; } + [JsonInclude, JsonPropertyName("total_in_bytes")] + public long TotalInBytes { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndices.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndices.g.cs new file mode 100644 index 00000000000..7a84e35ae82 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndices.g.cs @@ -0,0 +1,93 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Cluster; + +public sealed partial class ClusterIndices +{ + /// + /// Contains statistics about analyzers and analyzer components used in selected nodes. + /// + [JsonInclude, JsonPropertyName("analysis")] + public Elastic.Clients.Elasticsearch.Cluster.CharFilterTypes Analysis { get; init; } + + /// + /// Contains statistics about memory used for completion in selected nodes. + /// + [JsonInclude, JsonPropertyName("completion")] + public Elastic.Clients.Elasticsearch.CompletionStats Completion { get; init; } + + /// + /// Total number of indices with shards assigned to selected nodes. + /// + [JsonInclude, JsonPropertyName("count")] + public long Count { get; init; } + + /// + /// Contains counts for documents in selected nodes. + /// + [JsonInclude, JsonPropertyName("docs")] + public Elastic.Clients.Elasticsearch.DocStats Docs { get; init; } + + /// + /// Contains statistics about the field data cache of selected nodes. + /// + [JsonInclude, JsonPropertyName("fielddata")] + public Elastic.Clients.Elasticsearch.FielddataStats Fielddata { get; init; } + + /// + /// Contains statistics about field mappings in selected nodes. + /// + [JsonInclude, JsonPropertyName("mappings")] + public Elastic.Clients.Elasticsearch.Cluster.FieldTypesMappings Mappings { get; init; } + + /// + /// Contains statistics about the query cache of selected nodes. + /// + [JsonInclude, JsonPropertyName("query_cache")] + public Elastic.Clients.Elasticsearch.QueryCacheStats QueryCache { get; init; } + + /// + /// Contains statistics about segments in selected nodes. + /// + [JsonInclude, JsonPropertyName("segments")] + public Elastic.Clients.Elasticsearch.SegmentsStats Segments { get; init; } + + /// + /// Contains statistics about indices with shards assigned to selected nodes. + /// + [JsonInclude, JsonPropertyName("shards")] + public Elastic.Clients.Elasticsearch.Cluster.ClusterIndicesShards Shards { get; init; } + + /// + /// Contains statistics about the size of shards assigned to selected nodes. + /// + [JsonInclude, JsonPropertyName("store")] + public Elastic.Clients.Elasticsearch.StoreStats Store { get; init; } + [JsonInclude, JsonPropertyName("versions")] + public IReadOnlyCollection? Versions { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndicesShards.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndicesShards.g.cs new file mode 100644 index 00000000000..a6fdebac6fa --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndicesShards.g.cs @@ -0,0 +1,58 @@ +// 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.Cluster; + +/// +/// Contains statistics about shards assigned to selected nodes. +/// +public sealed partial class ClusterIndicesShards +{ + /// + /// Contains statistics about shards assigned to selected nodes. + /// + [JsonInclude, JsonPropertyName("index")] + public Elastic.Clients.Elasticsearch.Cluster.ClusterIndicesShardsIndex? Index { get; init; } + + /// + /// Number of primary shards assigned to selected nodes. + /// + [JsonInclude, JsonPropertyName("primaries")] + public double? Primaries { get; init; } + + /// + /// Ratio of replica shards to primary shards across all selected nodes. + /// + [JsonInclude, JsonPropertyName("replication")] + public double? Replication { get; init; } + + /// + /// Total number of shards assigned to selected nodes. + /// + [JsonInclude, JsonPropertyName("total")] + public double? Total { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndicesShardsIndex.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndicesShardsIndex.g.cs new file mode 100644 index 00000000000..d4f90e81e2b --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIndicesShardsIndex.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.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.Cluster; + +public sealed partial class ClusterIndicesShardsIndex +{ + /// + /// Contains statistics about the number of primary shards assigned to selected nodes. + /// + [JsonInclude, JsonPropertyName("primaries")] + public Elastic.Clients.Elasticsearch.Cluster.ClusterShardMetrics Primaries { get; init; } + + /// + /// Contains statistics about the number of replication shards assigned to selected nodes. + /// + [JsonInclude, JsonPropertyName("replication")] + public Elastic.Clients.Elasticsearch.Cluster.ClusterShardMetrics Replication { get; init; } + + /// + /// Contains statistics about the number of shards assigned to selected nodes. + /// + [JsonInclude, JsonPropertyName("shards")] + public Elastic.Clients.Elasticsearch.Cluster.ClusterShardMetrics Shards { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterInfo.g.cs new file mode 100644 index 00000000000..dc0aa489132 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterInfo.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.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.Cluster; + +public sealed partial class ClusterInfo +{ + [JsonInclude, JsonPropertyName("nodes")] + public IReadOnlyDictionary Nodes { get; init; } + [JsonInclude, JsonPropertyName("reserved_sizes")] + public IReadOnlyCollection ReservedSizes { get; init; } + [JsonInclude, JsonPropertyName("shard_data_set_sizes")] + public IReadOnlyDictionary? ShardDataSetSizes { get; init; } + [JsonInclude, JsonPropertyName("shard_paths")] + public IReadOnlyDictionary ShardPaths { get; init; } + [JsonInclude, JsonPropertyName("shard_sizes")] + public IReadOnlyDictionary ShardSizes { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIngest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIngest.g.cs new file mode 100644 index 00000000000..a97caf05403 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterIngest.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.Cluster; + +public sealed partial class ClusterIngest +{ + [JsonInclude, JsonPropertyName("number_of_pipelines")] + public int NumberOfPipelines { get; init; } + [JsonInclude, JsonPropertyName("processor_stats")] + public IReadOnlyDictionary ProcessorStats { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvm.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvm.g.cs new file mode 100644 index 00000000000..8178522ac4c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvm.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.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.Cluster; + +public sealed partial class ClusterJvm +{ + [JsonInclude, JsonPropertyName("max_uptime_in_millis")] + public long MaxUptimeInMillis { get; init; } + [JsonInclude, JsonPropertyName("mem")] + public Elastic.Clients.Elasticsearch.Cluster.ClusterJvmMemory Mem { get; init; } + [JsonInclude, JsonPropertyName("threads")] + public long Threads { get; init; } + [JsonInclude, JsonPropertyName("versions")] + public IReadOnlyCollection Versions { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvmMemory.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvmMemory.g.cs new file mode 100644 index 00000000000..15b379ffa18 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvmMemory.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.Cluster; + +public sealed partial class ClusterJvmMemory +{ + [JsonInclude, JsonPropertyName("heap_max_in_bytes")] + public long HeapMaxInBytes { get; init; } + [JsonInclude, JsonPropertyName("heap_used_in_bytes")] + public long HeapUsedInBytes { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvmVersion.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvmVersion.g.cs new file mode 100644 index 00000000000..fc187ab0d78 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterJvmVersion.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.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.Cluster; + +public sealed partial class ClusterJvmVersion +{ + [JsonInclude, JsonPropertyName("bundled_jdk")] + public bool BundledJdk { get; init; } + [JsonInclude, JsonPropertyName("count")] + public int Count { get; init; } + [JsonInclude, JsonPropertyName("using_bundled_jdk")] + public bool UsingBundledJdk { get; init; } + [JsonInclude, JsonPropertyName("version")] + public string Version { get; init; } + [JsonInclude, JsonPropertyName("vm_name")] + public string VmName { get; init; } + [JsonInclude, JsonPropertyName("vm_vendor")] + public string VmVendor { get; init; } + [JsonInclude, JsonPropertyName("vm_version")] + public string VmVersion { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNetworkTypes.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNetworkTypes.g.cs new file mode 100644 index 00000000000..2a55722dfd9 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNetworkTypes.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.Cluster; + +public sealed partial class ClusterNetworkTypes +{ + [JsonInclude, JsonPropertyName("http_types")] + public IReadOnlyDictionary HttpTypes { get; init; } + [JsonInclude, JsonPropertyName("transport_types")] + public IReadOnlyDictionary TransportTypes { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNodeCount.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNodeCount.g.cs new file mode 100644 index 00000000000..63845f8c99c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNodeCount.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.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.Cluster; + +public sealed partial class ClusterNodeCount +{ + [JsonInclude, JsonPropertyName("coordinating_only")] + public int CoordinatingOnly { get; init; } + [JsonInclude, JsonPropertyName("data")] + public int Data { get; init; } + [JsonInclude, JsonPropertyName("data_cold")] + public int DataCold { get; init; } + [JsonInclude, JsonPropertyName("data_content")] + public int DataContent { get; init; } + [JsonInclude, JsonPropertyName("data_frozen")] + public int? DataFrozen { get; init; } + [JsonInclude, JsonPropertyName("data_hot")] + public int DataHot { get; init; } + [JsonInclude, JsonPropertyName("data_warm")] + public int DataWarm { get; init; } + [JsonInclude, JsonPropertyName("ingest")] + public int Ingest { get; init; } + [JsonInclude, JsonPropertyName("master")] + public int Master { get; init; } + [JsonInclude, JsonPropertyName("ml")] + public int Ml { get; init; } + [JsonInclude, JsonPropertyName("remote_cluster_client")] + public int RemoteClusterClient { get; init; } + [JsonInclude, JsonPropertyName("total")] + public int Total { get; init; } + [JsonInclude, JsonPropertyName("transform")] + public int Transform { get; init; } + [JsonInclude, JsonPropertyName("voting_only")] + public int VotingOnly { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNodes.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNodes.g.cs new file mode 100644 index 00000000000..c13d828d95c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterNodes.g.cs @@ -0,0 +1,95 @@ +// 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.Cluster; + +public sealed partial class ClusterNodes +{ + /// + /// Contains counts for nodes selected by the request’s node filters. + /// + [JsonInclude, JsonPropertyName("count")] + public Elastic.Clients.Elasticsearch.Cluster.ClusterNodeCount Count { get; init; } + + /// + /// Contains statistics about the discovery types used by selected nodes. + /// + [JsonInclude, JsonPropertyName("discovery_types")] + public IReadOnlyDictionary DiscoveryTypes { get; init; } + + /// + /// Contains statistics about file stores by selected nodes. + /// + [JsonInclude, JsonPropertyName("fs")] + public Elastic.Clients.Elasticsearch.Cluster.ClusterFileSystem Fs { get; init; } + [JsonInclude, JsonPropertyName("indexing_pressure")] + public Elastic.Clients.Elasticsearch.Cluster.IndexingPressure IndexingPressure { get; init; } + [JsonInclude, JsonPropertyName("ingest")] + public Elastic.Clients.Elasticsearch.Cluster.ClusterIngest Ingest { get; init; } + + /// + /// Contains statistics about the Java Virtual Machines (JVMs) used by selected nodes. + /// + [JsonInclude, JsonPropertyName("jvm")] + public Elastic.Clients.Elasticsearch.Cluster.ClusterJvm Jvm { get; init; } + + /// + /// Contains statistics about the transport and HTTP networks used by selected nodes. + /// + [JsonInclude, JsonPropertyName("network_types")] + public Elastic.Clients.Elasticsearch.Cluster.ClusterNetworkTypes NetworkTypes { get; init; } + + /// + /// Contains statistics about the operating systems used by selected nodes. + /// + [JsonInclude, JsonPropertyName("os")] + public Elastic.Clients.Elasticsearch.Cluster.ClusterOperatingSystem Os { get; init; } + + /// + /// Contains statistics about Elasticsearch distributions installed on selected nodes. + /// + [JsonInclude, JsonPropertyName("packaging_types")] + public IReadOnlyCollection PackagingTypes { get; init; } + + /// + /// Contains statistics about installed plugins and modules by selected nodes. + /// + [JsonInclude, JsonPropertyName("plugins")] + public IReadOnlyCollection Plugins { get; init; } + + /// + /// Contains statistics about processes used by selected nodes. + /// + [JsonInclude, JsonPropertyName("process")] + public Elastic.Clients.Elasticsearch.Cluster.ClusterProcess Process { get; init; } + + /// + /// Array of Elasticsearch versions used on selected nodes. + /// + [JsonInclude, JsonPropertyName("versions")] + public IReadOnlyCollection Versions { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystem.g.cs new file mode 100644 index 00000000000..4526a044bb3 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystem.g.cs @@ -0,0 +1,44 @@ +// 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.Cluster; + +public sealed partial class ClusterOperatingSystem +{ + [JsonInclude, JsonPropertyName("allocated_processors")] + public int AllocatedProcessors { get; init; } + [JsonInclude, JsonPropertyName("architectures")] + public IReadOnlyCollection? Architectures { get; init; } + [JsonInclude, JsonPropertyName("available_processors")] + public int AvailableProcessors { get; init; } + [JsonInclude, JsonPropertyName("mem")] + public Elastic.Clients.Elasticsearch.Cluster.OperatingSystemMemoryInfo Mem { get; init; } + [JsonInclude, JsonPropertyName("names")] + public IReadOnlyCollection Names { get; init; } + [JsonInclude, JsonPropertyName("pretty_names")] + public IReadOnlyCollection PrettyNames { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemArchitecture.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemArchitecture.g.cs new file mode 100644 index 00000000000..b45b434350c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemArchitecture.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.Cluster; + +public sealed partial class ClusterOperatingSystemArchitecture +{ + [JsonInclude, JsonPropertyName("arch")] + public string Arch { get; init; } + [JsonInclude, JsonPropertyName("count")] + public int Count { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemName.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemName.g.cs new file mode 100644 index 00000000000..03f14dfe69e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemName.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.Cluster; + +public sealed partial class ClusterOperatingSystemName +{ + [JsonInclude, JsonPropertyName("count")] + public int Count { 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/Cluster/ClusterOperatingSystemPrettyName.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemPrettyName.g.cs new file mode 100644 index 00000000000..935b4d9fd32 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterOperatingSystemPrettyName.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.Cluster; + +public sealed partial class ClusterOperatingSystemPrettyName +{ + [JsonInclude, JsonPropertyName("count")] + public int Count { get; init; } + [JsonInclude, JsonPropertyName("pretty_name")] + public string PrettyName { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcess.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcess.g.cs new file mode 100644 index 00000000000..407ec88b922 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcess.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.Cluster; + +public sealed partial class ClusterProcess +{ + [JsonInclude, JsonPropertyName("cpu")] + public Elastic.Clients.Elasticsearch.Cluster.ClusterProcessCpu Cpu { get; init; } + [JsonInclude, JsonPropertyName("open_file_descriptors")] + public Elastic.Clients.Elasticsearch.Cluster.ClusterProcessOpenFileDescriptors OpenFileDescriptors { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessCpu.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessCpu.g.cs new file mode 100644 index 00000000000..1eacd5f2993 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessCpu.g.cs @@ -0,0 +1,34 @@ +// 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.Cluster; + +public sealed partial class ClusterProcessCpu +{ + [JsonInclude, JsonPropertyName("percent")] + public int Percent { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessOpenFileDescriptors.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessOpenFileDescriptors.g.cs new file mode 100644 index 00000000000..9d1e73918c3 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessOpenFileDescriptors.g.cs @@ -0,0 +1,38 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Cluster; + +public sealed partial class ClusterProcessOpenFileDescriptors +{ + [JsonInclude, JsonPropertyName("avg")] + public long Avg { get; init; } + [JsonInclude, JsonPropertyName("max")] + public long Max { get; init; } + [JsonInclude, JsonPropertyName("min")] + public long Min { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessor.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessor.g.cs new file mode 100644 index 00000000000..ad4908eaa76 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterProcessor.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.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.Cluster; + +public sealed partial class ClusterProcessor +{ + [JsonInclude, JsonPropertyName("count")] + public long Count { get; init; } + [JsonInclude, JsonPropertyName("current")] + public long Current { get; init; } + [JsonInclude, JsonPropertyName("failed")] + public long Failed { get; init; } + [JsonInclude, JsonPropertyName("time")] + public Elastic.Clients.Elasticsearch.Duration? Time { get; init; } + [JsonInclude, JsonPropertyName("time_in_millis")] + public long TimeInMillis { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterShardMetrics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterShardMetrics.g.cs new file mode 100644 index 00000000000..c4588747ac7 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ClusterShardMetrics.g.cs @@ -0,0 +1,38 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Cluster; + +public sealed partial class ClusterShardMetrics +{ + [JsonInclude, JsonPropertyName("avg")] + public double Avg { get; init; } + [JsonInclude, JsonPropertyName("max")] + public double Max { get; init; } + [JsonInclude, JsonPropertyName("min")] + public double Min { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CurrentNode.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CurrentNode.g.cs new file mode 100644 index 00000000000..55c1a5db8bf --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/CurrentNode.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.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.Cluster; + +public sealed partial class CurrentNode +{ + [JsonInclude, JsonPropertyName("attributes")] + public IReadOnlyDictionary Attributes { get; init; } + [JsonInclude, JsonPropertyName("id")] + public string Id { get; init; } + [JsonInclude, JsonPropertyName("name")] + public string Name { get; init; } + [JsonInclude, JsonPropertyName("transport_address")] + public string TransportAddress { get; init; } + [JsonInclude, JsonPropertyName("weight_ranking")] + public int WeightRanking { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/DiskUsage.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/DiskUsage.g.cs new file mode 100644 index 00000000000..557f72de4a9 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/DiskUsage.g.cs @@ -0,0 +1,44 @@ +// 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.Cluster; + +public sealed partial class DiskUsage +{ + [JsonInclude, JsonPropertyName("free_bytes")] + public long FreeBytes { get; init; } + [JsonInclude, JsonPropertyName("free_disk_percent")] + public double FreeDiskPercent { get; init; } + [JsonInclude, JsonPropertyName("path")] + public string Path { get; init; } + [JsonInclude, JsonPropertyName("total_bytes")] + public long TotalBytes { get; init; } + [JsonInclude, JsonPropertyName("used_bytes")] + public long UsedBytes { get; init; } + [JsonInclude, JsonPropertyName("used_disk_percent")] + public double UsedDiskPercent { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/FieldTypes.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/FieldTypes.g.cs new file mode 100644 index 00000000000..503d96c4b27 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/FieldTypes.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.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.Cluster; + +public sealed partial class FieldTypes +{ + [JsonInclude, JsonPropertyName("count")] + public int Count { get; init; } + [JsonInclude, JsonPropertyName("index_count")] + public int IndexCount { get; init; } + [JsonInclude, JsonPropertyName("indexed_vector_count")] + public long? IndexedVectorCount { get; init; } + [JsonInclude, JsonPropertyName("indexed_vector_dim_max")] + public long? IndexedVectorDimMax { get; init; } + [JsonInclude, JsonPropertyName("indexed_vector_dim_min")] + public long? IndexedVectorDimMin { get; init; } + [JsonInclude, JsonPropertyName("name")] + public string Name { get; init; } + [JsonInclude, JsonPropertyName("script_count")] + public int? ScriptCount { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/FieldTypesMappings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/FieldTypesMappings.g.cs new file mode 100644 index 00000000000..b9153916e56 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/FieldTypesMappings.g.cs @@ -0,0 +1,44 @@ +// 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.Cluster; + +public sealed partial class FieldTypesMappings +{ + [JsonInclude, JsonPropertyName("field_types")] + public IReadOnlyCollection FieldTypes { get; init; } + [JsonInclude, JsonPropertyName("runtime_field_types")] + public IReadOnlyCollection? RuntimeFieldTypes { get; init; } + [JsonInclude, JsonPropertyName("total_deduplicated_field_count")] + public int? TotalDeduplicatedFieldCount { get; init; } + [JsonInclude, JsonPropertyName("total_deduplicated_mapping_size")] + public Elastic.Clients.Elasticsearch.ByteSize? TotalDeduplicatedMappingSize { get; init; } + [JsonInclude, JsonPropertyName("total_deduplicated_mapping_size_in_bytes")] + public long? TotalDeduplicatedMappingSizeInBytes { get; init; } + [JsonInclude, JsonPropertyName("total_field_count")] + public int? TotalFieldCount { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexingPressure.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexingPressure.g.cs new file mode 100644 index 00000000000..34389f922d8 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexingPressure.g.cs @@ -0,0 +1,34 @@ +// 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.Cluster; + +public sealed partial class IndexingPressure +{ + [JsonInclude, JsonPropertyName("memory")] + public Elastic.Clients.Elasticsearch.Cluster.IndexingPressureMemory Memory { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexingPressureMemory.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexingPressureMemory.g.cs new file mode 100644 index 00000000000..d46aa89e579 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexingPressureMemory.g.cs @@ -0,0 +1,38 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Cluster; + +public sealed partial class IndexingPressureMemory +{ + [JsonInclude, JsonPropertyName("current")] + public Elastic.Clients.Elasticsearch.Cluster.IndexingPressureMemorySummary Current { get; init; } + [JsonInclude, JsonPropertyName("limit_in_bytes")] + public long LimitInBytes { get; init; } + [JsonInclude, JsonPropertyName("total")] + public Elastic.Clients.Elasticsearch.Cluster.IndexingPressureMemorySummary Total { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexingPressureMemorySummary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexingPressureMemorySummary.g.cs new file mode 100644 index 00000000000..31340f1b41e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndexingPressureMemorySummary.g.cs @@ -0,0 +1,48 @@ +// 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.Cluster; + +public sealed partial class IndexingPressureMemorySummary +{ + [JsonInclude, JsonPropertyName("all_in_bytes")] + public long AllInBytes { get; init; } + [JsonInclude, JsonPropertyName("combined_coordinating_and_primary_in_bytes")] + public long CombinedCoordinatingAndPrimaryInBytes { get; init; } + [JsonInclude, JsonPropertyName("coordinating_in_bytes")] + public long CoordinatingInBytes { get; init; } + [JsonInclude, JsonPropertyName("coordinating_rejections")] + public long? CoordinatingRejections { get; init; } + [JsonInclude, JsonPropertyName("primary_in_bytes")] + public long PrimaryInBytes { get; init; } + [JsonInclude, JsonPropertyName("primary_rejections")] + public long? PrimaryRejections { get; init; } + [JsonInclude, JsonPropertyName("replica_in_bytes")] + public long ReplicaInBytes { get; init; } + [JsonInclude, JsonPropertyName("replica_rejections")] + public long? ReplicaRejections { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndicesVersions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndicesVersions.g.cs new file mode 100644 index 00000000000..a3e294fae8c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/IndicesVersions.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.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.Cluster; + +public sealed partial class IndicesVersions +{ + [JsonInclude, JsonPropertyName("index_count")] + public int IndexCount { get; init; } + [JsonInclude, JsonPropertyName("primary_shard_count")] + public int PrimaryShardCount { get; init; } + [JsonInclude, JsonPropertyName("total_primary_bytes")] + public long TotalPrimaryBytes { get; init; } + [JsonInclude, JsonPropertyName("version")] + public string Version { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodeAllocationExplanation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodeAllocationExplanation.g.cs new file mode 100644 index 00000000000..a124d639779 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodeAllocationExplanation.g.cs @@ -0,0 +1,48 @@ +// 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.Cluster; + +public sealed partial class NodeAllocationExplanation +{ + [JsonInclude, JsonPropertyName("deciders")] + public IReadOnlyCollection Deciders { get; init; } + [JsonInclude, JsonPropertyName("node_attributes")] + public IReadOnlyDictionary NodeAttributes { get; init; } + [JsonInclude, JsonPropertyName("node_decision")] + public Elastic.Clients.Elasticsearch.Cluster.Decision NodeDecision { get; init; } + [JsonInclude, JsonPropertyName("node_id")] + public string NodeId { get; init; } + [JsonInclude, JsonPropertyName("node_name")] + public string NodeName { get; init; } + [JsonInclude, JsonPropertyName("store")] + public Elastic.Clients.Elasticsearch.Cluster.AllocationStore? Store { get; init; } + [JsonInclude, JsonPropertyName("transport_address")] + public string TransportAddress { get; init; } + [JsonInclude, JsonPropertyName("weight_ranking")] + public int WeightRanking { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodeDiskUsage.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodeDiskUsage.g.cs new file mode 100644 index 00000000000..19c4c118637 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodeDiskUsage.g.cs @@ -0,0 +1,38 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Cluster; + +public sealed partial class NodeDiskUsage +{ + [JsonInclude, JsonPropertyName("least_available")] + public Elastic.Clients.Elasticsearch.Cluster.DiskUsage LeastAvailable { get; init; } + [JsonInclude, JsonPropertyName("most_available")] + public Elastic.Clients.Elasticsearch.Cluster.DiskUsage MostAvailable { get; init; } + [JsonInclude, JsonPropertyName("node_name")] + public string NodeName { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodePackagingType.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodePackagingType.g.cs new file mode 100644 index 00000000000..5aaabe0f4d4 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/NodePackagingType.g.cs @@ -0,0 +1,38 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Cluster; + +public sealed partial class NodePackagingType +{ + [JsonInclude, JsonPropertyName("count")] + public int Count { get; init; } + [JsonInclude, JsonPropertyName("flavor")] + public string Flavor { get; init; } + [JsonInclude, JsonPropertyName("type")] + public string Type { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/OperatingSystemMemoryInfo.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/OperatingSystemMemoryInfo.g.cs new file mode 100644 index 00000000000..79d496f7415 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/OperatingSystemMemoryInfo.g.cs @@ -0,0 +1,44 @@ +// 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.Cluster; + +public sealed partial class OperatingSystemMemoryInfo +{ + [JsonInclude, JsonPropertyName("adjusted_total_in_bytes")] + public long? AdjustedTotalInBytes { get; init; } + [JsonInclude, JsonPropertyName("free_in_bytes")] + public long FreeInBytes { get; init; } + [JsonInclude, JsonPropertyName("free_percent")] + public int FreePercent { get; init; } + [JsonInclude, JsonPropertyName("total_in_bytes")] + public long TotalInBytes { get; init; } + [JsonInclude, JsonPropertyName("used_in_bytes")] + public long UsedInBytes { get; init; } + [JsonInclude, JsonPropertyName("used_percent")] + public int UsedPercent { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/PendingTask.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/PendingTask.g.cs new file mode 100644 index 00000000000..57b561be0da --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/PendingTask.g.cs @@ -0,0 +1,44 @@ +// 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.Cluster; + +public sealed partial class PendingTask +{ + [JsonInclude, JsonPropertyName("executing")] + public bool Executing { get; init; } + [JsonInclude, JsonPropertyName("insert_order")] + public int InsertOrder { get; init; } + [JsonInclude, JsonPropertyName("priority")] + public string Priority { get; init; } + [JsonInclude, JsonPropertyName("source")] + public string Source { get; init; } + [JsonInclude, JsonPropertyName("time_in_queue")] + public Elastic.Clients.Elasticsearch.Duration? TimeInQueue { get; init; } + [JsonInclude, JsonPropertyName("time_in_queue_millis")] + public long TimeInQueueMillis { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ReservedSize.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ReservedSize.g.cs new file mode 100644 index 00000000000..3a0c32f54f0 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/ReservedSize.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.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.Cluster; + +public sealed partial class ReservedSize +{ + [JsonInclude, JsonPropertyName("node_id")] + public string NodeId { get; init; } + [JsonInclude, JsonPropertyName("path")] + public string Path { get; init; } + [JsonInclude, JsonPropertyName("shards")] + public IReadOnlyCollection Shards { get; init; } + [JsonInclude, JsonPropertyName("total")] + public long Total { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RuntimeFieldTypes.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RuntimeFieldTypes.g.cs new file mode 100644 index 00000000000..654d65e3d45 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Cluster/RuntimeFieldTypes.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.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.Cluster; + +public sealed partial class RuntimeFieldTypes +{ + [JsonInclude, JsonPropertyName("chars_max")] + public int CharsMax { get; init; } + [JsonInclude, JsonPropertyName("chars_total")] + public int CharsTotal { get; init; } + [JsonInclude, JsonPropertyName("count")] + public int Count { get; init; } + [JsonInclude, JsonPropertyName("doc_max")] + public int DocMax { get; init; } + [JsonInclude, JsonPropertyName("doc_total")] + public int DocTotal { get; init; } + [JsonInclude, JsonPropertyName("index_count")] + public int IndexCount { get; init; } + [JsonInclude, JsonPropertyName("lang")] + public IReadOnlyCollection Lang { get; init; } + [JsonInclude, JsonPropertyName("lines_max")] + public int LinesMax { get; init; } + [JsonInclude, JsonPropertyName("lines_total")] + public int LinesTotal { get; init; } + [JsonInclude, JsonPropertyName("name")] + public string Name { get; init; } + [JsonInclude, JsonPropertyName("scriptless_count")] + public int ScriptlessCount { get; init; } + [JsonInclude, JsonPropertyName("shadowed_count")] + public int ShadowedCount { get; init; } + [JsonInclude, JsonPropertyName("source_max")] + public int SourceMax { get; init; } + [JsonInclude, JsonPropertyName("source_total")] + public int SourceTotal { get; init; } +} \ No newline at end of file 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 new file mode 100644 index 00000000000..c53f5dba775 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Mtermvectors/MultiTermVectorsOperation.g.cs @@ -0,0 +1,480 @@ +// 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.Core.Mtermvectors; + +public sealed partial class MultiTermVectorsOperation +{ + [JsonInclude, JsonPropertyName("_id")] + public Elastic.Clients.Elasticsearch.Id Id { get; set; } + [JsonInclude, JsonPropertyName("_index")] + public Elastic.Clients.Elasticsearch.IndexName? Index { get; set; } + [JsonInclude, JsonPropertyName("doc")] + public object? Doc { get; set; } + [JsonInclude, JsonPropertyName("field_statistics")] + public bool? FieldStatistics { get; set; } + [JsonInclude, JsonPropertyName("fields")] + public Elastic.Clients.Elasticsearch.Fields? Fields { get; set; } + [JsonInclude, JsonPropertyName("filter")] + public Elastic.Clients.Elasticsearch.Core.TermVectors.Filter? Filter { get; set; } + [JsonInclude, JsonPropertyName("offsets")] + public bool? Offsets { get; set; } + [JsonInclude, JsonPropertyName("payloads")] + public bool? Payloads { get; set; } + [JsonInclude, JsonPropertyName("positions")] + public bool? Positions { get; set; } + [JsonInclude, JsonPropertyName("routing")] + public Elastic.Clients.Elasticsearch.Routing? Routing { get; set; } + [JsonInclude, JsonPropertyName("term_statistics")] + public bool? TermStatistics { get; set; } + [JsonInclude, JsonPropertyName("version")] + public long? Version { get; set; } + [JsonInclude, JsonPropertyName("version_type")] + public Elastic.Clients.Elasticsearch.VersionType? VersionType { get; set; } +} + +public sealed partial class MultiTermVectorsOperationDescriptor : SerializableDescriptor> +{ + internal MultiTermVectorsOperationDescriptor(Action> configure) => configure.Invoke(this); + + public MultiTermVectorsOperationDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Id IdValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexName? IndexValue { get; set; } + private object? DocValue { get; set; } + private bool? FieldStatisticsValue { get; set; } + private Elastic.Clients.Elasticsearch.Fields? FieldsValue { get; set; } + private Elastic.Clients.Elasticsearch.Core.TermVectors.Filter? FilterValue { get; set; } + private Core.TermVectors.FilterDescriptor FilterDescriptor { get; set; } + private Action FilterDescriptorAction { get; set; } + private bool? OffsetsValue { get; set; } + private bool? PayloadsValue { get; set; } + private bool? PositionsValue { get; set; } + private Elastic.Clients.Elasticsearch.Routing? RoutingValue { get; set; } + private bool? TermStatisticsValue { get; set; } + private long? VersionValue { get; set; } + private Elastic.Clients.Elasticsearch.VersionType? VersionTypeValue { get; set; } + + public MultiTermVectorsOperationDescriptor Id(Elastic.Clients.Elasticsearch.Id id) + { + IdValue = id; + return Self; + } + + public MultiTermVectorsOperationDescriptor Index(Elastic.Clients.Elasticsearch.IndexName? index) + { + IndexValue = index; + return Self; + } + + public MultiTermVectorsOperationDescriptor Doc(object? doc) + { + DocValue = doc; + return Self; + } + + public MultiTermVectorsOperationDescriptor FieldStatistics(bool? fieldStatistics = true) + { + FieldStatisticsValue = fieldStatistics; + return Self; + } + + public MultiTermVectorsOperationDescriptor Fields(Elastic.Clients.Elasticsearch.Fields? fields) + { + FieldsValue = fields; + return Self; + } + + public MultiTermVectorsOperationDescriptor Filter(Elastic.Clients.Elasticsearch.Core.TermVectors.Filter? filter) + { + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterValue = filter; + return Self; + } + + public MultiTermVectorsOperationDescriptor Filter(Core.TermVectors.FilterDescriptor descriptor) + { + FilterValue = null; + FilterDescriptorAction = null; + FilterDescriptor = descriptor; + return Self; + } + + public MultiTermVectorsOperationDescriptor Filter(Action configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorAction = configure; + return Self; + } + + public MultiTermVectorsOperationDescriptor Offsets(bool? offsets = true) + { + OffsetsValue = offsets; + return Self; + } + + public MultiTermVectorsOperationDescriptor Payloads(bool? payloads = true) + { + PayloadsValue = payloads; + return Self; + } + + public MultiTermVectorsOperationDescriptor Positions(bool? positions = true) + { + PositionsValue = positions; + return Self; + } + + public MultiTermVectorsOperationDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) + { + RoutingValue = routing; + return Self; + } + + public MultiTermVectorsOperationDescriptor TermStatistics(bool? termStatistics = true) + { + TermStatisticsValue = termStatistics; + return Self; + } + + public MultiTermVectorsOperationDescriptor Version(long? version) + { + VersionValue = version; + return Self; + } + + public MultiTermVectorsOperationDescriptor VersionType(Elastic.Clients.Elasticsearch.VersionType? versionType) + { + VersionTypeValue = versionType; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("_id"); + JsonSerializer.Serialize(writer, IdValue, options); + if (IndexValue is not null) + { + writer.WritePropertyName("_index"); + JsonSerializer.Serialize(writer, IndexValue, options); + } + + if (DocValue is not null) + { + writer.WritePropertyName("doc"); + JsonSerializer.Serialize(writer, DocValue, options); + } + + if (FieldStatisticsValue.HasValue) + { + writer.WritePropertyName("field_statistics"); + writer.WriteBooleanValue(FieldStatisticsValue.Value); + } + + if (FieldsValue is not null) + { + writer.WritePropertyName("fields"); + JsonSerializer.Serialize(writer, FieldsValue, 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 Core.TermVectors.FilterDescriptor(FilterDescriptorAction), options); + } + else if (FilterValue is not null) + { + writer.WritePropertyName("filter"); + JsonSerializer.Serialize(writer, FilterValue, options); + } + + if (OffsetsValue.HasValue) + { + writer.WritePropertyName("offsets"); + writer.WriteBooleanValue(OffsetsValue.Value); + } + + if (PayloadsValue.HasValue) + { + writer.WritePropertyName("payloads"); + writer.WriteBooleanValue(PayloadsValue.Value); + } + + if (PositionsValue.HasValue) + { + writer.WritePropertyName("positions"); + writer.WriteBooleanValue(PositionsValue.Value); + } + + if (RoutingValue is not null) + { + writer.WritePropertyName("routing"); + JsonSerializer.Serialize(writer, RoutingValue, options); + } + + if (TermStatisticsValue.HasValue) + { + writer.WritePropertyName("term_statistics"); + writer.WriteBooleanValue(TermStatisticsValue.Value); + } + + if (VersionValue is not null) + { + writer.WritePropertyName("version"); + JsonSerializer.Serialize(writer, VersionValue, options); + } + + if (VersionTypeValue is not null) + { + writer.WritePropertyName("version_type"); + JsonSerializer.Serialize(writer, VersionTypeValue, options); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class MultiTermVectorsOperationDescriptor : SerializableDescriptor +{ + internal MultiTermVectorsOperationDescriptor(Action configure) => configure.Invoke(this); + + public MultiTermVectorsOperationDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Id IdValue { get; set; } + private Elastic.Clients.Elasticsearch.IndexName? IndexValue { get; set; } + private object? DocValue { get; set; } + private bool? FieldStatisticsValue { get; set; } + private Elastic.Clients.Elasticsearch.Fields? FieldsValue { get; set; } + private Elastic.Clients.Elasticsearch.Core.TermVectors.Filter? FilterValue { get; set; } + private Core.TermVectors.FilterDescriptor FilterDescriptor { get; set; } + private Action FilterDescriptorAction { get; set; } + private bool? OffsetsValue { get; set; } + private bool? PayloadsValue { get; set; } + private bool? PositionsValue { get; set; } + private Elastic.Clients.Elasticsearch.Routing? RoutingValue { get; set; } + private bool? TermStatisticsValue { get; set; } + private long? VersionValue { get; set; } + private Elastic.Clients.Elasticsearch.VersionType? VersionTypeValue { get; set; } + + public MultiTermVectorsOperationDescriptor Id(Elastic.Clients.Elasticsearch.Id id) + { + IdValue = id; + return Self; + } + + public MultiTermVectorsOperationDescriptor Index(Elastic.Clients.Elasticsearch.IndexName? index) + { + IndexValue = index; + return Self; + } + + public MultiTermVectorsOperationDescriptor Doc(object? doc) + { + DocValue = doc; + return Self; + } + + public MultiTermVectorsOperationDescriptor FieldStatistics(bool? fieldStatistics = true) + { + FieldStatisticsValue = fieldStatistics; + return Self; + } + + public MultiTermVectorsOperationDescriptor Fields(Elastic.Clients.Elasticsearch.Fields? fields) + { + FieldsValue = fields; + return Self; + } + + public MultiTermVectorsOperationDescriptor Filter(Elastic.Clients.Elasticsearch.Core.TermVectors.Filter? filter) + { + FilterDescriptor = null; + FilterDescriptorAction = null; + FilterValue = filter; + return Self; + } + + public MultiTermVectorsOperationDescriptor Filter(Core.TermVectors.FilterDescriptor descriptor) + { + FilterValue = null; + FilterDescriptorAction = null; + FilterDescriptor = descriptor; + return Self; + } + + public MultiTermVectorsOperationDescriptor Filter(Action configure) + { + FilterValue = null; + FilterDescriptor = null; + FilterDescriptorAction = configure; + return Self; + } + + public MultiTermVectorsOperationDescriptor Offsets(bool? offsets = true) + { + OffsetsValue = offsets; + return Self; + } + + public MultiTermVectorsOperationDescriptor Payloads(bool? payloads = true) + { + PayloadsValue = payloads; + return Self; + } + + public MultiTermVectorsOperationDescriptor Positions(bool? positions = true) + { + PositionsValue = positions; + return Self; + } + + public MultiTermVectorsOperationDescriptor Routing(Elastic.Clients.Elasticsearch.Routing? routing) + { + RoutingValue = routing; + return Self; + } + + public MultiTermVectorsOperationDescriptor TermStatistics(bool? termStatistics = true) + { + TermStatisticsValue = termStatistics; + return Self; + } + + public MultiTermVectorsOperationDescriptor Version(long? version) + { + VersionValue = version; + return Self; + } + + public MultiTermVectorsOperationDescriptor VersionType(Elastic.Clients.Elasticsearch.VersionType? versionType) + { + VersionTypeValue = versionType; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("_id"); + JsonSerializer.Serialize(writer, IdValue, options); + if (IndexValue is not null) + { + writer.WritePropertyName("_index"); + JsonSerializer.Serialize(writer, IndexValue, options); + } + + if (DocValue is not null) + { + writer.WritePropertyName("doc"); + JsonSerializer.Serialize(writer, DocValue, options); + } + + if (FieldStatisticsValue.HasValue) + { + writer.WritePropertyName("field_statistics"); + writer.WriteBooleanValue(FieldStatisticsValue.Value); + } + + if (FieldsValue is not null) + { + writer.WritePropertyName("fields"); + JsonSerializer.Serialize(writer, FieldsValue, 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 Core.TermVectors.FilterDescriptor(FilterDescriptorAction), options); + } + else if (FilterValue is not null) + { + writer.WritePropertyName("filter"); + JsonSerializer.Serialize(writer, FilterValue, options); + } + + if (OffsetsValue.HasValue) + { + writer.WritePropertyName("offsets"); + writer.WriteBooleanValue(OffsetsValue.Value); + } + + if (PayloadsValue.HasValue) + { + writer.WritePropertyName("payloads"); + writer.WriteBooleanValue(PayloadsValue.Value); + } + + if (PositionsValue.HasValue) + { + writer.WritePropertyName("positions"); + writer.WriteBooleanValue(PositionsValue.Value); + } + + if (RoutingValue is not null) + { + writer.WritePropertyName("routing"); + JsonSerializer.Serialize(writer, RoutingValue, options); + } + + if (TermStatisticsValue.HasValue) + { + writer.WritePropertyName("term_statistics"); + writer.WriteBooleanValue(TermStatisticsValue.Value); + } + + if (VersionValue is not null) + { + writer.WritePropertyName("version"); + JsonSerializer.Serialize(writer, VersionValue, 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/_Generated/Types/Core/Mtermvectors/MultiTermVectorsResult.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Mtermvectors/MultiTermVectorsResult.g.cs new file mode 100644 index 00000000000..5f38533babf --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Mtermvectors/MultiTermVectorsResult.g.cs @@ -0,0 +1,47 @@ +// 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.Core.Mtermvectors; + +public sealed partial class MultiTermVectorsResult +{ + [JsonInclude, JsonPropertyName("_id")] + public string Id { get; init; } + [JsonInclude, JsonPropertyName("_index")] + public string Index { get; init; } + [JsonInclude, JsonPropertyName("_version")] + public long? Version { get; init; } + [JsonInclude, JsonPropertyName("error")] + public Elastic.Clients.Elasticsearch.ErrorCause? Error { get; init; } + [JsonInclude, JsonPropertyName("found")] + public bool? Found { get; init; } + [JsonInclude, JsonPropertyName("term_vectors")] + [ReadOnlyFieldDictionaryConverter(typeof(Elastic.Clients.Elasticsearch.Core.TermVectors.TermVector))] + public IReadOnlyDictionary? TermVectors { get; init; } + [JsonInclude, JsonPropertyName("took")] + public long? Took { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/FieldStatistics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/FieldStatistics.g.cs new file mode 100644 index 00000000000..321c4fd9629 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/FieldStatistics.g.cs @@ -0,0 +1,38 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch.Core.TermVectors; + +public sealed partial class FieldStatistics +{ + [JsonInclude, JsonPropertyName("doc_count")] + public int DocCount { get; init; } + [JsonInclude, JsonPropertyName("sum_doc_freq")] + public long SumDocFreq { get; init; } + [JsonInclude, JsonPropertyName("sum_ttf")] + public long SumTtf { get; init; } +} \ No newline at end of file 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 new file mode 100644 index 00000000000..719dba32882 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Filter.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.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.Core.TermVectors; + +public sealed partial class Filter +{ + [JsonInclude, JsonPropertyName("max_doc_freq")] + public int? MaxDocFreq { get; set; } + [JsonInclude, JsonPropertyName("max_num_terms")] + public int? MaxNumTerms { get; set; } + [JsonInclude, JsonPropertyName("max_term_freq")] + public int? MaxTermFreq { get; set; } + [JsonInclude, JsonPropertyName("max_word_length")] + public int? MaxWordLength { get; set; } + [JsonInclude, JsonPropertyName("min_doc_freq")] + public int? MinDocFreq { get; set; } + [JsonInclude, JsonPropertyName("min_term_freq")] + public int? MinTermFreq { get; set; } + [JsonInclude, JsonPropertyName("min_word_length")] + public int? MinWordLength { get; set; } +} + +public sealed partial class FilterDescriptor : SerializableDescriptor +{ + internal FilterDescriptor(Action configure) => configure.Invoke(this); + + public FilterDescriptor() : base() + { + } + + private int? MaxDocFreqValue { get; set; } + private int? MaxNumTermsValue { get; set; } + private int? MaxTermFreqValue { get; set; } + private int? MaxWordLengthValue { get; set; } + private int? MinDocFreqValue { get; set; } + private int? MinTermFreqValue { get; set; } + private int? MinWordLengthValue { get; set; } + + public FilterDescriptor MaxDocFreq(int? maxDocFreq) + { + MaxDocFreqValue = maxDocFreq; + return Self; + } + + public FilterDescriptor MaxNumTerms(int? maxNumTerms) + { + MaxNumTermsValue = maxNumTerms; + return Self; + } + + public FilterDescriptor MaxTermFreq(int? maxTermFreq) + { + MaxTermFreqValue = maxTermFreq; + return Self; + } + + public FilterDescriptor MaxWordLength(int? maxWordLength) + { + MaxWordLengthValue = maxWordLength; + return Self; + } + + public FilterDescriptor MinDocFreq(int? minDocFreq) + { + MinDocFreqValue = minDocFreq; + return Self; + } + + public FilterDescriptor MinTermFreq(int? minTermFreq) + { + MinTermFreqValue = minTermFreq; + return Self; + } + + public FilterDescriptor MinWordLength(int? minWordLength) + { + MinWordLengthValue = minWordLength; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (MaxDocFreqValue.HasValue) + { + writer.WritePropertyName("max_doc_freq"); + writer.WriteNumberValue(MaxDocFreqValue.Value); + } + + if (MaxNumTermsValue.HasValue) + { + writer.WritePropertyName("max_num_terms"); + writer.WriteNumberValue(MaxNumTermsValue.Value); + } + + if (MaxTermFreqValue.HasValue) + { + writer.WritePropertyName("max_term_freq"); + writer.WriteNumberValue(MaxTermFreqValue.Value); + } + + if (MaxWordLengthValue.HasValue) + { + writer.WritePropertyName("max_word_length"); + writer.WriteNumberValue(MaxWordLengthValue.Value); + } + + if (MinDocFreqValue.HasValue) + { + writer.WritePropertyName("min_doc_freq"); + writer.WriteNumberValue(MinDocFreqValue.Value); + } + + if (MinTermFreqValue.HasValue) + { + writer.WritePropertyName("min_term_freq"); + writer.WriteNumberValue(MinTermFreqValue.Value); + } + + if (MinWordLengthValue.HasValue) + { + writer.WritePropertyName("min_word_length"); + writer.WriteNumberValue(MinWordLengthValue.Value); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Term.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Term.g.cs new file mode 100644 index 00000000000..0c396feae93 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Term.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.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.Core.TermVectors; + +public sealed partial class Term +{ + [JsonInclude, JsonPropertyName("doc_freq")] + public int? DocFreq { get; init; } + [JsonInclude, JsonPropertyName("score")] + public double? Score { get; init; } + [JsonInclude, JsonPropertyName("term_freq")] + public int TermFreq { get; init; } + [JsonInclude, JsonPropertyName("tokens")] + public IReadOnlyCollection? Tokens { get; init; } + [JsonInclude, JsonPropertyName("ttf")] + public int? Ttf { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/TermVector.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/TermVector.g.cs new file mode 100644 index 00000000000..c15a4409aa9 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/TermVector.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.Core.TermVectors; + +public sealed partial class TermVector +{ + [JsonInclude, JsonPropertyName("field_statistics")] + public Elastic.Clients.Elasticsearch.Core.TermVectors.FieldStatistics FieldStatistics { get; init; } + [JsonInclude, JsonPropertyName("terms")] + public IReadOnlyDictionary Terms { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Token.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Token.g.cs new file mode 100644 index 00000000000..a35ef935598 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/TermVectors/Token.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.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.Core.TermVectors; + +public sealed partial class Token +{ + [JsonInclude, JsonPropertyName("end_offset")] + public int? EndOffset { get; init; } + [JsonInclude, JsonPropertyName("payload")] + public string? Payload { get; init; } + [JsonInclude, JsonPropertyName("position")] + public int Position { get; init; } + [JsonInclude, JsonPropertyName("start_offset")] + public int? StartOffset { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/DanglingIndices/DanglingIndex.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/DanglingIndices/DanglingIndex.g.cs new file mode 100644 index 00000000000..4f03b75408e --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/DanglingIndices/DanglingIndex.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.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.DanglingIndices; + +public sealed partial class DanglingIndex +{ + [JsonInclude, JsonPropertyName("creation_date_millis")] + public long CreationDateMillis { get; init; } + [JsonInclude, JsonPropertyName("index_name")] + public string IndexName { get; init; } + [JsonInclude, JsonPropertyName("index_uuid")] + public string IndexUuid { get; init; } + [JsonInclude, JsonPropertyName("node_ids")] + public Elastic.Clients.Elasticsearch.Ids NodeIds { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/CacheStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/CacheStats.g.cs new file mode 100644 index 00000000000..ddbe347dbeb --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/CacheStats.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.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.Enrich; + +public sealed partial class CacheStats +{ + [JsonInclude, JsonPropertyName("count")] + public int Count { get; init; } + [JsonInclude, JsonPropertyName("evictions")] + public int Evictions { get; init; } + [JsonInclude, JsonPropertyName("hits")] + public int Hits { get; init; } + [JsonInclude, JsonPropertyName("misses")] + public int Misses { get; init; } + [JsonInclude, JsonPropertyName("node_id")] + public string NodeId { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/CoordinatorStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/CoordinatorStats.g.cs new file mode 100644 index 00000000000..9c6e33adc5a --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/CoordinatorStats.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.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.Enrich; + +public sealed partial class CoordinatorStats +{ + [JsonInclude, JsonPropertyName("executed_searches_total")] + public long ExecutedSearchesTotal { get; init; } + [JsonInclude, JsonPropertyName("node_id")] + public string NodeId { get; init; } + [JsonInclude, JsonPropertyName("queue_size")] + public int QueueSize { get; init; } + [JsonInclude, JsonPropertyName("remote_requests_current")] + public int RemoteRequestsCurrent { get; init; } + [JsonInclude, JsonPropertyName("remote_requests_total")] + public long RemoteRequestsTotal { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/EnrichPolicy.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/EnrichPolicy.g.cs new file mode 100644 index 00000000000..95b7a193bec --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/EnrichPolicy.g.cs @@ -0,0 +1,226 @@ +// 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.Enrich; + +public sealed partial class EnrichPolicy +{ + [JsonInclude, JsonPropertyName("elasticsearch_version")] + public string? ElasticsearchVersion { get; set; } + [JsonInclude, JsonPropertyName("enrich_fields")] + public Elastic.Clients.Elasticsearch.Fields EnrichFields { get; set; } + [JsonInclude, JsonPropertyName("indices")] + public Elastic.Clients.Elasticsearch.Indices Indices { get; set; } + [JsonInclude, JsonPropertyName("match_field")] + public Elastic.Clients.Elasticsearch.Field MatchField { get; set; } + [JsonInclude, JsonPropertyName("name")] + public Elastic.Clients.Elasticsearch.Name? Name { get; set; } + [JsonInclude, JsonPropertyName("query")] + public string? Query { get; set; } +} + +public sealed partial class EnrichPolicyDescriptor : SerializableDescriptor> +{ + internal EnrichPolicyDescriptor(Action> configure) => configure.Invoke(this); + + public EnrichPolicyDescriptor() : base() + { + } + + private string? ElasticsearchVersionValue { get; set; } + private Elastic.Clients.Elasticsearch.Fields EnrichFieldsValue { get; set; } + private Elastic.Clients.Elasticsearch.Indices IndicesValue { get; set; } + private Elastic.Clients.Elasticsearch.Field MatchFieldValue { get; set; } + private Elastic.Clients.Elasticsearch.Name? NameValue { get; set; } + private string? QueryValue { get; set; } + + public EnrichPolicyDescriptor ElasticsearchVersion(string? elasticsearchVersion) + { + ElasticsearchVersionValue = elasticsearchVersion; + return Self; + } + + public EnrichPolicyDescriptor EnrichFields(Elastic.Clients.Elasticsearch.Fields enrichFields) + { + EnrichFieldsValue = enrichFields; + return Self; + } + + public EnrichPolicyDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) + { + IndicesValue = indices; + return Self; + } + + public EnrichPolicyDescriptor MatchField(Elastic.Clients.Elasticsearch.Field matchField) + { + MatchFieldValue = matchField; + return Self; + } + + public EnrichPolicyDescriptor MatchField(Expression> matchField) + { + MatchFieldValue = matchField; + return Self; + } + + public EnrichPolicyDescriptor Name(Elastic.Clients.Elasticsearch.Name? name) + { + NameValue = name; + return Self; + } + + public EnrichPolicyDescriptor Query(string? query) + { + QueryValue = query; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(ElasticsearchVersionValue)) + { + writer.WritePropertyName("elasticsearch_version"); + writer.WriteStringValue(ElasticsearchVersionValue); + } + + writer.WritePropertyName("enrich_fields"); + JsonSerializer.Serialize(writer, EnrichFieldsValue, options); + writer.WritePropertyName("indices"); + JsonSerializer.Serialize(writer, IndicesValue, options); + writer.WritePropertyName("match_field"); + JsonSerializer.Serialize(writer, MatchFieldValue, options); + if (NameValue is not null) + { + writer.WritePropertyName("name"); + JsonSerializer.Serialize(writer, NameValue, options); + } + + if (!string.IsNullOrEmpty(QueryValue)) + { + writer.WritePropertyName("query"); + writer.WriteStringValue(QueryValue); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class EnrichPolicyDescriptor : SerializableDescriptor +{ + internal EnrichPolicyDescriptor(Action configure) => configure.Invoke(this); + + public EnrichPolicyDescriptor() : base() + { + } + + private string? ElasticsearchVersionValue { get; set; } + private Elastic.Clients.Elasticsearch.Fields EnrichFieldsValue { get; set; } + private Elastic.Clients.Elasticsearch.Indices IndicesValue { get; set; } + private Elastic.Clients.Elasticsearch.Field MatchFieldValue { get; set; } + private Elastic.Clients.Elasticsearch.Name? NameValue { get; set; } + private string? QueryValue { get; set; } + + public EnrichPolicyDescriptor ElasticsearchVersion(string? elasticsearchVersion) + { + ElasticsearchVersionValue = elasticsearchVersion; + return Self; + } + + public EnrichPolicyDescriptor EnrichFields(Elastic.Clients.Elasticsearch.Fields enrichFields) + { + EnrichFieldsValue = enrichFields; + return Self; + } + + public EnrichPolicyDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) + { + IndicesValue = indices; + return Self; + } + + public EnrichPolicyDescriptor MatchField(Elastic.Clients.Elasticsearch.Field matchField) + { + MatchFieldValue = matchField; + return Self; + } + + public EnrichPolicyDescriptor MatchField(Expression> matchField) + { + MatchFieldValue = matchField; + return Self; + } + + public EnrichPolicyDescriptor MatchField(Expression> matchField) + { + MatchFieldValue = matchField; + return Self; + } + + public EnrichPolicyDescriptor Name(Elastic.Clients.Elasticsearch.Name? name) + { + NameValue = name; + return Self; + } + + public EnrichPolicyDescriptor Query(string? query) + { + QueryValue = query; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (!string.IsNullOrEmpty(ElasticsearchVersionValue)) + { + writer.WritePropertyName("elasticsearch_version"); + writer.WriteStringValue(ElasticsearchVersionValue); + } + + writer.WritePropertyName("enrich_fields"); + JsonSerializer.Serialize(writer, EnrichFieldsValue, options); + writer.WritePropertyName("indices"); + JsonSerializer.Serialize(writer, IndicesValue, options); + writer.WritePropertyName("match_field"); + JsonSerializer.Serialize(writer, MatchFieldValue, options); + if (NameValue is not null) + { + writer.WritePropertyName("name"); + JsonSerializer.Serialize(writer, NameValue, options); + } + + if (!string.IsNullOrEmpty(QueryValue)) + { + writer.WritePropertyName("query"); + writer.WriteStringValue(QueryValue); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/EnrichSummary.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/EnrichSummary.g.cs new file mode 100644 index 00000000000..9298d4e11d3 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/EnrichSummary.g.cs @@ -0,0 +1,34 @@ +// 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.Enrich; + +public sealed partial class EnrichSummary +{ + [JsonInclude, JsonPropertyName("config")] + public KeyValuePair Config { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/ExecuteEnrichPolicyStatus.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/ExecuteEnrichPolicyStatus.g.cs new file mode 100644 index 00000000000..b4e3ea5b141 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/ExecuteEnrichPolicyStatus.g.cs @@ -0,0 +1,34 @@ +// 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.Enrich; + +public sealed partial class ExecuteEnrichPolicyStatus +{ + [JsonInclude, JsonPropertyName("phase")] + public Elastic.Clients.Elasticsearch.Enrich.EnrichPolicyPhase Phase { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/ExecutingPolicy.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/ExecutingPolicy.g.cs new file mode 100644 index 00000000000..9351cc69b64 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enrich/ExecutingPolicy.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.Enrich; + +public sealed partial class ExecutingPolicy +{ + [JsonInclude, JsonPropertyName("name")] + public string Name { get; init; } + [JsonInclude, JsonPropertyName("task")] + public Elastic.Clients.Elasticsearch.Tasks.TaskInfo Task { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Cluster.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Cluster.g.cs index 25c17beaddb..1e1c6daee28 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Cluster.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Cluster.g.cs @@ -26,6 +26,144 @@ namespace Elastic.Clients.Elasticsearch.Cluster; +[JsonConverter(typeof(AllocationExplainDecisionConverter))] +public enum AllocationExplainDecision +{ + [EnumMember(Value = "YES")] + Yes, + [EnumMember(Value = "THROTTLE")] + Throttle, + [EnumMember(Value = "NO")] + No, + [EnumMember(Value = "ALWAYS")] + Always +} + +internal sealed class AllocationExplainDecisionConverter : JsonConverter +{ + public override AllocationExplainDecision Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "YES": + return AllocationExplainDecision.Yes; + case "THROTTLE": + return AllocationExplainDecision.Throttle; + case "NO": + return AllocationExplainDecision.No; + case "ALWAYS": + return AllocationExplainDecision.Always; + } + + ThrowHelper.ThrowJsonException(); return default; + } + + public override void Write(Utf8JsonWriter writer, AllocationExplainDecision value, JsonSerializerOptions options) + { + switch (value) + { + case AllocationExplainDecision.Yes: + writer.WriteStringValue("YES"); + return; + case AllocationExplainDecision.Throttle: + writer.WriteStringValue("THROTTLE"); + return; + case AllocationExplainDecision.No: + writer.WriteStringValue("NO"); + return; + case AllocationExplainDecision.Always: + writer.WriteStringValue("ALWAYS"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(DecisionConverter))] +public enum Decision +{ + [EnumMember(Value = "yes")] + Yes, + [EnumMember(Value = "worse_balance")] + WorseBalance, + [EnumMember(Value = "throttled")] + Throttled, + [EnumMember(Value = "no_valid_shard_copy")] + NoValidShardCopy, + [EnumMember(Value = "no_attempt")] + NoAttempt, + [EnumMember(Value = "no")] + No, + [EnumMember(Value = "awaiting_info")] + AwaitingInfo, + [EnumMember(Value = "allocation_delayed")] + AllocationDelayed +} + +internal sealed class DecisionConverter : JsonConverter +{ + public override Decision Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "yes": + return Decision.Yes; + case "worse_balance": + return Decision.WorseBalance; + case "throttled": + return Decision.Throttled; + case "no_valid_shard_copy": + return Decision.NoValidShardCopy; + case "no_attempt": + return Decision.NoAttempt; + case "no": + return Decision.No; + case "awaiting_info": + return Decision.AwaitingInfo; + case "allocation_delayed": + return Decision.AllocationDelayed; + } + + ThrowHelper.ThrowJsonException(); return default; + } + + public override void Write(Utf8JsonWriter writer, Decision value, JsonSerializerOptions options) + { + switch (value) + { + case Decision.Yes: + writer.WriteStringValue("yes"); + return; + case Decision.WorseBalance: + writer.WriteStringValue("worse_balance"); + return; + case Decision.Throttled: + writer.WriteStringValue("throttled"); + return; + case Decision.NoValidShardCopy: + writer.WriteStringValue("no_valid_shard_copy"); + return; + case Decision.NoAttempt: + writer.WriteStringValue("no_attempt"); + return; + case Decision.No: + writer.WriteStringValue("no"); + return; + case Decision.AwaitingInfo: + writer.WriteStringValue("awaiting_info"); + return; + case Decision.AllocationDelayed: + writer.WriteStringValue("allocation_delayed"); + return; + } + + writer.WriteNullValue(); + } +} + [JsonConverter(typeof(UnassignedInformationReasonConverter))] public enum UnassignedInformationReason { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Enrich.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Enrich.g.cs new file mode 100644 index 00000000000..6ff924c6261 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Enums/Enums.Enrich.g.cs @@ -0,0 +1,130 @@ +// 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.Text.Json; +using System.Text.Json.Serialization; +using System.Runtime.Serialization; +using Elastic.Transport; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Enrich; + +[JsonConverter(typeof(EnrichPolicyPhaseConverter))] +public enum EnrichPolicyPhase +{ + [EnumMember(Value = "SCHEDULED")] + Scheduled, + [EnumMember(Value = "RUNNING")] + Running, + [EnumMember(Value = "FAILED")] + Failed, + [EnumMember(Value = "COMPLETE")] + Complete +} + +internal sealed class EnrichPolicyPhaseConverter : JsonConverter +{ + public override EnrichPolicyPhase Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "SCHEDULED": + return EnrichPolicyPhase.Scheduled; + case "RUNNING": + return EnrichPolicyPhase.Running; + case "FAILED": + return EnrichPolicyPhase.Failed; + case "COMPLETE": + return EnrichPolicyPhase.Complete; + } + + ThrowHelper.ThrowJsonException(); return default; + } + + public override void Write(Utf8JsonWriter writer, EnrichPolicyPhase value, JsonSerializerOptions options) + { + switch (value) + { + case EnrichPolicyPhase.Scheduled: + writer.WriteStringValue("SCHEDULED"); + return; + case EnrichPolicyPhase.Running: + writer.WriteStringValue("RUNNING"); + return; + case EnrichPolicyPhase.Failed: + writer.WriteStringValue("FAILED"); + return; + case EnrichPolicyPhase.Complete: + writer.WriteStringValue("COMPLETE"); + return; + } + + writer.WriteNullValue(); + } +} + +[JsonConverter(typeof(PolicyTypeConverter))] +public enum PolicyType +{ + [EnumMember(Value = "range")] + Range, + [EnumMember(Value = "match")] + Match, + [EnumMember(Value = "geo_match")] + GeoMatch +} + +internal sealed class PolicyTypeConverter : JsonConverter +{ + public override PolicyType Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + var enumString = reader.GetString(); + switch (enumString) + { + case "range": + return PolicyType.Range; + case "match": + return PolicyType.Match; + case "geo_match": + return PolicyType.GeoMatch; + } + + ThrowHelper.ThrowJsonException(); return default; + } + + public override void Write(Utf8JsonWriter writer, PolicyType value, JsonSerializerOptions options) + { + switch (value) + { + case PolicyType.Range: + writer.WriteStringValue("range"); + return; + case PolicyType.Match: + writer.WriteStringValue("match"); + return; + case PolicyType.GeoMatch: + writer.WriteStringValue("geo_match"); + return; + } + + writer.WriteNullValue(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Connection.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Connection.g.cs new file mode 100644 index 00000000000..5fca74a7a6c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Connection.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.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.Graph; + +public sealed partial class Connection +{ + [JsonInclude, JsonPropertyName("doc_count")] + public long DocCount { get; init; } + [JsonInclude, JsonPropertyName("source")] + public long Source { get; init; } + [JsonInclude, JsonPropertyName("target")] + public long Target { get; init; } + [JsonInclude, JsonPropertyName("weight")] + public double Weight { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/ExploreControls.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/ExploreControls.g.cs new file mode 100644 index 00000000000..e7f9661576c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/ExploreControls.g.cs @@ -0,0 +1,228 @@ +// 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.Graph; + +public sealed partial class ExploreControls +{ + [JsonInclude, JsonPropertyName("sample_diversity")] + public Elastic.Clients.Elasticsearch.Graph.SampleDiversity? SampleDiversity { get; set; } + [JsonInclude, JsonPropertyName("sample_size")] + public int? SampleSize { get; set; } + [JsonInclude, JsonPropertyName("timeout")] + public Elastic.Clients.Elasticsearch.Duration? Timeout { get; set; } + [JsonInclude, JsonPropertyName("use_significance")] + public bool UseSignificance { get; set; } +} + +public sealed partial class ExploreControlsDescriptor : SerializableDescriptor> +{ + internal ExploreControlsDescriptor(Action> configure) => configure.Invoke(this); + + public ExploreControlsDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Graph.SampleDiversity? SampleDiversityValue { get; set; } + private SampleDiversityDescriptor SampleDiversityDescriptor { get; set; } + private Action> SampleDiversityDescriptorAction { get; set; } + private int? SampleSizeValue { get; set; } + private Elastic.Clients.Elasticsearch.Duration? TimeoutValue { get; set; } + private bool UseSignificanceValue { get; set; } + + public ExploreControlsDescriptor SampleDiversity(Elastic.Clients.Elasticsearch.Graph.SampleDiversity? sampleDiversity) + { + SampleDiversityDescriptor = null; + SampleDiversityDescriptorAction = null; + SampleDiversityValue = sampleDiversity; + return Self; + } + + public ExploreControlsDescriptor SampleDiversity(SampleDiversityDescriptor descriptor) + { + SampleDiversityValue = null; + SampleDiversityDescriptorAction = null; + SampleDiversityDescriptor = descriptor; + return Self; + } + + public ExploreControlsDescriptor SampleDiversity(Action> configure) + { + SampleDiversityValue = null; + SampleDiversityDescriptor = null; + SampleDiversityDescriptorAction = configure; + return Self; + } + + public ExploreControlsDescriptor SampleSize(int? sampleSize) + { + SampleSizeValue = sampleSize; + return Self; + } + + public ExploreControlsDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) + { + TimeoutValue = timeout; + return Self; + } + + public ExploreControlsDescriptor UseSignificance(bool useSignificance = true) + { + UseSignificanceValue = useSignificance; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (SampleDiversityDescriptor is not null) + { + writer.WritePropertyName("sample_diversity"); + JsonSerializer.Serialize(writer, SampleDiversityDescriptor, options); + } + else if (SampleDiversityDescriptorAction is not null) + { + writer.WritePropertyName("sample_diversity"); + JsonSerializer.Serialize(writer, new SampleDiversityDescriptor(SampleDiversityDescriptorAction), options); + } + else if (SampleDiversityValue is not null) + { + writer.WritePropertyName("sample_diversity"); + JsonSerializer.Serialize(writer, SampleDiversityValue, options); + } + + if (SampleSizeValue.HasValue) + { + writer.WritePropertyName("sample_size"); + writer.WriteNumberValue(SampleSizeValue.Value); + } + + if (TimeoutValue is not null) + { + writer.WritePropertyName("timeout"); + JsonSerializer.Serialize(writer, TimeoutValue, options); + } + + writer.WritePropertyName("use_significance"); + writer.WriteBooleanValue(UseSignificanceValue); + writer.WriteEndObject(); + } +} + +public sealed partial class ExploreControlsDescriptor : SerializableDescriptor +{ + internal ExploreControlsDescriptor(Action configure) => configure.Invoke(this); + + public ExploreControlsDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Graph.SampleDiversity? SampleDiversityValue { get; set; } + private SampleDiversityDescriptor SampleDiversityDescriptor { get; set; } + private Action SampleDiversityDescriptorAction { get; set; } + private int? SampleSizeValue { get; set; } + private Elastic.Clients.Elasticsearch.Duration? TimeoutValue { get; set; } + private bool UseSignificanceValue { get; set; } + + public ExploreControlsDescriptor SampleDiversity(Elastic.Clients.Elasticsearch.Graph.SampleDiversity? sampleDiversity) + { + SampleDiversityDescriptor = null; + SampleDiversityDescriptorAction = null; + SampleDiversityValue = sampleDiversity; + return Self; + } + + public ExploreControlsDescriptor SampleDiversity(SampleDiversityDescriptor descriptor) + { + SampleDiversityValue = null; + SampleDiversityDescriptorAction = null; + SampleDiversityDescriptor = descriptor; + return Self; + } + + public ExploreControlsDescriptor SampleDiversity(Action configure) + { + SampleDiversityValue = null; + SampleDiversityDescriptor = null; + SampleDiversityDescriptorAction = configure; + return Self; + } + + public ExploreControlsDescriptor SampleSize(int? sampleSize) + { + SampleSizeValue = sampleSize; + return Self; + } + + public ExploreControlsDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) + { + TimeoutValue = timeout; + return Self; + } + + public ExploreControlsDescriptor UseSignificance(bool useSignificance = true) + { + UseSignificanceValue = useSignificance; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (SampleDiversityDescriptor is not null) + { + writer.WritePropertyName("sample_diversity"); + JsonSerializer.Serialize(writer, SampleDiversityDescriptor, options); + } + else if (SampleDiversityDescriptorAction is not null) + { + writer.WritePropertyName("sample_diversity"); + JsonSerializer.Serialize(writer, new SampleDiversityDescriptor(SampleDiversityDescriptorAction), options); + } + else if (SampleDiversityValue is not null) + { + writer.WritePropertyName("sample_diversity"); + JsonSerializer.Serialize(writer, SampleDiversityValue, options); + } + + if (SampleSizeValue.HasValue) + { + writer.WritePropertyName("sample_size"); + writer.WriteNumberValue(SampleSizeValue.Value); + } + + if (TimeoutValue is not null) + { + writer.WritePropertyName("timeout"); + JsonSerializer.Serialize(writer, TimeoutValue, options); + } + + writer.WritePropertyName("use_significance"); + writer.WriteBooleanValue(UseSignificanceValue); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Hop.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Hop.g.cs new file mode 100644 index 00000000000..0891f2aee25 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Hop.g.cs @@ -0,0 +1,384 @@ +// 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.Graph; + +public sealed partial class Hop +{ + [JsonInclude, JsonPropertyName("connections")] + public Elastic.Clients.Elasticsearch.Graph.Hop? Connections { get; set; } + [JsonInclude, JsonPropertyName("query")] + public Elastic.Clients.Elasticsearch.QueryDsl.Query Query { get; set; } + [JsonInclude, JsonPropertyName("vertices")] + public ICollection Vertices { get; set; } +} + +public sealed partial class HopDescriptor : SerializableDescriptor> +{ + internal HopDescriptor(Action> configure) => configure.Invoke(this); + + public HopDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Graph.Hop? ConnectionsValue { get; set; } + private HopDescriptor ConnectionsDescriptor { get; set; } + private Action> ConnectionsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.QueryDsl.Query QueryValue { get; set; } + private QueryDsl.QueryDescriptor QueryDescriptor { get; set; } + private Action> QueryDescriptorAction { get; set; } + private ICollection VerticesValue { get; set; } + private VertexDefinitionDescriptor VerticesDescriptor { get; set; } + private Action> VerticesDescriptorAction { get; set; } + private Action>[] VerticesDescriptorActions { get; set; } + + public HopDescriptor Connections(Elastic.Clients.Elasticsearch.Graph.Hop? connections) + { + ConnectionsDescriptor = null; + ConnectionsDescriptorAction = null; + ConnectionsValue = connections; + return Self; + } + + public HopDescriptor Connections(HopDescriptor descriptor) + { + ConnectionsValue = null; + ConnectionsDescriptorAction = null; + ConnectionsDescriptor = descriptor; + return Self; + } + + public HopDescriptor Connections(Action> configure) + { + ConnectionsValue = null; + ConnectionsDescriptor = null; + ConnectionsDescriptorAction = configure; + return Self; + } + + public HopDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query query) + { + QueryDescriptor = null; + QueryDescriptorAction = null; + QueryValue = query; + return Self; + } + + public HopDescriptor Query(QueryDsl.QueryDescriptor descriptor) + { + QueryValue = null; + QueryDescriptorAction = null; + QueryDescriptor = descriptor; + return Self; + } + + public HopDescriptor Query(Action> configure) + { + QueryValue = null; + QueryDescriptor = null; + QueryDescriptorAction = configure; + return Self; + } + + public HopDescriptor Vertices(ICollection vertices) + { + VerticesDescriptor = null; + VerticesDescriptorAction = null; + VerticesDescriptorActions = null; + VerticesValue = vertices; + return Self; + } + + public HopDescriptor Vertices(VertexDefinitionDescriptor descriptor) + { + VerticesValue = null; + VerticesDescriptorAction = null; + VerticesDescriptorActions = null; + VerticesDescriptor = descriptor; + return Self; + } + + public HopDescriptor Vertices(Action> configure) + { + VerticesValue = null; + VerticesDescriptor = null; + VerticesDescriptorActions = null; + VerticesDescriptorAction = configure; + return Self; + } + + public HopDescriptor Vertices(params Action>[] configure) + { + VerticesValue = null; + VerticesDescriptor = null; + VerticesDescriptorAction = null; + VerticesDescriptorActions = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ConnectionsDescriptor is not null) + { + writer.WritePropertyName("connections"); + JsonSerializer.Serialize(writer, ConnectionsDescriptor, options); + } + else if (ConnectionsDescriptorAction is not null) + { + writer.WritePropertyName("connections"); + JsonSerializer.Serialize(writer, new HopDescriptor(ConnectionsDescriptorAction), options); + } + else if (ConnectionsValue is not null) + { + writer.WritePropertyName("connections"); + JsonSerializer.Serialize(writer, ConnectionsValue, options); + } + + 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 + { + writer.WritePropertyName("query"); + JsonSerializer.Serialize(writer, QueryValue, options); + } + + if (VerticesDescriptor is not null) + { + writer.WritePropertyName("vertices"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, VerticesDescriptor, options); + writer.WriteEndArray(); + } + else if (VerticesDescriptorAction is not null) + { + writer.WritePropertyName("vertices"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new VertexDefinitionDescriptor(VerticesDescriptorAction), options); + writer.WriteEndArray(); + } + else if (VerticesDescriptorActions is not null) + { + writer.WritePropertyName("vertices"); + writer.WriteStartArray(); + foreach (var action in VerticesDescriptorActions) + { + JsonSerializer.Serialize(writer, new VertexDefinitionDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else + { + writer.WritePropertyName("vertices"); + JsonSerializer.Serialize(writer, VerticesValue, options); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class HopDescriptor : SerializableDescriptor +{ + internal HopDescriptor(Action configure) => configure.Invoke(this); + + public HopDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Graph.Hop? ConnectionsValue { get; set; } + private HopDescriptor ConnectionsDescriptor { get; set; } + private Action ConnectionsDescriptorAction { get; set; } + private Elastic.Clients.Elasticsearch.QueryDsl.Query QueryValue { get; set; } + private QueryDsl.QueryDescriptor QueryDescriptor { get; set; } + private Action QueryDescriptorAction { get; set; } + private ICollection VerticesValue { get; set; } + private VertexDefinitionDescriptor VerticesDescriptor { get; set; } + private Action VerticesDescriptorAction { get; set; } + private Action[] VerticesDescriptorActions { get; set; } + + public HopDescriptor Connections(Elastic.Clients.Elasticsearch.Graph.Hop? connections) + { + ConnectionsDescriptor = null; + ConnectionsDescriptorAction = null; + ConnectionsValue = connections; + return Self; + } + + public HopDescriptor Connections(HopDescriptor descriptor) + { + ConnectionsValue = null; + ConnectionsDescriptorAction = null; + ConnectionsDescriptor = descriptor; + return Self; + } + + public HopDescriptor Connections(Action configure) + { + ConnectionsValue = null; + ConnectionsDescriptor = null; + ConnectionsDescriptorAction = configure; + return Self; + } + + public HopDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.Query query) + { + QueryDescriptor = null; + QueryDescriptorAction = null; + QueryValue = query; + return Self; + } + + public HopDescriptor Query(QueryDsl.QueryDescriptor descriptor) + { + QueryValue = null; + QueryDescriptorAction = null; + QueryDescriptor = descriptor; + return Self; + } + + public HopDescriptor Query(Action configure) + { + QueryValue = null; + QueryDescriptor = null; + QueryDescriptorAction = configure; + return Self; + } + + public HopDescriptor Vertices(ICollection vertices) + { + VerticesDescriptor = null; + VerticesDescriptorAction = null; + VerticesDescriptorActions = null; + VerticesValue = vertices; + return Self; + } + + public HopDescriptor Vertices(VertexDefinitionDescriptor descriptor) + { + VerticesValue = null; + VerticesDescriptorAction = null; + VerticesDescriptorActions = null; + VerticesDescriptor = descriptor; + return Self; + } + + public HopDescriptor Vertices(Action configure) + { + VerticesValue = null; + VerticesDescriptor = null; + VerticesDescriptorActions = null; + VerticesDescriptorAction = configure; + return Self; + } + + public HopDescriptor Vertices(params Action[] configure) + { + VerticesValue = null; + VerticesDescriptor = null; + VerticesDescriptorAction = null; + VerticesDescriptorActions = configure; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ConnectionsDescriptor is not null) + { + writer.WritePropertyName("connections"); + JsonSerializer.Serialize(writer, ConnectionsDescriptor, options); + } + else if (ConnectionsDescriptorAction is not null) + { + writer.WritePropertyName("connections"); + JsonSerializer.Serialize(writer, new HopDescriptor(ConnectionsDescriptorAction), options); + } + else if (ConnectionsValue is not null) + { + writer.WritePropertyName("connections"); + JsonSerializer.Serialize(writer, ConnectionsValue, options); + } + + 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 + { + writer.WritePropertyName("query"); + JsonSerializer.Serialize(writer, QueryValue, options); + } + + if (VerticesDescriptor is not null) + { + writer.WritePropertyName("vertices"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, VerticesDescriptor, options); + writer.WriteEndArray(); + } + else if (VerticesDescriptorAction is not null) + { + writer.WritePropertyName("vertices"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new VertexDefinitionDescriptor(VerticesDescriptorAction), options); + writer.WriteEndArray(); + } + else if (VerticesDescriptorActions is not null) + { + writer.WritePropertyName("vertices"); + writer.WriteStartArray(); + foreach (var action in VerticesDescriptorActions) + { + JsonSerializer.Serialize(writer, new VertexDefinitionDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else + { + writer.WritePropertyName("vertices"); + JsonSerializer.Serialize(writer, VerticesValue, options); + } + + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/SampleDiversity.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/SampleDiversity.g.cs new file mode 100644 index 00000000000..96f02b50c45 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/SampleDiversity.g.cs @@ -0,0 +1,122 @@ +// 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.Graph; + +public sealed partial class SampleDiversity +{ + [JsonInclude, JsonPropertyName("field")] + public Elastic.Clients.Elasticsearch.Field Field { get; set; } + [JsonInclude, JsonPropertyName("max_docs_per_value")] + public int MaxDocsPerValue { get; set; } +} + +public sealed partial class SampleDiversityDescriptor : SerializableDescriptor> +{ + internal SampleDiversityDescriptor(Action> configure) => configure.Invoke(this); + + public SampleDiversityDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } + private int MaxDocsPerValueValue { get; set; } + + public SampleDiversityDescriptor Field(Elastic.Clients.Elasticsearch.Field field) + { + FieldValue = field; + return Self; + } + + public SampleDiversityDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + public SampleDiversityDescriptor MaxDocsPerValue(int maxDocsPerValue) + { + MaxDocsPerValueValue = maxDocsPerValue; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("field"); + JsonSerializer.Serialize(writer, FieldValue, options); + writer.WritePropertyName("max_docs_per_value"); + writer.WriteNumberValue(MaxDocsPerValueValue); + writer.WriteEndObject(); + } +} + +public sealed partial class SampleDiversityDescriptor : SerializableDescriptor +{ + internal SampleDiversityDescriptor(Action configure) => configure.Invoke(this); + + public SampleDiversityDescriptor() : base() + { + } + + private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } + private int MaxDocsPerValueValue { get; set; } + + public SampleDiversityDescriptor Field(Elastic.Clients.Elasticsearch.Field field) + { + FieldValue = field; + return Self; + } + + public SampleDiversityDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + public SampleDiversityDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + public SampleDiversityDescriptor MaxDocsPerValue(int maxDocsPerValue) + { + MaxDocsPerValueValue = maxDocsPerValue; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("field"); + JsonSerializer.Serialize(writer, FieldValue, options); + writer.WritePropertyName("max_docs_per_value"); + writer.WriteNumberValue(MaxDocsPerValueValue); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Vertex.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Vertex.g.cs new file mode 100644 index 00000000000..4f9c9078647 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/Vertex.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.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.Graph; + +public sealed partial class Vertex +{ + [JsonInclude, JsonPropertyName("depth")] + public long Depth { get; init; } + [JsonInclude, JsonPropertyName("field")] + public string Field { get; init; } + [JsonInclude, JsonPropertyName("term")] + public string Term { get; init; } + [JsonInclude, JsonPropertyName("weight")] + public double Weight { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/VertexDefinition.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/VertexDefinition.g.cs new file mode 100644 index 00000000000..52a2baadc19 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/VertexDefinition.g.cs @@ -0,0 +1,358 @@ +// 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.Graph; + +public sealed partial class VertexDefinition +{ + [JsonInclude, JsonPropertyName("exclude")] + public ICollection? Exclude { get; set; } + [JsonInclude, JsonPropertyName("field")] + public Elastic.Clients.Elasticsearch.Field Field { get; set; } + [JsonInclude, JsonPropertyName("include")] + public ICollection? Include { get; set; } + [JsonInclude, JsonPropertyName("min_doc_count")] + public long? MinDocCount { get; set; } + [JsonInclude, JsonPropertyName("shard_min_doc_count")] + public long? ShardMinDocCount { get; set; } + [JsonInclude, JsonPropertyName("size")] + public int? Size { get; set; } +} + +public sealed partial class VertexDefinitionDescriptor : SerializableDescriptor> +{ + internal VertexDefinitionDescriptor(Action> configure) => configure.Invoke(this); + + public VertexDefinitionDescriptor() : base() + { + } + + private ICollection? ExcludeValue { get; set; } + private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } + private ICollection? IncludeValue { get; set; } + private VertexIncludeDescriptor IncludeDescriptor { get; set; } + private Action IncludeDescriptorAction { get; set; } + private Action[] IncludeDescriptorActions { get; set; } + private long? MinDocCountValue { get; set; } + private long? ShardMinDocCountValue { get; set; } + private int? SizeValue { get; set; } + + public VertexDefinitionDescriptor Exclude(ICollection? exclude) + { + ExcludeValue = exclude; + return Self; + } + + public VertexDefinitionDescriptor Field(Elastic.Clients.Elasticsearch.Field field) + { + FieldValue = field; + return Self; + } + + public VertexDefinitionDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + public VertexDefinitionDescriptor Include(ICollection? include) + { + IncludeDescriptor = null; + IncludeDescriptorAction = null; + IncludeDescriptorActions = null; + IncludeValue = include; + return Self; + } + + public VertexDefinitionDescriptor Include(VertexIncludeDescriptor descriptor) + { + IncludeValue = null; + IncludeDescriptorAction = null; + IncludeDescriptorActions = null; + IncludeDescriptor = descriptor; + return Self; + } + + public VertexDefinitionDescriptor Include(Action configure) + { + IncludeValue = null; + IncludeDescriptor = null; + IncludeDescriptorActions = null; + IncludeDescriptorAction = configure; + return Self; + } + + public VertexDefinitionDescriptor Include(params Action[] configure) + { + IncludeValue = null; + IncludeDescriptor = null; + IncludeDescriptorAction = null; + IncludeDescriptorActions = configure; + return Self; + } + + public VertexDefinitionDescriptor MinDocCount(long? minDocCount) + { + MinDocCountValue = minDocCount; + return Self; + } + + public VertexDefinitionDescriptor ShardMinDocCount(long? shardMinDocCount) + { + ShardMinDocCountValue = shardMinDocCount; + return Self; + } + + public VertexDefinitionDescriptor Size(int? size) + { + SizeValue = size; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ExcludeValue is not null) + { + writer.WritePropertyName("exclude"); + JsonSerializer.Serialize(writer, ExcludeValue, options); + } + + writer.WritePropertyName("field"); + JsonSerializer.Serialize(writer, FieldValue, options); + if (IncludeDescriptor is not null) + { + writer.WritePropertyName("include"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, IncludeDescriptor, options); + writer.WriteEndArray(); + } + else if (IncludeDescriptorAction is not null) + { + writer.WritePropertyName("include"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new VertexIncludeDescriptor(IncludeDescriptorAction), options); + writer.WriteEndArray(); + } + else if (IncludeDescriptorActions is not null) + { + writer.WritePropertyName("include"); + writer.WriteStartArray(); + foreach (var action in IncludeDescriptorActions) + { + JsonSerializer.Serialize(writer, new VertexIncludeDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (IncludeValue is not null) + { + writer.WritePropertyName("include"); + JsonSerializer.Serialize(writer, IncludeValue, options); + } + + if (MinDocCountValue.HasValue) + { + writer.WritePropertyName("min_doc_count"); + writer.WriteNumberValue(MinDocCountValue.Value); + } + + if (ShardMinDocCountValue.HasValue) + { + writer.WritePropertyName("shard_min_doc_count"); + writer.WriteNumberValue(ShardMinDocCountValue.Value); + } + + if (SizeValue.HasValue) + { + writer.WritePropertyName("size"); + writer.WriteNumberValue(SizeValue.Value); + } + + writer.WriteEndObject(); + } +} + +public sealed partial class VertexDefinitionDescriptor : SerializableDescriptor +{ + internal VertexDefinitionDescriptor(Action configure) => configure.Invoke(this); + + public VertexDefinitionDescriptor() : base() + { + } + + private ICollection? ExcludeValue { get; set; } + private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } + private ICollection? IncludeValue { get; set; } + private VertexIncludeDescriptor IncludeDescriptor { get; set; } + private Action IncludeDescriptorAction { get; set; } + private Action[] IncludeDescriptorActions { get; set; } + private long? MinDocCountValue { get; set; } + private long? ShardMinDocCountValue { get; set; } + private int? SizeValue { get; set; } + + public VertexDefinitionDescriptor Exclude(ICollection? exclude) + { + ExcludeValue = exclude; + return Self; + } + + public VertexDefinitionDescriptor Field(Elastic.Clients.Elasticsearch.Field field) + { + FieldValue = field; + return Self; + } + + public VertexDefinitionDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + public VertexDefinitionDescriptor Field(Expression> field) + { + FieldValue = field; + return Self; + } + + public VertexDefinitionDescriptor Include(ICollection? include) + { + IncludeDescriptor = null; + IncludeDescriptorAction = null; + IncludeDescriptorActions = null; + IncludeValue = include; + return Self; + } + + public VertexDefinitionDescriptor Include(VertexIncludeDescriptor descriptor) + { + IncludeValue = null; + IncludeDescriptorAction = null; + IncludeDescriptorActions = null; + IncludeDescriptor = descriptor; + return Self; + } + + public VertexDefinitionDescriptor Include(Action configure) + { + IncludeValue = null; + IncludeDescriptor = null; + IncludeDescriptorActions = null; + IncludeDescriptorAction = configure; + return Self; + } + + public VertexDefinitionDescriptor Include(params Action[] configure) + { + IncludeValue = null; + IncludeDescriptor = null; + IncludeDescriptorAction = null; + IncludeDescriptorActions = configure; + return Self; + } + + public VertexDefinitionDescriptor MinDocCount(long? minDocCount) + { + MinDocCountValue = minDocCount; + return Self; + } + + public VertexDefinitionDescriptor ShardMinDocCount(long? shardMinDocCount) + { + ShardMinDocCountValue = shardMinDocCount; + return Self; + } + + public VertexDefinitionDescriptor Size(int? size) + { + SizeValue = size; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + if (ExcludeValue is not null) + { + writer.WritePropertyName("exclude"); + JsonSerializer.Serialize(writer, ExcludeValue, options); + } + + writer.WritePropertyName("field"); + JsonSerializer.Serialize(writer, FieldValue, options); + if (IncludeDescriptor is not null) + { + writer.WritePropertyName("include"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, IncludeDescriptor, options); + writer.WriteEndArray(); + } + else if (IncludeDescriptorAction is not null) + { + writer.WritePropertyName("include"); + writer.WriteStartArray(); + JsonSerializer.Serialize(writer, new VertexIncludeDescriptor(IncludeDescriptorAction), options); + writer.WriteEndArray(); + } + else if (IncludeDescriptorActions is not null) + { + writer.WritePropertyName("include"); + writer.WriteStartArray(); + foreach (var action in IncludeDescriptorActions) + { + JsonSerializer.Serialize(writer, new VertexIncludeDescriptor(action), options); + } + + writer.WriteEndArray(); + } + else if (IncludeValue is not null) + { + writer.WritePropertyName("include"); + JsonSerializer.Serialize(writer, IncludeValue, options); + } + + if (MinDocCountValue.HasValue) + { + writer.WritePropertyName("min_doc_count"); + writer.WriteNumberValue(MinDocCountValue.Value); + } + + if (ShardMinDocCountValue.HasValue) + { + writer.WritePropertyName("shard_min_doc_count"); + writer.WriteNumberValue(ShardMinDocCountValue.Value); + } + + 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/_Generated/Types/Graph/VertexInclude.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/VertexInclude.g.cs new file mode 100644 index 00000000000..cc7f9fe81a6 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Graph/VertexInclude.g.cs @@ -0,0 +1,70 @@ +// 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.Graph; + +public sealed partial class VertexInclude +{ + [JsonInclude, JsonPropertyName("boost")] + public double Boost { get; set; } + [JsonInclude, JsonPropertyName("term")] + public string Term { get; set; } +} + +public sealed partial class VertexIncludeDescriptor : SerializableDescriptor +{ + internal VertexIncludeDescriptor(Action configure) => configure.Invoke(this); + + public VertexIncludeDescriptor() : base() + { + } + + private double BoostValue { get; set; } + private string TermValue { get; set; } + + public VertexIncludeDescriptor Boost(double boost) + { + BoostValue = boost; + return Self; + } + + public VertexIncludeDescriptor Term(string term) + { + TermValue = term; + return Self; + } + + protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings) + { + writer.WriteStartObject(); + writer.WritePropertyName("boost"); + writer.WriteNumberValue(BoostValue); + writer.WritePropertyName("term"); + writer.WriteStringValue(TermValue); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/NodeStatistics.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/NodeStatistics.g.cs new file mode 100644 index 00000000000..542e306582b --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/NodeStatistics.g.cs @@ -0,0 +1,54 @@ +// 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; + +/// +/// Contains statistics about the number of nodes selected by the request. +/// +public sealed partial class NodeStatistics +{ + /// + /// Number of nodes that rejected the request or failed to respond. If this value is not 0, a reason for the rejection or failure is included in the response. + /// + [JsonInclude, JsonPropertyName("failed")] + public int Failed { get; init; } + [JsonInclude, JsonPropertyName("failures")] + public IReadOnlyCollection? Failures { get; init; } + + /// + /// Number of nodes that responded successfully to the request. + /// + [JsonInclude, JsonPropertyName("successful")] + public int Successful { get; init; } + + /// + /// Total number of nodes selected by the request. + /// + [JsonInclude, JsonPropertyName("total")] + public int Total { get; init; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/PluginStats.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/PluginStats.g.cs new file mode 100644 index 00000000000..c76a436e28b --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/PluginStats.g.cs @@ -0,0 +1,50 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using Elastic.Clients.Elasticsearch.Fluent; +using Elastic.Clients.Elasticsearch.Serialization; +using System; +using System.Collections.Generic; +using System.Linq.Expressions; +using System.Text.Json; +using System.Text.Json.Serialization; + +namespace Elastic.Clients.Elasticsearch; + +public sealed partial class PluginStats +{ + [JsonInclude, JsonPropertyName("classname")] + public string Classname { get; init; } + [JsonInclude, JsonPropertyName("description")] + public string Description { get; init; } + [JsonInclude, JsonPropertyName("elasticsearch_version")] + public string ElasticsearchVersion { get; init; } + [JsonInclude, JsonPropertyName("extended_plugins")] + public IReadOnlyCollection ExtendedPlugins { get; init; } + [JsonInclude, JsonPropertyName("has_native_controller")] + public bool HasNativeController { get; init; } + [JsonInclude, JsonPropertyName("java_version")] + public string JavaVersion { get; init; } + [JsonInclude, JsonPropertyName("licensed")] + public bool Licensed { get; init; } + [JsonInclude, JsonPropertyName("name")] + public string Name { get; init; } + [JsonInclude, JsonPropertyName("version")] + public string Version { get; init; } +} \ No newline at end of file