From 43439c7295a6f6f3f386c365f7b84b4877ac1168 Mon Sep 17 00:00:00 2001 From: Florian Bernd Date: Wed, 17 Apr 2024 14:22:31 +0200 Subject: [PATCH] Add missing obsolete attributes (#8137) --- .../ElasticsearchClient.AsyncSearch.g.cs | 40 - .../Client/ElasticsearchClient.Cluster.g.cs | 100 --- .../Client/ElasticsearchClient.Enrich.g.cs | 50 -- .../Client/ElasticsearchClient.Eql.g.cs | 40 - .../Client/ElasticsearchClient.Graph.g.cs | 10 - .../Client/ElasticsearchClient.Indices.g.cs | 430 ----------- .../Client/ElasticsearchClient.Ingest.g.cs | 60 -- .../Client/ElasticsearchClient.License.g.cs | 10 - .../Client/ElasticsearchClient.Ml.g.cs | 700 ------------------ .../Client/ElasticsearchClient.Nodes.g.cs | 40 - .../Client/ElasticsearchClient.Slm.g.cs | 90 --- .../Client/ElasticsearchClient.Snapshot.g.cs | 110 --- .../Client/ElasticsearchClient.Sql.g.cs | 60 -- .../Client/ElasticsearchClient.Synonyms.g.cs | 70 -- .../ElasticsearchClient.TextStructure.g.cs | 10 - .../Client/ElasticsearchClient.Transform.g.cs | 110 --- .../Client/ElasticsearchClient.Xpack.g.cs | 20 - .../Client/ElasticsearchClient.g.cs | 391 ---------- .../Client/IndexManyExtensions.cs | 7 + .../Helpers/BulkAllObservable.cs | 4 +- .../ElasticsearchClient.AsyncSearch.g.cs | 4 + .../Client/ElasticsearchClient.Ccr.g.cs | 13 + .../Client/ElasticsearchClient.Cluster.g.cs | 12 + .../ElasticsearchClient.DanglingIndices.g.cs | 1 + .../Client/ElasticsearchClient.Enrich.g.cs | 5 + .../Client/ElasticsearchClient.Eql.g.cs | 4 + .../Client/ElasticsearchClient.Esql.g.cs | 1 + .../Client/ElasticsearchClient.Features.g.cs | 2 + .../Client/ElasticsearchClient.Graph.g.cs | 1 + .../Client/ElasticsearchClient.Ilm.g.cs | 10 + .../Client/ElasticsearchClient.Indices.g.cs | 57 ++ .../Client/ElasticsearchClient.Inference.g.cs | 4 + .../Client/ElasticsearchClient.Ingest.g.cs | 6 + .../Client/ElasticsearchClient.License.g.cs | 7 + .../Client/ElasticsearchClient.Ml.g.cs | 70 ++ .../Client/ElasticsearchClient.Nodes.g.cs | 7 + .../ElasticsearchClient.QueryRuleset.g.cs | 4 + .../Client/ElasticsearchClient.Rollup.g.cs | 8 + ...ElasticsearchClient.SearchApplication.g.cs | 8 + ...asticsearchClient.SearchableSnapshots.g.cs | 4 + .../Client/ElasticsearchClient.Slm.g.cs | 9 + .../Client/ElasticsearchClient.Snapshot.g.cs | 11 + .../Client/ElasticsearchClient.Sql.g.cs | 6 + .../Client/ElasticsearchClient.Synonyms.g.cs | 7 + .../Client/ElasticsearchClient.Tasks.g.cs | 3 + .../ElasticsearchClient.TextStructure.g.cs | 1 + .../Client/ElasticsearchClient.Transform.g.cs | 11 + .../Client/ElasticsearchClient.Xpack.g.cs | 2 + .../Client/ElasticsearchClient.g.cs | 43 ++ 49 files changed, 331 insertions(+), 2342 deletions(-) diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs index 92e5a5477c..37f7633d85 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs @@ -37,16 +37,6 @@ internal AsyncSearchNamespacedClient(ElasticsearchClient client) : base(client) { } - /// - /// 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. - /// - public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequest request) - { - request.BeforeRequest(); - return DoRequest(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. @@ -123,16 +113,6 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Retrieves the results of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetAsyncSearchResponse Get(GetAsyncSearchRequest request) - { - request.BeforeRequest(); - return DoRequest, GetAsyncSearchRequestParameters>(request); - } - /// /// Retrieves the results of a previously submitted async search request given its ID. /// Learn more about this API in the Elasticsearch documentation. @@ -176,16 +156,6 @@ public virtual Task> GetAsync(Elast return DoRequestAsync, GetAsyncSearchResponse, GetAsyncSearchRequestParameters>(descriptor, cancellationToken); } - /// - /// Retrieves the status of a previously submitted async search request given its ID. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Retrieves the status of a previously submitted async search request given its ID. /// Learn more about this API in the Elasticsearch documentation. @@ -262,16 +232,6 @@ public virtual Task StatusAsync(Elastic.Clients.Elast return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Executes a search request asynchronously. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual SubmitAsyncSearchResponse Submit(SubmitAsyncSearchRequest request) - { - request.BeforeRequest(); - return DoRequest, SubmitAsyncSearchRequestParameters>(request); - } - /// /// Executes a search request asynchronously. /// Learn more about this API in the Elasticsearch documentation. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Cluster.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Cluster.g.cs index 5a73cadeb6..a5aed98b4d 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Cluster.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Cluster.g.cs @@ -37,16 +37,6 @@ 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. @@ -90,16 +80,6 @@ public virtual Task AllocationExplainAsync(Action(descriptor, cancellationToken); } - /// - /// Deletes a component template - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(DeleteComponentTemplateRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes a component template /// Learn more about this API in the Elasticsearch documentation. @@ -143,16 +123,6 @@ public virtual Task DeleteComponentTemplateAsyn return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Returns information about whether a particular component template exist - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ExistsComponentTemplateResponse ExistsComponentTemplate(ExistsComponentTemplateRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns information about whether a particular component template exist /// Learn more about this API in the Elasticsearch documentation. @@ -196,16 +166,6 @@ public virtual Task ExistsComponentTemplateAsyn return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Returns one or more component templates - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetComponentTemplateResponse GetComponentTemplate(GetComponentTemplateRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns one or more component templates /// Learn more about this API in the Elasticsearch documentation. @@ -272,16 +232,6 @@ public virtual Task GetComponentTemplateAsync(Acti return DoRequestAsync(descriptor, cancellationToken); } - /// - /// 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. @@ -325,16 +275,6 @@ public virtual Task GetSettingsAsync(Action(descriptor, cancellationToken); } - /// - /// Returns basic information about the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual HealthResponse Health(HealthRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns basic information about the health of the cluster. /// Learn more about this API in the Elasticsearch documentation. @@ -457,16 +397,6 @@ public virtual Task HealthAsync(Action return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Returns different information about the cluster. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ClusterInfoResponse Info(ClusterInfoRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns different information about the cluster. /// Learn more about this API in the Elasticsearch documentation. @@ -510,16 +440,6 @@ public virtual Task InfoAsync(IReadOnlyCollection(descriptor, 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(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. @@ -563,16 +483,6 @@ public virtual Task PendingTasksAsync(Action(descriptor, cancellationToken); } - /// - /// Creates or updates a component template - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual PutComponentTemplateResponse PutComponentTemplate(PutComponentTemplateRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Creates or updates a component template /// Learn more about this API in the Elasticsearch documentation. @@ -649,16 +559,6 @@ public virtual Task PutComponentTemplateAsync(Elas return DoRequestAsync(descriptor, cancellationToken); } - /// - /// 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. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Enrich.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Enrich.g.cs index 32950a2bf3..b94ecbc2f1 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Enrich.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Enrich.g.cs @@ -37,16 +37,6 @@ 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. @@ -90,16 +80,6 @@ public virtual Task DeletePolicyAsync(Elastic.Clients.Elas return DoRequestAsync(descriptor, cancellationToken); } - /// - /// 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. @@ -143,16 +123,6 @@ public virtual Task ExecutePolicyAsync(Elastic.Clients.El return DoRequestAsync(descriptor, cancellationToken); } - /// - /// 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. @@ -219,16 +189,6 @@ public virtual Task GetPolicyAsync(Action(descriptor, cancellationToken); } - /// - /// 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. @@ -305,16 +265,6 @@ public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsea return DoRequestAsync(descriptor, 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(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. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Eql.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Eql.g.cs index ea804539e5..be9fdbcc16 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Eql.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Eql.g.cs @@ -37,16 +37,6 @@ internal EqlNamespacedClient(ElasticsearchClient client) : base(client) { } - /// - /// Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual EqlDeleteResponse Delete(EqlDeleteRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. /// Learn more about this API in the Elasticsearch documentation. @@ -123,16 +113,6 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Returns async results from previously executed Event Query Language (EQL) search - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual EqlGetResponse Get(EqlGetRequest request) - { - request.BeforeRequest(); - return DoRequest, EqlGetRequestParameters>(request); - } - /// /// Returns async results from previously executed Event Query Language (EQL) search /// Learn more about this API in the Elasticsearch documentation. @@ -176,16 +156,6 @@ public virtual Task> GetAsync(Elastic.Clients.Ela return DoRequestAsync, EqlGetRequestParameters>(descriptor, cancellationToken); } - /// - /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search /// Learn more about this API in the Elasticsearch documentation. @@ -262,16 +232,6 @@ public virtual Task GetStatusAsync(Elastic.Clients.Elastic return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Returns results matching a query expressed in Event Query Language (EQL) - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual EqlSearchResponse Search(EqlSearchRequest request) - { - request.BeforeRequest(); - return DoRequest, EqlSearchRequestParameters>(request); - } - /// /// Returns results matching a query expressed in Event Query Language (EQL) /// Learn more about this API in the Elasticsearch documentation. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Graph.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Graph.g.cs index 25f8cceba8..d7294dfcfb 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Graph.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Graph.g.cs @@ -37,16 +37,6 @@ 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. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Indices.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Indices.g.cs index 7e1c1a20ad..565a92f998 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Indices.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Indices.g.cs @@ -37,16 +37,6 @@ internal IndicesNamespacedClient(ElasticsearchClient client) : base(client) { } - /// - /// Performs the analysis process on a text and return the tokens breakdown of the text. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual AnalyzeIndexResponse Analyze(AnalyzeIndexRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Performs the analysis process on a text and return the tokens breakdown of the text. /// Learn more about this API in the Elasticsearch documentation. @@ -169,16 +159,6 @@ public virtual Task AnalyzeAsync(Action(descriptor, cancellationToken); } - /// - /// Clears all or specific caches for one or more indices. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ClearCacheResponse ClearCache(ClearCacheRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Clears all or specific caches for one or more indices. /// Learn more about this API in the Elasticsearch documentation. @@ -301,16 +281,6 @@ public virtual Task ClearCacheAsync(Action(descriptor, cancellationToken); } - /// - /// Closes an index. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual CloseIndexResponse Close(CloseIndexRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Closes an index. /// Learn more about this API in the Elasticsearch documentation. @@ -387,16 +357,6 @@ public virtual Task CloseAsync(Elastic.Clients.Elasticsearch return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Creates an index with optional settings and mappings. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual CreateIndexResponse Create(CreateIndexRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Creates an index with optional settings and mappings. /// Learn more about this API in the Elasticsearch documentation. @@ -473,16 +433,6 @@ public virtual Task CreateAsync(Elastic.Clients.Elasticsear return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Creates a data stream - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual CreateDataStreamResponse CreateDataStream(CreateDataStreamRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Creates a data stream /// Learn more about this API in the Elasticsearch documentation. @@ -526,16 +476,6 @@ public virtual Task CreateDataStreamAsync(Elastic.Clie return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Provides statistics on operations happening in a data stream. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DataStreamsStatsResponse DataStreamsStats(DataStreamsStatsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Provides statistics on operations happening in a data stream. /// Learn more about this API in the Elasticsearch documentation. @@ -602,16 +542,6 @@ public virtual Task DataStreamsStatsAsync(Action(descriptor, cancellationToken); } - /// - /// Deletes an index. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteIndexResponse Delete(DeleteIndexRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes an index. /// Learn more about this API in the Elasticsearch documentation. @@ -688,16 +618,6 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsear return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Deletes an alias. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteAliasResponse DeleteAlias(DeleteAliasRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes an alias. /// Learn more about this API in the Elasticsearch documentation. @@ -774,16 +694,6 @@ public virtual Task DeleteAliasAsync(Elastic.Clients.Elasti return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Deletes the data stream lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(DeleteDataLifecycleRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes the data stream lifecycle of the selected data streams. /// Learn more about this API in the Elasticsearch documentation. @@ -827,16 +737,6 @@ public virtual Task DeleteDataLifecycleAsync(Elasti return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Deletes a data stream. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteDataStreamResponse DeleteDataStream(DeleteDataStreamRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes a data stream. /// Learn more about this API in the Elasticsearch documentation. @@ -880,16 +780,6 @@ public virtual Task DeleteDataStreamAsync(Elastic.Clie return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Deletes an index template. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteIndexTemplateResponse DeleteIndexTemplate(DeleteIndexTemplateRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes an index template. /// Learn more about this API in the Elasticsearch documentation. @@ -933,16 +823,6 @@ public virtual Task DeleteIndexTemplateAsync(Elasti return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Returns information about whether a particular index exists. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ExistsResponse Exists(ExistsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns information about whether a particular index exists. /// Learn more about this API in the Elasticsearch documentation. @@ -1019,16 +899,6 @@ public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Se return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Returns information about whether a particular alias exists. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ExistsAliasResponse ExistsAlias(ExistsAliasRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns information about whether a particular alias exists. /// Learn more about this API in the Elasticsearch documentation. @@ -1151,16 +1021,6 @@ public virtual Task ExistsAliasAsync(Elastic.Clients.Elasti return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Returns information about whether a particular index template exists. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ExistsIndexTemplateResponse ExistsIndexTemplate(ExistsIndexTemplateRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns information about whether a particular index template exists. /// Learn more about this API in the Elasticsearch documentation. @@ -1204,16 +1064,6 @@ public virtual Task ExistsIndexTemplateAsync(Elasti return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(ExplainDataLifecycleRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. /// Learn more about this API in the Elasticsearch documentation. @@ -1290,16 +1140,6 @@ public virtual Task ExplainDataLifecycleAsync(Elas return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Performs the flush operation on one or more indices. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual FlushResponse Flush(FlushRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Performs the flush operation on one or more indices. /// Learn more about this API in the Elasticsearch documentation. @@ -1422,16 +1262,6 @@ public virtual Task FlushAsync(Action con return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Performs the force merge operation on one or more indices. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ForcemergeResponse Forcemerge(ForcemergeRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Performs the force merge operation on one or more indices. /// Learn more about this API in the Elasticsearch documentation. @@ -1554,16 +1384,6 @@ public virtual Task ForcemergeAsync(Action(descriptor, cancellationToken); } - /// - /// Returns information about one or more indices. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetIndexResponse Get(GetIndexRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns information about one or more indices. /// Learn more about this API in the Elasticsearch documentation. @@ -1640,16 +1460,6 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Ser return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Returns an alias. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetAliasResponse GetAlias(GetAliasRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns an alias. /// Learn more about this API in the Elasticsearch documentation. @@ -1772,16 +1582,6 @@ public virtual Task GetAliasAsync(Action(descriptor, cancellationToken); } - /// - /// Returns the data stream lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetDataLifecycleResponse GetDataLifecycle(GetDataLifecycleRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns the data stream lifecycle of the selected data streams. /// Learn more about this API in the Elasticsearch documentation. @@ -1825,16 +1625,6 @@ public virtual Task GetDataLifecycleAsync(Elastic.Clie return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Returns data streams. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetDataStreamResponse GetDataStream(GetDataStreamRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns data streams. /// Learn more about this API in the Elasticsearch documentation. @@ -1901,16 +1691,6 @@ public virtual Task GetDataStreamAsync(Action(descriptor, cancellationToken); } - /// - /// Returns an index template. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetIndexTemplateResponse GetIndexTemplate(GetIndexTemplateRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns an index template. /// Learn more about this API in the Elasticsearch documentation. @@ -1977,16 +1757,6 @@ public virtual Task GetIndexTemplateAsync(Action(descriptor, cancellationToken); } - /// - /// Returns mappings for one or more indices. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetMappingResponse GetMapping(GetMappingRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns mappings for one or more indices. /// Learn more about this API in the Elasticsearch documentation. @@ -2109,16 +1879,6 @@ public virtual Task GetMappingAsync(Action(descriptor, cancellationToken); } - /// - /// Returns settings for one or more indices. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetIndicesSettingsResponse GetSettings(GetIndicesSettingsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns settings for one or more indices. /// Learn more about this API in the Elasticsearch documentation. @@ -2241,16 +2001,6 @@ public virtual Task GetSettingsAsync(Action(descriptor, cancellationToken); } - /// - /// Migrates an alias to a data stream - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual MigrateToDataStreamResponse MigrateToDataStream(MigrateToDataStreamRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Migrates an alias to a data stream /// Learn more about this API in the Elasticsearch documentation. @@ -2294,16 +2044,6 @@ public virtual Task MigrateToDataStreamAsync(Elasti return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Modifies a data stream - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ModifyDataStreamResponse ModifyDataStream(ModifyDataStreamRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Modifies a data stream /// Learn more about this API in the Elasticsearch documentation. @@ -2347,16 +2087,6 @@ public virtual Task ModifyDataStreamAsync(Action(descriptor, cancellationToken); } - /// - /// Opens an index. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual OpenIndexResponse Open(OpenIndexRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Opens an index. /// Learn more about this API in the Elasticsearch documentation. @@ -2433,16 +2163,6 @@ public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.S return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Creates or updates an alias. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual PutAliasResponse PutAlias(PutAliasRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Creates or updates an alias. /// Learn more about this API in the Elasticsearch documentation. @@ -2519,16 +2239,6 @@ public virtual Task PutAliasAsync(Elastic.Clients.Elasticsearc return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Updates the data stream lifecycle of the selected data streams. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual PutDataLifecycleResponse PutDataLifecycle(PutDataLifecycleRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Updates the data stream lifecycle of the selected data streams. /// Learn more about this API in the Elasticsearch documentation. @@ -2572,16 +2282,6 @@ public virtual Task PutDataLifecycleAsync(Elastic.Clie return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Creates or updates an index template. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual PutIndexTemplateResponse PutIndexTemplate(PutIndexTemplateRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Creates or updates an index template. /// Learn more about this API in the Elasticsearch documentation. @@ -2658,16 +2358,6 @@ public virtual Task PutIndexTemplateAsync(Elastic.Clie return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Updates the index mappings. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual PutMappingResponse PutMapping(PutMappingRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Updates the index mappings. /// Learn more about this API in the Elasticsearch documentation. @@ -2744,16 +2434,6 @@ public virtual Task PutMappingAsync(Elastic.Clients.Elastics return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Updates the index settings. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual PutIndicesSettingsResponse PutSettings(PutIndicesSettingsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Updates the index settings. /// Learn more about this API in the Elasticsearch documentation. @@ -2876,16 +2556,6 @@ public virtual Task PutSettingsAsync(Elastic.Clients return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Creates or updates an index template. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual PutTemplateResponse PutTemplate(PutTemplateRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Creates or updates an index template. /// Learn more about this API in the Elasticsearch documentation. @@ -2962,16 +2632,6 @@ public virtual Task PutTemplateAsync(Elastic.Clients.Elasti return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Returns information about ongoing index shard recoveries. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual RecoveryResponse Recovery(RecoveryRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns information about ongoing index shard recoveries. /// Learn more about this API in the Elasticsearch documentation. @@ -3094,16 +2754,6 @@ public virtual Task RecoveryAsync(Action(descriptor, cancellationToken); } - /// - /// Performs the refresh operation in one or more indices. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual RefreshResponse Refresh(RefreshRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Performs the refresh operation in one or more indices. /// Learn more about this API in the Elasticsearch documentation. @@ -3226,16 +2876,6 @@ public virtual Task RefreshAsync(Action(descriptor, cancellationToken); } - /// - /// Returns information about any matching indices, aliases, and data streams - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ResolveIndexResponse ResolveIndex(ResolveIndexRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns information about any matching indices, aliases, and data streams /// Learn more about this API in the Elasticsearch documentation. @@ -3279,16 +2919,6 @@ public virtual Task ResolveIndexAsync(Elastic.Clients.Elas return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Updates an alias to point to a new index when the existing index
is considered to be too large or too old.
- /// Learn more about this API in the Elasticsearch documentation. - ///
- public virtual RolloverResponse Rollover(RolloverRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Updates an alias to point to a new index when the existing index
is considered to be too large or too old.
/// Learn more about this API in the Elasticsearch documentation. @@ -3411,16 +3041,6 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Provides low-level information about segments in a Lucene index. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual SegmentsResponse Segments(SegmentsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Provides low-level information about segments in a Lucene index. /// Learn more about this API in the Elasticsearch documentation. @@ -3543,16 +3163,6 @@ public virtual Task SegmentsAsync(Action(descriptor, cancellationToken); } - /// - /// Simulate matching the given index name against the index templates in the system - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual SimulateIndexTemplateResponse SimulateIndexTemplate(SimulateIndexTemplateRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Simulate matching the given index name against the index templates in the system /// Learn more about this API in the Elasticsearch documentation. @@ -3596,16 +3206,6 @@ public virtual Task SimulateIndexTemplateAsync(El return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Simulate resolving the given template name or body - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual SimulateTemplateResponse SimulateTemplate(SimulateTemplateRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Simulate resolving the given template name or body /// Learn more about this API in the Elasticsearch documentation. @@ -3728,16 +3328,6 @@ public virtual Task SimulateTemplateAsync(Action(descriptor, cancellationToken); } - /// - /// Provides statistics on operations happening in an index. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual IndicesStatsResponse Stats(IndicesStatsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Provides statistics on operations happening in an index. /// Learn more about this API in the Elasticsearch documentation. @@ -3860,16 +3450,6 @@ public virtual Task StatsAsync(Action(descriptor, cancellationToken); } - /// - /// Updates index aliases. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual UpdateAliasesResponse UpdateAliases(UpdateAliasesRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Updates index aliases. /// Learn more about this API in the Elasticsearch documentation. @@ -3946,16 +3526,6 @@ public virtual Task UpdateAliasesAsync(Action(descriptor, cancellationToken); } - /// - /// Allows a user to validate a potentially expensive query without executing it. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ValidateQueryResponse ValidateQuery(ValidateQueryRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Allows a user to validate a potentially expensive query without executing it. /// Learn more about this API in the Elasticsearch documentation. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs index a33f31dd95..fe0be220e8 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ingest.g.cs @@ -37,16 +37,6 @@ internal IngestNamespacedClient(ElasticsearchClient client) : base(client) { } - /// - /// Deletes a pipeline. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeletePipelineResponse DeletePipeline(DeletePipelineRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes a pipeline. /// Learn more about this API in the Elasticsearch documentation. @@ -123,16 +113,6 @@ public virtual Task DeletePipelineAsync(Elastic.Clients. return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Returns statistical information about geoip databases - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GeoIpStatsResponse GeoIpStats(GeoIpStatsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns statistical information about geoip databases /// Learn more about this API in the Elasticsearch documentation. @@ -176,16 +156,6 @@ public virtual Task GeoIpStatsAsync(Action(descriptor, cancellationToken); } - /// - /// Returns a pipeline. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetPipelineResponse GetPipeline(GetPipelineRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns a pipeline. /// Learn more about this API in the Elasticsearch documentation. @@ -308,16 +278,6 @@ public virtual Task GetPipelineAsync(Action(descriptor, cancellationToken); } - /// - /// Returns a list of the built-in patterns. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ProcessorGrokResponse ProcessorGrok(ProcessorGrokRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns a list of the built-in patterns. /// Learn more about this API in the Elasticsearch documentation. @@ -361,16 +321,6 @@ public virtual Task ProcessorGrokAsync(Action(descriptor, cancellationToken); } - /// - /// Creates or updates a pipeline. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual PutPipelineResponse PutPipeline(PutPipelineRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Creates or updates a pipeline. /// Learn more about this API in the Elasticsearch documentation. @@ -447,16 +397,6 @@ public virtual Task PutPipelineAsync(Elastic.Clients.Elasti return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Allows to simulate a pipeline with example documents. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual SimulateResponse Simulate(SimulateRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Allows to simulate a pipeline with example documents. /// Learn more about this API in the Elasticsearch documentation. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.License.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.License.g.cs index e00aac0cab..65d19eb180 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.License.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.License.g.cs @@ -37,16 +37,6 @@ internal LicenseManagementNamespacedClient(ElasticsearchClient client) : base(cl { } - /// - /// Retrieves licensing information for the cluster - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetLicenseResponse Get(GetLicenseRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Retrieves licensing information for the cluster /// Learn more about this API in the Elasticsearch documentation. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ml.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ml.g.cs index d8af7fc282..4ddd584ae4 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ml.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Ml.g.cs @@ -37,16 +37,6 @@ internal MachineLearningNamespacedClient(ElasticsearchClient client) : base(clie { } - /// - /// Clear the cached results from a trained model deployment - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ClearTrainedModelDeploymentCacheResponse ClearTrainedModelDeploymentCache(ClearTrainedModelDeploymentCacheRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Clear the cached results from a trained model deployment /// Learn more about this API in the Elasticsearch documentation. @@ -90,16 +80,6 @@ public virtual Task ClearTrainedModelD return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Closes one or more anomaly detection jobs. A job can be opened and closed multiple times throughout its lifecycle. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual CloseJobResponse CloseJob(CloseJobRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Closes one or more anomaly detection jobs. A job can be opened and closed multiple times throughout its lifecycle. /// Learn more about this API in the Elasticsearch documentation. @@ -143,16 +123,6 @@ public virtual Task CloseJobAsync(Elastic.Clients.Elasticsearc return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Deletes a calendar. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteCalendarResponse DeleteCalendar(DeleteCalendarRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes a calendar. /// Learn more about this API in the Elasticsearch documentation. @@ -196,16 +166,6 @@ public virtual Task DeleteCalendarAsync(Elastic.Clients. return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Deletes scheduled events from a calendar. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteCalendarEventResponse DeleteCalendarEvent(DeleteCalendarEventRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes scheduled events from a calendar. /// Learn more about this API in the Elasticsearch documentation. @@ -249,16 +209,6 @@ public virtual Task DeleteCalendarEventAsync(Elasti return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Deletes anomaly detection jobs from a calendar. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteCalendarJobResponse DeleteCalendarJob(DeleteCalendarJobRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes anomaly detection jobs from a calendar. /// Learn more about this API in the Elasticsearch documentation. @@ -302,16 +252,6 @@ public virtual Task DeleteCalendarJobAsync(Elastic.Cl return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Deletes an existing datafeed. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteDatafeedResponse DeleteDatafeed(DeleteDatafeedRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes an existing datafeed. /// Learn more about this API in the Elasticsearch documentation. @@ -355,16 +295,6 @@ public virtual Task DeleteDatafeedAsync(Elastic.Clients. return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Deletes an existing data frame analytics job. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(DeleteDataFrameAnalyticsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes an existing data frame analytics job. /// Learn more about this API in the Elasticsearch documentation. @@ -441,16 +371,6 @@ public virtual Task DeleteDataFrameAnalyticsAs return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Deletes expired and unused machine learning data. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteExpiredDataResponse DeleteExpiredData(DeleteExpiredDataRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes expired and unused machine learning data. /// Learn more about this API in the Elasticsearch documentation. @@ -517,16 +437,6 @@ public virtual Task DeleteExpiredDataAsync(Action(descriptor, cancellationToken); } - /// - /// Deletes a filter. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteFilterResponse DeleteFilter(DeleteFilterRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes a filter. /// Learn more about this API in the Elasticsearch documentation. @@ -570,16 +480,6 @@ public virtual Task DeleteFilterAsync(Elastic.Clients.Elas return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Deletes forecasts from a machine learning job. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteForecastResponse DeleteForecast(DeleteForecastRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes forecasts from a machine learning job. /// Learn more about this API in the Elasticsearch documentation. @@ -646,16 +546,6 @@ public virtual Task DeleteForecastAsync(Elastic.Clients. return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Deletes an existing anomaly detection job. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteJobResponse DeleteJob(DeleteJobRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes an existing anomaly detection job. /// Learn more about this API in the Elasticsearch documentation. @@ -699,16 +589,6 @@ public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsea return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Deletes an existing model snapshot. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteModelSnapshotResponse DeleteModelSnapshot(DeleteModelSnapshotRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes an existing model snapshot. /// Learn more about this API in the Elasticsearch documentation. @@ -752,16 +632,6 @@ public virtual Task DeleteModelSnapshotAsync(Elasti return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Deletes an existing trained inference model that is currently not referenced by an ingest pipeline. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteTrainedModelResponse DeleteTrainedModel(DeleteTrainedModelRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes an existing trained inference model that is currently not referenced by an ingest pipeline. /// Learn more about this API in the Elasticsearch documentation. @@ -805,16 +675,6 @@ public virtual Task DeleteTrainedModelAsync(Elastic. return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Deletes a model alias that refers to the trained model - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteTrainedModelAliasResponse DeleteTrainedModelAlias(DeleteTrainedModelAliasRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes a model alias that refers to the trained model /// Learn more about this API in the Elasticsearch documentation. @@ -858,16 +718,6 @@ public virtual Task DeleteTrainedModelAliasAsyn return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Estimates the model memory - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual EstimateModelMemoryResponse EstimateModelMemory(EstimateModelMemoryRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Estimates the model memory /// Learn more about this API in the Elasticsearch documentation. @@ -944,16 +794,6 @@ public virtual Task EstimateModelMemoryAsync(Action return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Evaluates the data frame analytics for an annotated index. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual EvaluateDataFrameResponse EvaluateDataFrame(EvaluateDataFrameRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Evaluates the data frame analytics for an annotated index. /// Learn more about this API in the Elasticsearch documentation. @@ -1030,16 +870,6 @@ public virtual Task EvaluateDataFrameAsync(Action(descriptor, cancellationToken); } - /// - /// Explains a data frame analytics config. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics(ExplainDataFrameAnalyticsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Explains a data frame analytics config. /// Learn more about this API in the Elasticsearch documentation. @@ -1162,16 +992,6 @@ public virtual Task ExplainDataFrameAnalytics return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Forces any buffered data to be processed by the job. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual FlushJobResponse FlushJob(FlushJobRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Forces any buffered data to be processed by the job. /// Learn more about this API in the Elasticsearch documentation. @@ -1215,16 +1035,6 @@ public virtual Task FlushJobAsync(Elastic.Clients.Elasticsearc return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Predicts the future behavior of a time series by using its historical behavior. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ForecastResponse Forecast(ForecastRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Predicts the future behavior of a time series by using its historical behavior. /// Learn more about this API in the Elasticsearch documentation. @@ -1268,16 +1078,6 @@ public virtual Task ForecastAsync(Elastic.Clients.Elasticsearc return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Retrieves anomaly detection job results for one or more buckets. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetBucketsResponse GetBuckets(GetBucketsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Retrieves anomaly detection job results for one or more buckets. /// Learn more about this API in the Elasticsearch documentation. @@ -1400,16 +1200,6 @@ public virtual Task GetBucketsAsync(Elastic.Clients.Elastics return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Retrieves information about the scheduled events in calendars. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetCalendarEventsResponse GetCalendarEvents(GetCalendarEventsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Retrieves information about the scheduled events in calendars. /// Learn more about this API in the Elasticsearch documentation. @@ -1453,16 +1243,6 @@ public virtual Task GetCalendarEventsAsync(Elastic.Cl return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Retrieves configuration information for calendars. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetCalendarsResponse GetCalendars(GetCalendarsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Retrieves configuration information for calendars. /// Learn more about this API in the Elasticsearch documentation. @@ -1529,16 +1309,6 @@ public virtual Task GetCalendarsAsync(Action(descriptor, cancellationToken); } - /// - /// Retrieves anomaly detection job results for one or more categories. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetCategoriesResponse GetCategories(GetCategoriesRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Retrieves anomaly detection job results for one or more categories. /// Learn more about this API in the Elasticsearch documentation. @@ -1605,16 +1375,6 @@ public virtual Task GetCategoriesAsync(Elastic.Clients.El return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Retrieves configuration information for datafeeds. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetDatafeedsResponse GetDatafeeds(GetDatafeedsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Retrieves configuration information for datafeeds. /// Learn more about this API in the Elasticsearch documentation. @@ -1681,16 +1441,6 @@ public virtual Task GetDatafeedsAsync(Action(descriptor, cancellationToken); } - /// - /// Retrieves usage information for datafeeds. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetDatafeedStatsResponse GetDatafeedStats(GetDatafeedStatsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Retrieves usage information for datafeeds. /// Learn more about this API in the Elasticsearch documentation. @@ -1757,16 +1507,6 @@ public virtual Task GetDatafeedStatsAsync(Action(descriptor, cancellationToken); } - /// - /// Retrieves configuration information for data frame analytics jobs. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(GetDataFrameAnalyticsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Retrieves configuration information for data frame analytics jobs. /// Learn more about this API in the Elasticsearch documentation. @@ -1889,16 +1629,6 @@ public virtual Task GetDataFrameAnalyticsAsync(Ac return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Retrieves usage information for data frame analytics jobs. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats(GetDataFrameAnalyticsStatsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Retrieves usage information for data frame analytics jobs. /// Learn more about this API in the Elasticsearch documentation. @@ -2021,16 +1751,6 @@ public virtual Task GetDataFrameAnalyticsSta return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Retrieves filters. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetFiltersResponse GetFilters(GetFiltersRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Retrieves filters. /// Learn more about this API in the Elasticsearch documentation. @@ -2097,16 +1817,6 @@ public virtual Task GetFiltersAsync(Action(descriptor, cancellationToken); } - /// - /// Retrieves anomaly detection job results for one or more influencers. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetInfluencersResponse GetInfluencers(GetInfluencersRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Retrieves anomaly detection job results for one or more influencers. /// Learn more about this API in the Elasticsearch documentation. @@ -2183,16 +1893,6 @@ public virtual Task GetInfluencersAsync(Elastic.Clients. return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Retrieves configuration information for anomaly detection jobs. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetJobsResponse GetJobs(GetJobsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Retrieves configuration information for anomaly detection jobs. /// Learn more about this API in the Elasticsearch documentation. @@ -2259,16 +1959,6 @@ public virtual Task GetJobsAsync(Action(descriptor, cancellationToken); } - /// - /// Retrieves usage information for anomaly detection jobs. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetJobStatsResponse GetJobStats(GetJobStatsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Retrieves usage information for anomaly detection jobs. /// Learn more about this API in the Elasticsearch documentation. @@ -2335,16 +2025,6 @@ public virtual Task GetJobStatsAsync(Action(descriptor, cancellationToken); } - /// - /// Returns information on how ML is using memory. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetMemoryStatsResponse GetMemoryStats(GetMemoryStatsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns information on how ML is using memory. /// Learn more about this API in the Elasticsearch documentation. @@ -2411,16 +2091,6 @@ public virtual Task GetMemoryStatsAsync(Action(descriptor, cancellationToken); } - /// - /// Retrieves information about model snapshots. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetModelSnapshotsResponse GetModelSnapshots(GetModelSnapshotsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Retrieves information about model snapshots. /// Learn more about this API in the Elasticsearch documentation. @@ -2543,16 +2213,6 @@ public virtual Task GetModelSnapshotsAsync(Elastic.Cl return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Gets stats for anomaly detection job model snapshot upgrades that are in progress. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetModelSnapshotUpgradeStatsResponse GetModelSnapshotUpgradeStats(GetModelSnapshotUpgradeStatsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Gets stats for anomaly detection job model snapshot upgrades that are in progress. /// Learn more about this API in the Elasticsearch documentation. @@ -2596,16 +2256,6 @@ public virtual Task GetModelSnapshotUpgrad return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Retrieves overall bucket results that summarize the bucket results of multiple anomaly detection jobs. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetOverallBucketsResponse GetOverallBuckets(GetOverallBucketsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Retrieves overall bucket results that summarize the bucket results of multiple anomaly detection jobs. /// Learn more about this API in the Elasticsearch documentation. @@ -2649,16 +2299,6 @@ public virtual Task GetOverallBucketsAsync(Elastic.Cl return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Retrieves anomaly records for an anomaly detection job. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetRecordsResponse GetRecords(GetRecordsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Retrieves anomaly records for an anomaly detection job. /// Learn more about this API in the Elasticsearch documentation. @@ -2735,16 +2375,6 @@ public virtual Task GetRecordsAsync(Elastic.Clients.Elastics return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Retrieves configuration information for a trained inference model. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetTrainedModelsResponse GetTrainedModels(GetTrainedModelsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Retrieves configuration information for a trained inference model. /// Learn more about this API in the Elasticsearch documentation. @@ -2811,16 +2441,6 @@ public virtual Task GetTrainedModelsAsync(Action(descriptor, cancellationToken); } - /// - /// Retrieves usage information for trained inference models. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetTrainedModelsStatsResponse GetTrainedModelsStats(GetTrainedModelsStatsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Retrieves usage information for trained inference models. /// Learn more about this API in the Elasticsearch documentation. @@ -2887,16 +2507,6 @@ public virtual Task GetTrainedModelsStatsAsync(Ac return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Evaluate a trained model. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual InferTrainedModelResponse InferTrainedModel(InferTrainedModelRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Evaluate a trained model. /// Learn more about this API in the Elasticsearch documentation. @@ -2973,16 +2583,6 @@ public virtual Task InferTrainedModelAsync(Elastic.Cl return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Returns defaults and limits used by machine learning. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual MlInfoResponse Info(MlInfoRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns defaults and limits used by machine learning. /// Learn more about this API in the Elasticsearch documentation. @@ -3026,16 +2626,6 @@ public virtual Task InfoAsync(Action co return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Opens one or more anomaly detection jobs. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual OpenJobResponse OpenJob(OpenJobRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Opens one or more anomaly detection jobs. /// Learn more about this API in the Elasticsearch documentation. @@ -3079,16 +2669,6 @@ public virtual Task OpenJobAsync(Elastic.Clients.Elasticsearch. return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Posts scheduled events in a calendar. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual PostCalendarEventsResponse PostCalendarEvents(PostCalendarEventsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Posts scheduled events in a calendar. /// Learn more about this API in the Elasticsearch documentation. @@ -3132,16 +2712,6 @@ public virtual Task PostCalendarEventsAsync(Elastic. return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Previews that will be analyzed given a data frame analytics config. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual PreviewDataFrameAnalyticsResponse PreviewDataFrameAnalytics(PreviewDataFrameAnalyticsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Previews that will be analyzed given a data frame analytics config. /// Learn more about this API in the Elasticsearch documentation. @@ -3264,16 +2834,6 @@ public virtual Task PreviewDataFrameAnalytics return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Instantiates a calendar. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual PutCalendarResponse PutCalendar(PutCalendarRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Instantiates a calendar. /// Learn more about this API in the Elasticsearch documentation. @@ -3317,16 +2877,6 @@ public virtual Task PutCalendarAsync(Elastic.Clients.Elasti return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Adds an anomaly detection job to a calendar. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual PutCalendarJobResponse PutCalendarJob(PutCalendarJobRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Adds an anomaly detection job to a calendar. /// Learn more about this API in the Elasticsearch documentation. @@ -3370,16 +2920,6 @@ public virtual Task PutCalendarJobAsync(Elastic.Clients. return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Instantiates a datafeed. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual PutDatafeedResponse PutDatafeed(PutDatafeedRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Instantiates a datafeed. /// Learn more about this API in the Elasticsearch documentation. @@ -3456,16 +2996,6 @@ public virtual Task PutDatafeedAsync(Elastic.Clients.Elasti return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Instantiates a data frame analytics job. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(PutDataFrameAnalyticsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Instantiates a data frame analytics job. /// Learn more about this API in the Elasticsearch documentation. @@ -3542,16 +3072,6 @@ public virtual Task PutDataFrameAnalyticsAsync(El return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Instantiates a filter. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual PutFilterResponse PutFilter(PutFilterRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Instantiates a filter. /// Learn more about this API in the Elasticsearch documentation. @@ -3595,16 +3115,6 @@ public virtual Task PutFilterAsync(Elastic.Clients.Elasticsea return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Instantiates an anomaly detection job. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual PutJobResponse PutJob(PutJobRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Instantiates an anomaly detection job. /// Learn more about this API in the Elasticsearch documentation. @@ -3681,16 +3191,6 @@ public virtual Task PutJobAsync(Elastic.Clients.Elasticsearch.Se return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Creates an inference trained model. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual PutTrainedModelResponse PutTrainedModel(PutTrainedModelRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Creates an inference trained model. /// Learn more about this API in the Elasticsearch documentation. @@ -3767,16 +3267,6 @@ public virtual Task PutTrainedModelAsync(Elastic.Client return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Creates a new model alias (or reassigns an existing one) to refer to the trained model - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual PutTrainedModelAliasResponse PutTrainedModelAlias(PutTrainedModelAliasRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Creates a new model alias (or reassigns an existing one) to refer to the trained model /// Learn more about this API in the Elasticsearch documentation. @@ -3820,16 +3310,6 @@ public virtual Task PutTrainedModelAliasAsync(Elas return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Creates part of a trained model definition - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual PutTrainedModelDefinitionPartResponse PutTrainedModelDefinitionPart(PutTrainedModelDefinitionPartRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Creates part of a trained model definition /// Learn more about this API in the Elasticsearch documentation. @@ -3873,16 +3353,6 @@ public virtual Task PutTrainedModelDefini return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Creates a trained model vocabulary - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual PutTrainedModelVocabularyResponse PutTrainedModelVocabulary(PutTrainedModelVocabularyRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Creates a trained model vocabulary /// Learn more about this API in the Elasticsearch documentation. @@ -3926,16 +3396,6 @@ public virtual Task PutTrainedModelVocabulary return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Resets an existing anomaly detection job. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ResetJobResponse ResetJob(ResetJobRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Resets an existing anomaly detection job. /// Learn more about this API in the Elasticsearch documentation. @@ -3979,16 +3439,6 @@ public virtual Task ResetJobAsync(Elastic.Clients.Elasticsearc return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Reverts to a specific snapshot. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual RevertModelSnapshotResponse RevertModelSnapshot(RevertModelSnapshotRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Reverts to a specific snapshot. /// Learn more about this API in the Elasticsearch documentation. @@ -4032,16 +3482,6 @@ public virtual Task RevertModelSnapshotAsync(Elasti return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Sets a cluster wide upgrade_mode setting that prepares machine learning indices for an upgrade. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual SetUpgradeModeResponse SetUpgradeMode(SetUpgradeModeRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Sets a cluster wide upgrade_mode setting that prepares machine learning indices for an upgrade. /// Learn more about this API in the Elasticsearch documentation. @@ -4085,16 +3525,6 @@ public virtual Task SetUpgradeModeAsync(Action(descriptor, cancellationToken); } - /// - /// Starts one or more datafeeds. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual StartDatafeedResponse StartDatafeed(StartDatafeedRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Starts one or more datafeeds. /// Learn more about this API in the Elasticsearch documentation. @@ -4138,16 +3568,6 @@ public virtual Task StartDatafeedAsync(Elastic.Clients.El return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Starts a data frame analytics job. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual StartDataFrameAnalyticsResponse StartDataFrameAnalytics(StartDataFrameAnalyticsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Starts a data frame analytics job. /// Learn more about this API in the Elasticsearch documentation. @@ -4224,16 +3644,6 @@ public virtual Task StartDataFrameAnalyticsAsyn return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Start a trained model deployment. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual StartTrainedModelDeploymentResponse StartTrainedModelDeployment(StartTrainedModelDeploymentRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Start a trained model deployment. /// Learn more about this API in the Elasticsearch documentation. @@ -4277,16 +3687,6 @@ public virtual Task StartTrainedModelDeploy return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Stops one or more datafeeds. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual StopDatafeedResponse StopDatafeed(StopDatafeedRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Stops one or more datafeeds. /// Learn more about this API in the Elasticsearch documentation. @@ -4330,16 +3730,6 @@ public virtual Task StopDatafeedAsync(Elastic.Clients.Elas return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Stops one or more data frame analytics jobs. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual StopDataFrameAnalyticsResponse StopDataFrameAnalytics(StopDataFrameAnalyticsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Stops one or more data frame analytics jobs. /// Learn more about this API in the Elasticsearch documentation. @@ -4416,16 +3806,6 @@ public virtual Task StopDataFrameAnalyticsAsync( return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Stop a trained model deployment. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual StopTrainedModelDeploymentResponse StopTrainedModelDeployment(StopTrainedModelDeploymentRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Stop a trained model deployment. /// Learn more about this API in the Elasticsearch documentation. @@ -4469,16 +3849,6 @@ public virtual Task StopTrainedModelDeployme return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Updates certain properties of a datafeed. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual UpdateDatafeedResponse UpdateDatafeed(UpdateDatafeedRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Updates certain properties of a datafeed. /// Learn more about this API in the Elasticsearch documentation. @@ -4555,16 +3925,6 @@ public virtual Task UpdateDatafeedAsync(Elastic.Clients. return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Updates certain properties of a data frame analytics job. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual UpdateDataFrameAnalyticsResponse UpdateDataFrameAnalytics(UpdateDataFrameAnalyticsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Updates certain properties of a data frame analytics job. /// Learn more about this API in the Elasticsearch documentation. @@ -4641,16 +4001,6 @@ public virtual Task UpdateDataFrameAnalyticsAs return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Updates the description of a filter, adds items, or removes items. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual UpdateFilterResponse UpdateFilter(UpdateFilterRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Updates the description of a filter, adds items, or removes items. /// Learn more about this API in the Elasticsearch documentation. @@ -4694,16 +4044,6 @@ public virtual Task UpdateFilterAsync(Elastic.Clients.Elas return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Updates certain properties of an anomaly detection job. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual UpdateJobResponse UpdateJob(UpdateJobRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Updates certain properties of an anomaly detection job. /// Learn more about this API in the Elasticsearch documentation. @@ -4780,16 +4120,6 @@ public virtual Task UpdateJobAsync(Elastic.Clients.Elasticsea return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Updates certain properties of a snapshot. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual UpdateModelSnapshotResponse UpdateModelSnapshot(UpdateModelSnapshotRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Updates certain properties of a snapshot. /// Learn more about this API in the Elasticsearch documentation. @@ -4833,16 +4163,6 @@ public virtual Task UpdateModelSnapshotAsync(Elasti return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Upgrades a given job snapshot to the current major version. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual UpgradeJobSnapshotResponse UpgradeJobSnapshot(UpgradeJobSnapshotRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Upgrades a given job snapshot to the current major version. /// Learn more about this API in the Elasticsearch documentation. @@ -4886,16 +4206,6 @@ public virtual Task UpgradeJobSnapshotAsync(Elastic. return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Validates an anomaly detection job. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ValidateResponse Validate(ValidateRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Validates an anomaly detection job. /// Learn more about this API in the Elasticsearch documentation. @@ -4972,16 +4282,6 @@ public virtual Task ValidateAsync(Action(descriptor, cancellationToken); } - /// - /// Validates an anomaly detection detector. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ValidateDetectorResponse ValidateDetector(ValidateDetectorRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Validates an anomaly detection detector. /// Learn more about this API in the Elasticsearch documentation. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Nodes.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Nodes.g.cs index 1828acdbc3..e47816b359 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Nodes.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Nodes.g.cs @@ -37,16 +37,6 @@ internal NodesNamespacedClient(ElasticsearchClient client) : base(client) { } - /// - /// Returns information about hot threads on each node in the cluster. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual HotThreadsResponse HotThreads(HotThreadsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns information about hot threads on each node in the cluster. /// Learn more about this API in the Elasticsearch documentation. @@ -113,16 +103,6 @@ public virtual Task HotThreadsAsync(Action(descriptor, cancellationToken); } - /// - /// Returns information about nodes in the cluster. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual NodesInfoResponse Info(NodesInfoRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns information about nodes in the cluster. /// Learn more about this API in the Elasticsearch documentation. @@ -189,16 +169,6 @@ public virtual Task InfoAsync(Action(descriptor, cancellationToken); } - /// - /// Returns statistical information about nodes in the cluster. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual NodesStatsResponse Stats(NodesStatsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns statistical information about nodes in the cluster. /// Learn more about this API in the Elasticsearch documentation. @@ -321,16 +291,6 @@ public virtual Task StatsAsync(Action(descriptor, cancellationToken); } - /// - /// Returns low-level information about REST actions usage on nodes. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual NodesUsageResponse Usage(NodesUsageRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns low-level information about REST actions usage on nodes. /// Learn more about this API in the Elasticsearch documentation. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Slm.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Slm.g.cs index b5798bd68f..311d84cb9a 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Slm.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Slm.g.cs @@ -37,16 +37,6 @@ internal SnapshotLifecycleManagementNamespacedClient(ElasticsearchClient client) { } - /// - /// Deletes an existing snapshot lifecycle policy. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteLifecycleResponse DeleteLifecycle(DeleteLifecycleRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes an existing snapshot lifecycle policy. /// Learn more about this API in the Elasticsearch documentation. @@ -90,16 +80,6 @@ public virtual Task DeleteLifecycleAsync(Elastic.Client return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Immediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ExecuteLifecycleResponse ExecuteLifecycle(ExecuteLifecycleRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Immediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time. /// Learn more about this API in the Elasticsearch documentation. @@ -143,16 +123,6 @@ public virtual Task ExecuteLifecycleAsync(Elastic.Clie return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Deletes any snapshots that are expired according to the policy's retention rules. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ExecuteRetentionResponse ExecuteRetention(ExecuteRetentionRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes any snapshots that are expired according to the policy's retention rules. /// Learn more about this API in the Elasticsearch documentation. @@ -196,16 +166,6 @@ public virtual Task ExecuteRetentionAsync(Action(descriptor, cancellationToken); } - /// - /// Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetLifecycleResponse GetLifecycle(GetLifecycleRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// Learn more about this API in the Elasticsearch documentation. @@ -272,16 +232,6 @@ public virtual Task GetLifecycleAsync(Action(descriptor, cancellationToken); } - /// - /// Returns global and policy-level statistics about actions taken by snapshot lifecycle management. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetStatsResponse GetStats(GetStatsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns global and policy-level statistics about actions taken by snapshot lifecycle management. /// Learn more about this API in the Elasticsearch documentation. @@ -325,16 +275,6 @@ public virtual Task GetStatsAsync(Action(descriptor, cancellationToken); } - /// - /// Retrieves the status of snapshot lifecycle management (SLM). - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetSlmStatusResponse GetStatus(GetSlmStatusRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Retrieves the status of snapshot lifecycle management (SLM). /// Learn more about this API in the Elasticsearch documentation. @@ -378,16 +318,6 @@ public virtual Task GetStatusAsync(Action(descriptor, cancellationToken); } - /// - /// Creates or updates a snapshot lifecycle policy. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual PutLifecycleResponse PutLifecycle(PutLifecycleRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Creates or updates a snapshot lifecycle policy. /// Learn more about this API in the Elasticsearch documentation. @@ -431,16 +361,6 @@ public virtual Task PutLifecycleAsync(Elastic.Clients.Elas return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Turns on snapshot lifecycle management (SLM). - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual StartSlmResponse Start(StartSlmRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Turns on snapshot lifecycle management (SLM). /// Learn more about this API in the Elasticsearch documentation. @@ -484,16 +404,6 @@ public virtual Task StartAsync(Action(descriptor, cancellationToken); } - /// - /// Turns off snapshot lifecycle management (SLM). - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual StopSlmResponse Stop(StopSlmRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Turns off snapshot lifecycle management (SLM). /// Learn more about this API in the Elasticsearch documentation. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Snapshot.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Snapshot.g.cs index 731057c370..f8e59ee883 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Snapshot.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Snapshot.g.cs @@ -37,16 +37,6 @@ internal SnapshotNamespacedClient(ElasticsearchClient client) : base(client) { } - /// - /// Removes stale data from repository. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual CleanupRepositoryResponse CleanupRepository(CleanupRepositoryRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Removes stale data from repository. /// Learn more about this API in the Elasticsearch documentation. @@ -90,16 +80,6 @@ public virtual Task CleanupRepositoryAsync(Elastic.Cl return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Clones indices from one snapshot into another snapshot in the same repository. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual CloneSnapshotResponse Clone(CloneSnapshotRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Clones indices from one snapshot into another snapshot in the same repository. /// Learn more about this API in the Elasticsearch documentation. @@ -143,16 +123,6 @@ public virtual Task CloneAsync(Elastic.Clients.Elasticsea return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Creates a snapshot in a repository. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual CreateSnapshotResponse Create(CreateSnapshotRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Creates a snapshot in a repository. /// Learn more about this API in the Elasticsearch documentation. @@ -196,16 +166,6 @@ public virtual Task CreateAsync(Elastic.Clients.Elastics return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Creates a repository. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual CreateRepositoryResponse CreateRepository(CreateRepositoryRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Creates a repository. /// Learn more about this API in the Elasticsearch documentation. @@ -249,16 +209,6 @@ public virtual Task CreateRepositoryAsync(Elastic.Clie return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Deletes one or more snapshots. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteSnapshotResponse Delete(DeleteSnapshotRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes one or more snapshots. /// Learn more about this API in the Elasticsearch documentation. @@ -302,16 +252,6 @@ public virtual Task DeleteAsync(Elastic.Clients.Elastics return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Deletes a repository. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteRepositoryResponse DeleteRepository(DeleteRepositoryRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes a repository. /// Learn more about this API in the Elasticsearch documentation. @@ -355,16 +295,6 @@ public virtual Task DeleteRepositoryAsync(Elastic.Clie return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Returns information about a snapshot. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetSnapshotResponse Get(GetSnapshotRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns information about a snapshot. /// Learn more about this API in the Elasticsearch documentation. @@ -408,16 +338,6 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch. return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Returns information about a repository. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetRepositoryResponse GetRepository(GetRepositoryRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns information about a repository. /// Learn more about this API in the Elasticsearch documentation. @@ -484,16 +404,6 @@ public virtual Task GetRepositoryAsync(Action(descriptor, cancellationToken); } - /// - /// Restores a snapshot. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual RestoreResponse Restore(RestoreRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Restores a snapshot. /// Learn more about this API in the Elasticsearch documentation. @@ -570,16 +480,6 @@ public virtual Task RestoreAsync(Elastic.Clients.Elasticsearch. return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Returns information about the status of a snapshot. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual SnapshotStatusResponse Status(SnapshotStatusRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns information about the status of a snapshot. /// Learn more about this API in the Elasticsearch documentation. @@ -646,16 +546,6 @@ public virtual Task StatusAsync(Action(descriptor, cancellationToken); } - /// - /// Verifies a repository. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual VerifyRepositoryResponse VerifyRepository(VerifyRepositoryRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Verifies a repository. /// Learn more about this API in the Elasticsearch documentation. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Sql.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Sql.g.cs index 9cad22474a..5a35db545f 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Sql.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Sql.g.cs @@ -37,16 +37,6 @@ internal SqlNamespacedClient(ElasticsearchClient client) : base(client) { } - /// - /// Clears the SQL cursor - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ClearCursorResponse ClearCursor(ClearCursorRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Clears the SQL cursor /// Learn more about this API in the Elasticsearch documentation. @@ -90,16 +80,6 @@ public virtual Task ClearCursorAsync(Action(descriptor, cancellationToken); } - /// - /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteAsyncResponse DeleteAsync(DeleteAsyncRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. /// Learn more about this API in the Elasticsearch documentation. @@ -176,16 +156,6 @@ public virtual Task DeleteAsyncAsync(Elastic.Clients.Elasti return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Returns the current status and available results for an async SQL search or stored synchronous SQL search - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetAsyncResponse GetAsync(GetAsyncRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns the current status and available results for an async SQL search or stored synchronous SQL search /// Learn more about this API in the Elasticsearch documentation. @@ -262,16 +232,6 @@ public virtual Task GetAsyncAsync(Elastic.Clients.Elasticsearc return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Returns the current status of an async SQL search or a stored synchronous SQL search - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetAsyncStatusResponse GetAsyncStatus(GetAsyncStatusRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns the current status of an async SQL search or a stored synchronous SQL search /// Learn more about this API in the Elasticsearch documentation. @@ -348,16 +308,6 @@ public virtual Task GetAsyncStatusAsync(Elastic.Clients. return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Executes a SQL request - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual QueryResponse Query(QueryRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Executes a SQL request /// Learn more about this API in the Elasticsearch documentation. @@ -434,16 +384,6 @@ public virtual Task QueryAsync(Action con return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Translates SQL into Elasticsearch queries - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual TranslateResponse Translate(TranslateRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Translates SQL into Elasticsearch queries /// Learn more about this API in the Elasticsearch documentation. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Synonyms.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Synonyms.g.cs index 72c5b7a211..76f427d3a5 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Synonyms.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Synonyms.g.cs @@ -37,16 +37,6 @@ internal SynonymsNamespacedClient(ElasticsearchClient client) : base(client) { } - /// - /// Deletes a synonym set - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteSynonymResponse DeleteSynonym(DeleteSynonymRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes a synonym set /// Learn more about this API in the Elasticsearch documentation. @@ -123,16 +113,6 @@ public virtual Task DeleteSynonymAsync(Elastic.Clients.El return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Deletes a synonym rule in a synonym set - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteSynonymRuleResponse DeleteSynonymRule(DeleteSynonymRuleRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes a synonym rule in a synonym set /// Learn more about this API in the Elasticsearch documentation. @@ -176,16 +156,6 @@ public virtual Task DeleteSynonymRuleAsync(Elastic.Cl return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Retrieves a synonym set - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetSynonymResponse GetSynonym(GetSynonymRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Retrieves a synonym set /// Learn more about this API in the Elasticsearch documentation. @@ -262,16 +232,6 @@ public virtual Task GetSynonymAsync(Elastic.Clients.Elastics return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Retrieves a synonym rule from a synonym set - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetSynonymRuleResponse GetSynonymRule(GetSynonymRuleRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Retrieves a synonym rule from a synonym set /// Learn more about this API in the Elasticsearch documentation. @@ -315,16 +275,6 @@ public virtual Task GetSynonymRuleAsync(Elastic.Clients. return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Retrieves a summary of all defined synonym sets - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetSynonymsSetsResponse GetSynonymsSets(GetSynonymsSetsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Retrieves a summary of all defined synonym sets /// Learn more about this API in the Elasticsearch documentation. @@ -368,16 +318,6 @@ public virtual Task GetSynonymsSetsAsync(Action(descriptor, cancellationToken); } - /// - /// Creates or updates a synonyms set - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual PutSynonymResponse PutSynonym(PutSynonymRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Creates or updates a synonyms set /// Learn more about this API in the Elasticsearch documentation. @@ -454,16 +394,6 @@ public virtual Task PutSynonymAsync(Elastic.Clients.Elastics return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Creates or updates a synonym rule in a synonym set - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual PutSynonymRuleResponse PutSynonymRule(PutSynonymRuleRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Creates or updates a synonym rule in a synonym set /// Learn more about this API in the Elasticsearch documentation. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.TextStructure.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.TextStructure.g.cs index 6f7760e589..d801794ccc 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.TextStructure.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.TextStructure.g.cs @@ -37,16 +37,6 @@ internal TextStructureNamespacedClient(ElasticsearchClient client) : base(client { } - /// - /// Tests a Grok pattern on some text. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual TestGrokPatternResponse TestGrokPattern(TestGrokPatternRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Tests a Grok pattern on some text. /// Learn more about this API in the Elasticsearch documentation. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Transform.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Transform.g.cs index 4ea3b8ff10..299cb1d5ce 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Transform.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Transform.g.cs @@ -37,16 +37,6 @@ internal TransformManagementNamespacedClient(ElasticsearchClient client) : base( { } - /// - /// Deletes an existing transform. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteTransformResponse DeleteTransform(DeleteTransformRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes an existing transform. /// Learn more about this API in the Elasticsearch documentation. @@ -90,16 +80,6 @@ public virtual Task DeleteTransformAsync(Elastic.Client return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Retrieves configuration information for transforms. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetTransformResponse GetTransform(GetTransformRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Retrieves configuration information for transforms. /// Learn more about this API in the Elasticsearch documentation. @@ -166,16 +146,6 @@ public virtual Task GetTransformAsync(Action(descriptor, cancellationToken); } - /// - /// Retrieves usage information for transforms. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetTransformStatsResponse GetTransformStats(GetTransformStatsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Retrieves usage information for transforms. /// Learn more about this API in the Elasticsearch documentation. @@ -219,16 +189,6 @@ public virtual Task GetTransformStatsAsync(Elastic.Cl return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Previews a transform. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual PreviewTransformResponse PreviewTransform(PreviewTransformRequest request) - { - request.BeforeRequest(); - return DoRequest, PreviewTransformRequestParameters>(request); - } - /// /// Previews a transform. /// Learn more about this API in the Elasticsearch documentation. @@ -295,16 +255,6 @@ public virtual Task> PreviewTransformAsync< return DoRequestAsync, PreviewTransformResponse, PreviewTransformRequestParameters>(descriptor, cancellationToken); } - /// - /// Instantiates a transform. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual PutTransformResponse PutTransform(PutTransformRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Instantiates a transform. /// Learn more about this API in the Elasticsearch documentation. @@ -381,16 +331,6 @@ public virtual Task PutTransformAsync(Elastic.Clients.Elas return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Resets an existing transform. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ResetTransformResponse ResetTransform(ResetTransformRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Resets an existing transform. /// Learn more about this API in the Elasticsearch documentation. @@ -434,16 +374,6 @@ public virtual Task ResetTransformAsync(Elastic.Clients. return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Schedules now a transform. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ScheduleNowTransformResponse ScheduleNowTransform(ScheduleNowTransformRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Schedules now a transform. /// Learn more about this API in the Elasticsearch documentation. @@ -487,16 +417,6 @@ public virtual Task ScheduleNowTransformAsync(Elas return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Starts one or more transforms. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual StartTransformResponse StartTransform(StartTransformRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Starts one or more transforms. /// Learn more about this API in the Elasticsearch documentation. @@ -540,16 +460,6 @@ public virtual Task StartTransformAsync(Elastic.Clients. return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Stops one or more transforms. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual StopTransformResponse StopTransform(StopTransformRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Stops one or more transforms. /// Learn more about this API in the Elasticsearch documentation. @@ -593,16 +503,6 @@ public virtual Task StopTransformAsync(Elastic.Clients.El return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Updates certain properties of a transform. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual UpdateTransformResponse UpdateTransform(UpdateTransformRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Updates certain properties of a transform. /// Learn more about this API in the Elasticsearch documentation. @@ -679,16 +579,6 @@ public virtual Task UpdateTransformAsync(Elastic.Client return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Upgrades all transforms. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual UpgradeTransformsResponse UpgradeTransforms(UpgradeTransformsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Upgrades all transforms. /// Learn more about this API in the Elasticsearch documentation. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Xpack.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Xpack.g.cs index 49b73b26d4..888321cd04 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Xpack.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.Xpack.g.cs @@ -37,16 +37,6 @@ internal XpackNamespacedClient(ElasticsearchClient client) : base(client) { } - /// - /// Retrieves information about the installed X-Pack features. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual XpackInfoResponse Info(XpackInfoRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Retrieves information about the installed X-Pack features. /// Learn more about this API in the Elasticsearch documentation. @@ -90,16 +80,6 @@ public virtual Task InfoAsync(Action(descriptor, cancellationToken); } - /// - /// Retrieves usage information about the installed X-Pack features. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual XpackUsageResponse Usage(XpackUsageRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Retrieves usage information about the installed X-Pack features. /// Learn more about this API in the Elasticsearch documentation. diff --git a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.g.cs b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.g.cs index b8e8e452c0..4d959a2bef 100644 --- a/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.g.cs +++ b/src/Elastic.Clients.Elasticsearch.Serverless/_Generated/Client/ElasticsearchClient.g.cs @@ -82,16 +82,6 @@ public partial class ElasticsearchClient Xpack = new XpackNamespacedClient(this); } - /// - /// Allows to perform multiple index/update/delete operations in a single request. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual BulkResponse Bulk(BulkRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Allows to perform multiple index/update/delete operations in a single request. /// Learn more about this API in the Elasticsearch documentation. @@ -214,16 +204,6 @@ public virtual Task BulkAsync(Action config return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Explicitly clears the search context for a scroll. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ClearScrollResponse ClearScroll(ClearScrollRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Explicitly clears the search context for a scroll. /// Learn more about this API in the Elasticsearch documentation. @@ -267,16 +247,6 @@ public virtual Task ClearScrollAsync(Action(descriptor, cancellationToken); } - /// - /// Close a point in time - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Close a point in time /// Learn more about this API in the Elasticsearch documentation. @@ -320,16 +290,6 @@ public virtual Task ClosePointInTimeAsync(Action(descriptor, cancellationToken); } - /// - /// Returns number of documents matching a query. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual CountResponse Count(CountRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns number of documents matching a query. /// Learn more about this API in the Elasticsearch documentation. @@ -452,17 +412,6 @@ public virtual Task CountAsync(Action con return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Creates a new document in the index. - /// Returns a 409 response when a document with a same ID already exists in the index. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual CreateResponse Create(CreateRequest request) - { - request.BeforeRequest(); - return DoRequest, CreateResponse, CreateRequestParameters>(request); - } - /// /// Creates a new document in the index. /// Returns a 409 response when a document with a same ID already exists in the index. @@ -585,16 +534,6 @@ public virtual Task CreateAsync(TDocument document, E return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor, cancellationToken); } - /// - /// Removes a document from the index. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteResponse Delete(DeleteRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Removes a document from the index. /// Learn more about this API in the Elasticsearch documentation. @@ -671,16 +610,6 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Se return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Deletes documents matching the provided query. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteByQueryResponse DeleteByQuery(DeleteByQueryRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes documents matching the provided query. /// Learn more about this API in the Elasticsearch documentation. @@ -757,16 +686,6 @@ public virtual Task DeleteByQueryAsync(Elastic.Clients.El return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Changes the number of requests per second for a particular Delete By Query operation. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(DeleteByQueryRethrottleRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Changes the number of requests per second for a particular Delete By Query operation. /// Learn more about this API in the Elasticsearch documentation. @@ -810,16 +729,6 @@ public virtual Task DeleteByQueryRethrottleAsyn return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Deletes a script. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual DeleteScriptResponse DeleteScript(DeleteScriptRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Deletes a script. /// Learn more about this API in the Elasticsearch documentation. @@ -896,16 +805,6 @@ public virtual Task DeleteScriptAsync(Elastic.Clients.Elas return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Returns information about whether a document exists in an index. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ExistsResponse Exists(ExistsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns information about whether a document exists in an index. /// Learn more about this API in the Elasticsearch documentation. @@ -982,16 +881,6 @@ public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Se return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Returns information about whether a document source exists in an index. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ExistsSourceResponse ExistsSource(ExistsSourceRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns information about whether a document source exists in an index. /// Learn more about this API in the Elasticsearch documentation. @@ -1068,16 +957,6 @@ public virtual Task ExistsSourceAsync(Elastic.Clients.Elas return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Returns information about why a specific matches (or doesn't match) a query. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ExplainResponse Explain(ExplainRequest request) - { - request.BeforeRequest(); - return DoRequest, ExplainRequestParameters>(request); - } - /// /// Returns information about why a specific matches (or doesn't match) a query. /// Learn more about this API in the Elasticsearch documentation. @@ -1121,16 +1000,6 @@ public virtual Task> ExplainAsync(Elastic. return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor, cancellationToken); } - /// - /// Returns the information about the capabilities of fields among multiple indices. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual FieldCapsResponse FieldCaps(FieldCapsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns the information about the capabilities of fields among multiple indices. /// Learn more about this API in the Elasticsearch documentation. @@ -1253,16 +1122,6 @@ public virtual Task FieldCapsAsync(Action(descriptor, cancellationToken); } - /// - /// Returns a document. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetResponse Get(GetRequest request) - { - request.BeforeRequest(); - return DoRequest, GetRequestParameters>(request); - } - /// /// Returns a document. /// Learn more about this API in the Elasticsearch documentation. @@ -1306,16 +1165,6 @@ public virtual Task> GetAsync(Elastic.Clients. return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor, cancellationToken); } - /// - /// Returns a script. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetScriptResponse GetScript(GetScriptRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns a script. /// Learn more about this API in the Elasticsearch documentation. @@ -1392,16 +1241,6 @@ public virtual Task GetScriptAsync(Elastic.Clients.Elasticsea return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Returns the source of a document. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual GetSourceResponse GetSource(GetSourceRequest request) - { - request.BeforeRequest(); - return DoRequest, GetSourceRequestParameters>(request); - } - /// /// Returns the source of a document. /// Learn more about this API in the Elasticsearch documentation. @@ -1445,16 +1284,6 @@ public virtual Task> GetSourceAsync(Elas return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor, cancellationToken); } - /// - /// Returns the health of the cluster. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual HealthReportResponse HealthReport(HealthReportRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns the health of the cluster. /// Learn more about this API in the Elasticsearch documentation. @@ -1521,16 +1350,6 @@ public virtual Task HealthReportAsync(Action(descriptor, cancellationToken); } - /// - /// Creates or updates a document in an index. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual IndexResponse Index(IndexRequest request) - { - request.BeforeRequest(); - return DoRequest, IndexResponse, IndexRequestParameters>(request); - } - /// /// Creates or updates a document in an index. /// Learn more about this API in the Elasticsearch documentation. @@ -1643,16 +1462,6 @@ public virtual Task IndexAsync(TDocument document, Ela return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor, cancellationToken); } - /// - /// Returns basic information about the cluster. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual InfoResponse Info(InfoRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns basic information about the cluster. /// Learn more about this API in the Elasticsearch documentation. @@ -1696,16 +1505,6 @@ public virtual Task InfoAsync(Action config return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Returns multiple termvectors in one request. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual MultiTermVectorsResponse Mtermvectors(MultiTermVectorsRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns multiple termvectors in one request. /// Learn more about this API in the Elasticsearch documentation. @@ -1828,16 +1627,6 @@ public virtual Task MtermvectorsAsync(Action(descriptor, cancellationToken); } - /// - /// Allows to get multiple documents in one request. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual MultiGetResponse MultiGet(MultiGetRequest request) - { - request.BeforeRequest(); - return DoRequest, MultiGetRequestParameters>(request); - } - /// /// Allows to get multiple documents in one request. /// Learn more about this API in the Elasticsearch documentation. @@ -1904,16 +1693,6 @@ public virtual Task> MultiGetAsync(Action return DoRequestAsync, MultiGetResponse, MultiGetRequestParameters>(descriptor, cancellationToken); } - /// - /// Allows to execute several search operations in one request. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual MultiSearchResponse MultiSearch(MultiSearchRequest request) - { - request.BeforeRequest(); - return DoRequest, MultiSearchRequestParameters>(request); - } - /// /// Allows to execute several search operations in one request. /// Learn more about this API in the Elasticsearch documentation. @@ -1980,16 +1759,6 @@ public virtual Task> MultiSearchAsync( return DoRequestAsync, MultiSearchRequestParameters>(descriptor, cancellationToken); } - /// - /// Allows to execute several search template operations in one request. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual MultiSearchTemplateResponse MultiSearchTemplate(MultiSearchTemplateRequest request) - { - request.BeforeRequest(); - return DoRequest, MultiSearchTemplateRequestParameters>(request); - } - /// /// Allows to execute several search template operations in one request. /// Learn more about this API in the Elasticsearch documentation. @@ -2056,16 +1825,6 @@ public virtual Task> MultiSearchTemplateA return DoRequestAsync, MultiSearchTemplateRequestParameters>(descriptor, cancellationToken); } - /// - /// Open a point in time that can be used in subsequent searches - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Open a point in time that can be used in subsequent searches /// Learn more about this API in the Elasticsearch documentation. @@ -2142,16 +1901,6 @@ public virtual Task OpenPointInTimeAsync(Elastic.Client return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Returns whether the cluster is running. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual PingResponse Ping(PingRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Returns whether the cluster is running. /// Learn more about this API in the Elasticsearch documentation. @@ -2195,16 +1944,6 @@ public virtual Task PingAsync(Action config return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Creates or updates a script. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual PutScriptResponse PutScript(PutScriptRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Creates or updates a script. /// Learn more about this API in the Elasticsearch documentation. @@ -2327,16 +2066,6 @@ public virtual Task PutScriptAsync(Elastic.Clients.Elasticsea return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Allows to evaluate the quality of ranked search results over a set of typical search queries - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual RankEvalResponse RankEval(RankEvalRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Allows to evaluate the quality of ranked search results over a set of typical search queries /// Learn more about this API in the Elasticsearch documentation. @@ -2459,16 +2188,6 @@ public virtual Task RankEvalAsync(Action(descriptor, cancellationToken); } - /// - /// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
- /// Learn more about this API in the Elasticsearch documentation. - ///
- public virtual ReindexResponse Reindex(ReindexRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
/// Learn more about this API in the Elasticsearch documentation. @@ -2545,16 +2264,6 @@ public virtual Task ReindexAsync(Action(descriptor, cancellationToken); } - /// - /// Changes the number of requests per second for a particular Reindex operation. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ReindexRethrottleResponse ReindexRethrottle(ReindexRethrottleRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Changes the number of requests per second for a particular Reindex operation. /// Learn more about this API in the Elasticsearch documentation. @@ -2598,16 +2307,6 @@ public virtual Task ReindexRethrottleAsync(Elastic.Cl return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Allows to use the Mustache language to pre-render a search definition. - /// Learn more about this API in the Elasticsearch documentation. - /// - 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. @@ -2730,16 +2429,6 @@ public virtual Task RenderSearchTemplateAsync(Acti return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Allows to retrieve a large numbers of results from a single search request. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual ScrollResponse Scroll(ScrollRequest request) - { - request.BeforeRequest(); - return DoRequest, ScrollRequestParameters>(request); - } - /// /// Allows to retrieve a large numbers of results from a single search request. /// Learn more about this API in the Elasticsearch documentation. @@ -2750,16 +2439,6 @@ public virtual Task> ScrollAsync(ScrollRequ return DoRequestAsync, ScrollRequestParameters>(request, cancellationToken); } - /// - /// Returns results matching a query. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual SearchResponse Search(SearchRequest request) - { - request.BeforeRequest(); - return DoRequest, SearchRequestParameters>(request); - } - /// /// Returns results matching a query. /// Learn more about this API in the Elasticsearch documentation. @@ -2826,16 +2505,6 @@ public virtual Task> SearchAsync(Action, SearchResponse, SearchRequestParameters>(descriptor, cancellationToken); } - /// - /// Searches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual SearchMvtResponse SearchMvt(SearchMvtRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Searches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile. /// Learn more about this API in the Elasticsearch documentation. @@ -2912,16 +2581,6 @@ public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsea return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Allows to use the Mustache language to pre-render a search definition. - /// Learn more about this API in the Elasticsearch documentation. - /// - 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. @@ -2988,16 +2647,6 @@ public virtual Task> SearchTemplateAsync, SearchTemplateRequestParameters>(descriptor, cancellationToken); } - /// - /// 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. - /// - public virtual TermsEnumResponse TermsEnum(TermsEnumRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// 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. @@ -3074,16 +2723,6 @@ public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsea return DoRequestAsync(descriptor, 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(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. @@ -3150,16 +2789,6 @@ public virtual Task TermvectorsAsync(Elastic.Cli return DoRequestAsync, TermVectorsResponse, TermVectorsRequestParameters>(descriptor, cancellationToken); } - /// - /// Updates a document with a script or partial document. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual UpdateResponse Update(UpdateRequest request) - { - request.BeforeRequest(); - return DoRequest, UpdateResponse, UpdateRequestParameters>(request); - } - /// /// Updates a document with a script or partial document. /// Learn more about this API in the Elasticsearch documentation. @@ -3203,16 +2832,6 @@ public virtual Task TermvectorsAsync(Elastic.Cli return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); } - /// - /// Updates documents that match the specified query. If no query is specified,
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. - ///
- public virtual UpdateByQueryResponse UpdateByQuery(UpdateByQueryRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Updates documents that match the specified query. If no query is specified,
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. @@ -3289,16 +2908,6 @@ public virtual Task UpdateByQueryAsync(Elastic.Clients.El return DoRequestAsync(descriptor, cancellationToken); } - /// - /// Changes the number of requests per second for a particular Update By Query operation. - /// Learn more about this API in the Elasticsearch documentation. - /// - public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(UpdateByQueryRethrottleRequest request) - { - request.BeforeRequest(); - return DoRequest(request); - } - /// /// Changes the number of requests per second for a particular Update By Query operation. /// Learn more about this API in the Elasticsearch documentation. diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Client/IndexManyExtensions.cs b/src/Elastic.Clients.Elasticsearch.Shared/Client/IndexManyExtensions.cs index 60eda48615..d1a41d9780 100644 --- a/src/Elastic.Clients.Elasticsearch.Shared/Client/IndexManyExtensions.cs +++ b/src/Elastic.Clients.Elasticsearch.Shared/Client/IndexManyExtensions.cs @@ -2,6 +2,7 @@ // 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. +using System; using System.Collections.Generic; using System.Linq; using System.Threading; @@ -23,6 +24,8 @@ namespace Elastic.Clients.Elasticsearch; /// public static class IndexManyExtensions { +#if !ELASTICSEARCH_SERVERLESS + /// /// Shortcut into the Bulk call that indexes the specified objects ///   @@ -32,6 +35,7 @@ public static class IndexManyExtensions /// The type used to infer the default index and typename /// List of objects to index, Id will be inferred (Id property or IdProperty attribute on type) /// Override the inferred typename for T + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public static BulkResponse IndexMany(this ElasticsearchClient client, IEnumerable @objects) where T : class { @@ -49,6 +53,7 @@ public static BulkResponse IndexMany(this ElasticsearchClient client, IEnumer /// List of objects to index, Id will be inferred (Id property or IdProperty attribute on type) /// Override the inferred indexname for T /// Override the inferred typename for T + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public static BulkResponse IndexMany(this ElasticsearchClient client, IEnumerable @objects, IndexName index) where T : class { @@ -56,6 +61,8 @@ public static BulkResponse IndexMany(this ElasticsearchClient client, IEnumer return client.Bulk(bulkRequest); } +#endif + /// /// Shortcut into the Bulk call that indexes the specified objects ///   diff --git a/src/Elastic.Clients.Elasticsearch.Shared/Helpers/BulkAllObservable.cs b/src/Elastic.Clients.Elasticsearch.Shared/Helpers/BulkAllObservable.cs index 5718539fe1..e452e3465f 100644 --- a/src/Elastic.Clients.Elasticsearch.Shared/Helpers/BulkAllObservable.cs +++ b/src/Elastic.Clients.Elasticsearch.Shared/Helpers/BulkAllObservable.cs @@ -108,7 +108,9 @@ private void RefreshOnCompleted() if (rc is not null) request.RequestConfiguration = new RequestConfiguration { RequestMetaData = rc }; - var refresh = _client.Indices.Refresh(request); +#pragma warning disable VSTHRD002 // Avoid problematic synchronous waits + var refresh = _client.Indices.RefreshAsync(request).Result; +#pragma warning restore VSTHRD002 // Avoid problematic synchronous waits if (!refresh.IsValidResponse) throw Throw($"Refreshing after all documents have indexed failed", refresh); 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 3296909cdd..c594a43822 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs @@ -41,6 +41,7 @@ internal AsyncSearchNamespacedClient(ElasticsearchClient client) : base(client) /// 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. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncSearchResponse Delete(DeleteAsyncSearchRequest request) { request.BeforeRequest(); @@ -199,6 +200,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast /// Retrieves the results of a previously submitted async search request given its ID. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncSearchResponse Get(GetAsyncSearchRequest request) { request.BeforeRequest(); @@ -288,6 +290,7 @@ public virtual Task> GetAsync(Elast /// Retrieves the status of a previously submitted async search request given its ID. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AsyncSearchStatusResponse Status(AsyncSearchStatusRequest request) { request.BeforeRequest(); @@ -446,6 +449,7 @@ public virtual Task StatusAsync(Elastic.Clients.Elast /// Executes a search request asynchronously. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SubmitAsyncSearchResponse Submit(SubmitAsyncSearchRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ccr.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ccr.g.cs index 6494875f17..1dea2286e9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ccr.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ccr.g.cs @@ -41,6 +41,7 @@ internal CrossClusterReplicationNamespacedClient(ElasticsearchClient client) : b /// Deletes auto-follow patterns. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAutoFollowPatternResponse DeleteAutoFollowPattern(DeleteAutoFollowPatternRequest request) { request.BeforeRequest(); @@ -130,6 +131,7 @@ public virtual Task DeleteAutoFollowPatternAsyn /// Creates a new follower index configured to follow the referenced leader index. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowResponse Follow(FollowRequest request) { request.BeforeRequest(); @@ -288,6 +290,7 @@ public virtual Task FollowAsync(Elastic.Clients.Elasticsearch.In /// Retrieves information about all follower indices, including parameters and status for each follower index /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowInfoResponse FollowInfo(FollowInfoRequest request) { request.BeforeRequest(); @@ -446,6 +449,7 @@ public virtual Task FollowInfoAsync(Elastic.Clients.Elastics /// Retrieves follower stats. return shard-level stats about the following tasks associated with each shard for the specified indices. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FollowStatsResponse FollowStats(FollowStatsRequest request) { request.BeforeRequest(); @@ -604,6 +608,7 @@ public virtual Task FollowStatsAsync(Elastic.Clients.Elasti /// Removes the follower retention leases from the leader. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForgetFollowerResponse ForgetFollower(ForgetFollowerRequest request) { request.BeforeRequest(); @@ -762,6 +767,7 @@ public virtual Task ForgetFollowerAsync(Elastic.Clients. /// Gets configured auto-follow patterns. Returns the specified auto-follow pattern collection. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAutoFollowPatternResponse GetAutoFollowPattern(GetAutoFollowPatternRequest request) { request.BeforeRequest(); @@ -899,6 +905,7 @@ public virtual Task GetAutoFollowPatternAsync(Acti /// Pauses an auto-follow pattern /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseAutoFollowPatternResponse PauseAutoFollowPattern(PauseAutoFollowPatternRequest request) { request.BeforeRequest(); @@ -988,6 +995,7 @@ public virtual Task PauseAutoFollowPatternAsync( /// Pauses a follower index. The follower index will not fetch any additional operations from the leader index. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PauseFollowResponse PauseFollow(PauseFollowRequest request) { request.BeforeRequest(); @@ -1146,6 +1154,7 @@ public virtual Task PauseFollowAsync(Elastic.Clients.Elasti /// Creates a new named collection of auto-follow patterns against a specified remote cluster. Newly created indices on the remote cluster matching any of the specified patterns will be automatically configured as follower indices. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutAutoFollowPatternResponse PutAutoFollowPattern(PutAutoFollowPatternRequest request) { request.BeforeRequest(); @@ -1235,6 +1244,7 @@ public virtual Task PutAutoFollowPatternAsync(Elas /// Resumes an auto-follow pattern that has been paused /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeAutoFollowPatternResponse ResumeAutoFollowPattern(ResumeAutoFollowPatternRequest request) { request.BeforeRequest(); @@ -1324,6 +1334,7 @@ public virtual Task ResumeAutoFollowPatternAsyn /// Resumes a follower index that has been paused /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResumeFollowResponse ResumeFollow(ResumeFollowRequest request) { request.BeforeRequest(); @@ -1482,6 +1493,7 @@ public virtual Task ResumeFollowAsync(Elastic.Clients.Elas /// Gets all stats related to cross-cluster replication. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CcrStatsResponse Stats(CcrStatsRequest request) { request.BeforeRequest(); @@ -1571,6 +1583,7 @@ public virtual Task StatsAsync(ActionStops the following task associated with a follower index and removes index metadata and settings associated with cross-cluster replication. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UnfollowResponse Unfollow(UnfollowRequest request) { request.BeforeRequest(); 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 bf6ab6d7a7..d79f5e0309 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs @@ -41,6 +41,7 @@ internal ClusterNamespacedClient(ElasticsearchClient client) : base(client) /// Provides explanations for shard allocations in the cluster. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AllocationExplainResponse AllocationExplain(AllocationExplainRequest request) { request.BeforeRequest(); @@ -130,6 +131,7 @@ public virtual Task AllocationExplainAsync(ActionDeletes a component template /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteComponentTemplateResponse DeleteComponentTemplate(DeleteComponentTemplateRequest request) { request.BeforeRequest(); @@ -219,6 +221,7 @@ public virtual Task DeleteComponentTemplateAsyn /// Clears cluster voting config exclusions. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteVotingConfigExclusionsResponse DeleteVotingConfigExclusions(DeleteVotingConfigExclusionsRequest request) { request.BeforeRequest(); @@ -308,6 +311,7 @@ public virtual Task DeleteVotingConfigExcl /// Returns information about whether a particular component template exist /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsComponentTemplateResponse ExistsComponentTemplate(ExistsComponentTemplateRequest request) { request.BeforeRequest(); @@ -397,6 +401,7 @@ public virtual Task ExistsComponentTemplateAsyn /// Returns one or more component templates /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetComponentTemplateResponse GetComponentTemplate(GetComponentTemplateRequest request) { request.BeforeRequest(); @@ -534,6 +539,7 @@ public virtual Task GetComponentTemplateAsync(Acti /// Returns cluster settings. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetClusterSettingsResponse GetSettings(GetClusterSettingsRequest request) { request.BeforeRequest(); @@ -623,6 +629,7 @@ public virtual Task GetSettingsAsync(ActionReturns basic information about the health of the cluster. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthResponse Health(HealthRequest request) { request.BeforeRequest(); @@ -877,6 +884,7 @@ public virtual Task HealthAsync(Action /// Returns different information about the cluster. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterInfoResponse Info(ClusterInfoRequest request) { request.BeforeRequest(); @@ -966,6 +974,7 @@ public virtual Task InfoAsync(IReadOnlyCollectionReturns 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. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PendingTasksResponse PendingTasks(PendingTasksRequest request) { request.BeforeRequest(); @@ -1055,6 +1064,7 @@ public virtual Task PendingTasksAsync(ActionUpdates the cluster voting config exclusions by node ids or node names. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostVotingConfigExclusionsResponse PostVotingConfigExclusions(PostVotingConfigExclusionsRequest request) { request.BeforeRequest(); @@ -1144,6 +1154,7 @@ public virtual Task PostVotingConfigExclusio /// Creates or updates a component template /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutComponentTemplateResponse PutComponentTemplate(PutComponentTemplateRequest request) { request.BeforeRequest(); @@ -1302,6 +1313,7 @@ public virtual Task PutComponentTemplateAsync(Elas /// Returns high-level overview of cluster statistics. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClusterStatsResponse Stats(ClusterStatsRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.DanglingIndices.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.DanglingIndices.g.cs index 06271e1712..d9cb203295 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.DanglingIndices.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.DanglingIndices.g.cs @@ -41,6 +41,7 @@ internal DanglingIndicesNamespacedClient(ElasticsearchClient client) : base(clie /// Returns all dangling indices. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListDanglingIndicesResponse ListDanglingIndices(ListDanglingIndicesRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Enrich.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Enrich.g.cs index ac99637dcf..677411d9e3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Enrich.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Enrich.g.cs @@ -41,6 +41,7 @@ internal EnrichNamespacedClient(ElasticsearchClient client) : base(client) /// Deletes an existing enrich policy and its enrich index. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeletePolicyResponse DeletePolicy(DeletePolicyRequest request) { request.BeforeRequest(); @@ -130,6 +131,7 @@ public virtual Task DeletePolicyAsync(Elastic.Clients.Elas /// Creates the enrich index for an existing enrich policy. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequest request) { request.BeforeRequest(); @@ -219,6 +221,7 @@ public virtual Task ExecutePolicyAsync(Elastic.Clients.El /// Gets information about an enrich policy. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPolicyResponse GetPolicy(GetPolicyRequest request) { request.BeforeRequest(); @@ -356,6 +359,7 @@ public virtual Task GetPolicyAsync(ActionCreates a new enrich policy. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPolicyResponse PutPolicy(PutPolicyRequest request) { request.BeforeRequest(); @@ -514,6 +518,7 @@ public virtual Task PutPolicyAsync(Elastic.Clients.Elasticsea /// Gets enrich coordinator statistics and information about enrich policies that are currently executing. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EnrichStatsResponse Stats(EnrichStatsRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Eql.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Eql.g.cs index d57e164703..afeade5fb2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Eql.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Eql.g.cs @@ -41,6 +41,7 @@ internal EqlNamespacedClient(ElasticsearchClient client) : base(client) /// Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlDeleteResponse Delete(EqlDeleteRequest request) { request.BeforeRequest(); @@ -199,6 +200,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch /// Returns async results from previously executed Event Query Language (EQL) search /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlGetResponse Get(EqlGetRequest request) { request.BeforeRequest(); @@ -288,6 +290,7 @@ public virtual Task> GetAsync(Elastic.Clients.Ela /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequest request) { request.BeforeRequest(); @@ -446,6 +449,7 @@ public virtual Task GetStatusAsync(Elastic.Clients.Elastic /// Returns results matching a query expressed in Event Query Language (EQL) /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EqlSearchResponse Search(EqlSearchRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Esql.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Esql.g.cs index 87ec76335b..fcc237c029 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Esql.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Esql.g.cs @@ -41,6 +41,7 @@ internal EsqlNamespacedClient(ElasticsearchClient client) : base(client) /// Executes an ESQL request /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EsqlQueryResponse Query(EsqlQueryRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Features.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Features.g.cs index 331f012c9f..63e5b5b23e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Features.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Features.g.cs @@ -41,6 +41,7 @@ internal FeaturesNamespacedClient(ElasticsearchClient client) : base(client) /// Gets a list of features which can be included in snapshots using the feature_states field when creating a snapshot /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFeaturesResponse GetFeatures(GetFeaturesRequest request) { request.BeforeRequest(); @@ -130,6 +131,7 @@ public virtual Task GetFeaturesAsync(ActionResets the internal state of features, usually by deleting system indices /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResetFeaturesResponse ResetFeatures(ResetFeaturesRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs index 37ce0243a8..2f2140da0a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Graph.g.cs @@ -41,6 +41,7 @@ internal GraphNamespacedClient(ElasticsearchClient client) : base(client) /// Explore extracted and summarized information about the documents and terms in an index. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExploreResponse Explore(ExploreRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ilm.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ilm.g.cs index b4174c1b21..27004d8a75 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ilm.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ilm.g.cs @@ -41,6 +41,7 @@ internal IndexLifecycleManagementNamespacedClient(ElasticsearchClient client) : /// Deletes the specified lifecycle policy definition. A currently used policy cannot be deleted. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteLifecycleResponse DeleteLifecycle(DeleteLifecycleRequest request) { request.BeforeRequest(); @@ -130,6 +131,7 @@ public virtual Task DeleteLifecycleAsync(Elastic.Client /// Returns the specified policy definition. Includes the policy version and last modified date. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetLifecycleResponse GetLifecycle(GetLifecycleRequest request) { request.BeforeRequest(); @@ -267,6 +269,7 @@ public virtual Task GetLifecycleAsync(ActionRetrieves the current index lifecycle management (ILM) status. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIlmStatusResponse GetStatus(GetIlmStatusRequest request) { request.BeforeRequest(); @@ -356,6 +359,7 @@ public virtual Task GetStatusAsync(ActionMigrates the indices and ILM policies away from custom node attribute allocation routing to data tiers routing /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MigrateToDataTiersResponse MigrateToDataTiers(MigrateToDataTiersRequest request) { request.BeforeRequest(); @@ -445,6 +449,7 @@ public virtual Task MigrateToDataTiersAsync(ActionManually moves an index into the specified step and executes that step. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MoveToStepResponse MoveToStep(MoveToStepRequest request) { request.BeforeRequest(); @@ -603,6 +608,7 @@ public virtual Task MoveToStepAsync(Elastic.Clients.Elastics /// Creates a lifecycle policy /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutLifecycleResponse PutLifecycle(PutLifecycleRequest request) { request.BeforeRequest(); @@ -692,6 +698,7 @@ public virtual Task PutLifecycleAsync(Elastic.Clients.Elas /// Removes the assigned lifecycle policy and stops managing the specified index /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RemovePolicyResponse RemovePolicy(RemovePolicyRequest request) { request.BeforeRequest(); @@ -850,6 +857,7 @@ public virtual Task RemovePolicyAsync(Elastic.Clients.Elas /// Retries executing the policy for an index that is in the ERROR step. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RetryResponse Retry(RetryRequest request) { request.BeforeRequest(); @@ -1008,6 +1016,7 @@ public virtual Task RetryAsync(Elastic.Clients.Elasticsearch.Inde /// Start the index lifecycle management (ILM) plugin. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartIlmResponse Start(StartIlmRequest request) { request.BeforeRequest(); @@ -1097,6 +1106,7 @@ public virtual Task StartAsync(ActionHalts all lifecycle management operations and stops the index lifecycle management (ILM) plugin /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopIlmResponse Stop(StopIlmRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs index 575559b42d..e170a03cee 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs @@ -41,6 +41,7 @@ internal IndicesNamespacedClient(ElasticsearchClient client) : base(client) /// Performs the analysis process on a text and return the tokens breakdown of the text. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual AnalyzeIndexResponse Analyze(AnalyzeIndexRequest request) { request.BeforeRequest(); @@ -295,6 +296,7 @@ public virtual Task AnalyzeAsync(ActionClears all or specific caches for one or more indices. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(ClearCacheRequest request) { request.BeforeRequest(); @@ -549,6 +551,7 @@ public virtual Task ClearCacheAsync(ActionClones an index /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloneIndexResponse Clone(CloneIndexRequest request) { request.BeforeRequest(); @@ -707,6 +710,7 @@ public virtual Task CloneAsync(Elastic.Clients.Elasticsearch /// Closes an index. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseIndexResponse Close(CloseIndexRequest request) { request.BeforeRequest(); @@ -865,6 +869,7 @@ public virtual Task CloseAsync(Elastic.Clients.Elasticsearch /// Creates an index with optional settings and mappings. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateIndexResponse Create(CreateIndexRequest request) { request.BeforeRequest(); @@ -1023,6 +1028,7 @@ public virtual Task CreateAsync(Elastic.Clients.Elasticsear /// Creates a data stream /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateDataStreamResponse CreateDataStream(CreateDataStreamRequest request) { request.BeforeRequest(); @@ -1112,6 +1118,7 @@ public virtual Task CreateDataStreamAsync(Elastic.Clie /// Provides statistics on operations happening in a data stream. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DataStreamsStatsResponse DataStreamsStats(DataStreamsStatsRequest request) { request.BeforeRequest(); @@ -1249,6 +1256,7 @@ public virtual Task DataStreamsStatsAsync(ActionDeletes an index. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIndexResponse Delete(DeleteIndexRequest request) { request.BeforeRequest(); @@ -1407,6 +1415,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsear /// Deletes an alias. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAliasResponse DeleteAlias(DeleteAliasRequest request) { request.BeforeRequest(); @@ -1565,6 +1574,7 @@ public virtual Task DeleteAliasAsync(Elastic.Clients.Elasti /// Deletes the data stream lifecycle of the selected data streams. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataLifecycleResponse DeleteDataLifecycle(DeleteDataLifecycleRequest request) { request.BeforeRequest(); @@ -1654,6 +1664,7 @@ public virtual Task DeleteDataLifecycleAsync(Elasti /// Deletes a data stream. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataStreamResponse DeleteDataStream(DeleteDataStreamRequest request) { request.BeforeRequest(); @@ -1743,6 +1754,7 @@ public virtual Task DeleteDataStreamAsync(Elastic.Clie /// Deletes an index template. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteIndexTemplateResponse DeleteIndexTemplate(DeleteIndexTemplateRequest request) { request.BeforeRequest(); @@ -1832,6 +1844,7 @@ public virtual Task DeleteIndexTemplateAsync(Elasti /// Deletes an index template. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteTemplateResponse DeleteTemplate(DeleteTemplateRequest request) { request.BeforeRequest(); @@ -1921,6 +1934,7 @@ public virtual Task DeleteTemplateAsync(Elastic.Clients. /// Analyzes the disk usage of each field of an index or data stream /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DiskUsageResponse DiskUsage(DiskUsageRequest request) { request.BeforeRequest(); @@ -2079,6 +2093,7 @@ public virtual Task DiskUsageAsync(Elastic.Clients.Elasticsea /// Downsample an index /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DownsampleResponse Downsample(DownsampleRequest request) { request.BeforeRequest(); @@ -2237,6 +2252,7 @@ public virtual Task DownsampleAsync(Elastic.Clients.Elastics /// Returns information about whether a particular index exists. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(ExistsRequest request) { request.BeforeRequest(); @@ -2395,6 +2411,7 @@ public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.In /// Returns information about whether a particular alias exists. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsAliasResponse ExistsAlias(ExistsAliasRequest request) { request.BeforeRequest(); @@ -2649,6 +2666,7 @@ public virtual Task ExistsAliasAsync(Elastic.Clients.Elasti /// Returns information about whether a particular index template exists. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsIndexTemplateResponse ExistsIndexTemplate(ExistsIndexTemplateRequest request) { request.BeforeRequest(); @@ -2738,6 +2756,7 @@ public virtual Task ExistsIndexTemplateAsync(Elasti /// Returns information about whether a particular index template exists. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsTemplateResponse ExistsTemplate(ExistsTemplateRequest request) { request.BeforeRequest(); @@ -2827,6 +2846,7 @@ public virtual Task ExistsTemplateAsync(Elastic.Clients. /// Retrieves information about the index's current data stream lifecycle, such as any potential encountered error, time since creation etc. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainDataLifecycleResponse ExplainDataLifecycle(ExplainDataLifecycleRequest request) { request.BeforeRequest(); @@ -2985,6 +3005,7 @@ public virtual Task ExplainDataLifecycleAsync(Elas /// Returns the field usage stats for each field of an index /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldUsageStatsResponse FieldUsageStats(FieldUsageStatsRequest request) { request.BeforeRequest(); @@ -3143,6 +3164,7 @@ public virtual Task FieldUsageStatsAsync(Elastic.Client /// Performs the flush operation on one or more indices. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushResponse Flush(FlushRequest request) { request.BeforeRequest(); @@ -3397,6 +3419,7 @@ public virtual Task FlushAsync(Action con /// Performs the force merge operation on one or more indices. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForcemergeResponse Forcemerge(ForcemergeRequest request) { request.BeforeRequest(); @@ -3651,6 +3674,7 @@ public virtual Task ForcemergeAsync(ActionReturns information about one or more indices. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexResponse Get(GetIndexRequest request) { request.BeforeRequest(); @@ -3809,6 +3833,7 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Ind /// Returns an alias. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAliasResponse GetAlias(GetAliasRequest request) { request.BeforeRequest(); @@ -4063,6 +4088,7 @@ public virtual Task GetAliasAsync(ActionReturns the data stream lifecycle of the selected data streams. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataLifecycleResponse GetDataLifecycle(GetDataLifecycleRequest request) { request.BeforeRequest(); @@ -4152,6 +4178,7 @@ public virtual Task GetDataLifecycleAsync(Elastic.Clie /// Returns data streams. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataStreamResponse GetDataStream(GetDataStreamRequest request) { request.BeforeRequest(); @@ -4289,6 +4316,7 @@ public virtual Task GetDataStreamAsync(ActionReturns mapping for one or more fields. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFieldMappingResponse GetFieldMapping(GetFieldMappingRequest request) { request.BeforeRequest(); @@ -4543,6 +4571,7 @@ public virtual Task GetFieldMappingAsync(Elastic.Client /// Returns an index template. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndexTemplateResponse GetIndexTemplate(GetIndexTemplateRequest request) { request.BeforeRequest(); @@ -4680,6 +4709,7 @@ public virtual Task GetIndexTemplateAsync(ActionReturns mappings for one or more indices. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMappingResponse GetMapping(GetMappingRequest request) { request.BeforeRequest(); @@ -4934,6 +4964,7 @@ public virtual Task GetMappingAsync(ActionReturns settings for one or more indices. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetIndicesSettingsResponse GetSettings(GetIndicesSettingsRequest request) { request.BeforeRequest(); @@ -5188,6 +5219,7 @@ public virtual Task GetSettingsAsync(ActionReturns an index template. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTemplateResponse GetTemplate(GetTemplateRequest request) { request.BeforeRequest(); @@ -5325,6 +5357,7 @@ public virtual Task GetTemplateAsync(ActionMigrates an alias to a data stream /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MigrateToDataStreamResponse MigrateToDataStream(MigrateToDataStreamRequest request) { request.BeforeRequest(); @@ -5414,6 +5447,7 @@ public virtual Task MigrateToDataStreamAsync(Elasti /// Modifies a data stream /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ModifyDataStreamResponse ModifyDataStream(ModifyDataStreamRequest request) { request.BeforeRequest(); @@ -5503,6 +5537,7 @@ public virtual Task ModifyDataStreamAsync(ActionOpens an index. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenIndexResponse Open(OpenIndexRequest request) { request.BeforeRequest(); @@ -5661,6 +5696,7 @@ public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.I /// Promotes a data stream from a replicated data stream managed by CCR to a regular data stream /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PromoteDataStreamResponse PromoteDataStream(PromoteDataStreamRequest request) { request.BeforeRequest(); @@ -5750,6 +5786,7 @@ public virtual Task PromoteDataStreamAsync(Elastic.Cl /// Creates or updates an alias. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutAliasResponse PutAlias(PutAliasRequest request) { request.BeforeRequest(); @@ -5908,6 +5945,7 @@ public virtual Task PutAliasAsync(Elastic.Clients.Elasticsearc /// Updates the data stream lifecycle of the selected data streams. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDataLifecycleResponse PutDataLifecycle(PutDataLifecycleRequest request) { request.BeforeRequest(); @@ -5997,6 +6035,7 @@ public virtual Task PutDataLifecycleAsync(Elastic.Clie /// Creates or updates an index template. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndexTemplateResponse PutIndexTemplate(PutIndexTemplateRequest request) { request.BeforeRequest(); @@ -6155,6 +6194,7 @@ public virtual Task PutIndexTemplateAsync(Elastic.Clie /// Updates the index mappings. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutMappingResponse PutMapping(PutMappingRequest request) { request.BeforeRequest(); @@ -6313,6 +6353,7 @@ public virtual Task PutMappingAsync(Elastic.Clients.Elastics /// Updates the index settings. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutIndicesSettingsResponse PutSettings(PutIndicesSettingsRequest request) { request.BeforeRequest(); @@ -6567,6 +6608,7 @@ public virtual Task PutSettingsAsync(Elastic.Clients /// Creates or updates an index template. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTemplateResponse PutTemplate(PutTemplateRequest request) { request.BeforeRequest(); @@ -6725,6 +6767,7 @@ public virtual Task PutTemplateAsync(Elastic.Clients.Elasti /// Returns information about ongoing index shard recoveries. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RecoveryResponse Recovery(RecoveryRequest request) { request.BeforeRequest(); @@ -6979,6 +7022,7 @@ public virtual Task RecoveryAsync(ActionPerforms the refresh operation in one or more indices. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RefreshResponse Refresh(RefreshRequest request) { request.BeforeRequest(); @@ -7233,6 +7277,7 @@ public virtual Task RefreshAsync(ActionReloads an index's search analyzers and their resources. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReloadSearchAnalyzersResponse ReloadSearchAnalyzers(ReloadSearchAnalyzersRequest request) { request.BeforeRequest(); @@ -7391,6 +7436,7 @@ public virtual Task ReloadSearchAnalyzersAsync(El /// Resolves the specified index expressions to return information about each cluster, including the local cluster, if included. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResolveClusterResponse ResolveCluster(ResolveClusterRequest request) { request.BeforeRequest(); @@ -7480,6 +7526,7 @@ public virtual Task ResolveClusterAsync(Elastic.Clients. /// Returns information about any matching indices, aliases, and data streams /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResolveIndexResponse ResolveIndex(ResolveIndexRequest request) { request.BeforeRequest(); @@ -7569,6 +7616,7 @@ public virtual Task ResolveIndexAsync(Elastic.Clients.Elas /// Updates an alias to point to a new index when the existing index
is considered to be too large or too old.
/// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RolloverResponse Rollover(RolloverRequest request) { request.BeforeRequest(); @@ -7823,6 +7871,7 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc /// Provides low-level information about segments in a Lucene index. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SegmentsResponse Segments(SegmentsRequest request) { request.BeforeRequest(); @@ -8077,6 +8126,7 @@ public virtual Task SegmentsAsync(ActionProvides store information for shard copies of indices. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShardStoresResponse ShardStores(ShardStoresRequest request) { request.BeforeRequest(); @@ -8331,6 +8381,7 @@ public virtual Task ShardStoresAsync(ActionAllow to shrink an existing index into a new index with fewer primary shards. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ShrinkIndexResponse Shrink(ShrinkIndexRequest request) { request.BeforeRequest(); @@ -8489,6 +8540,7 @@ public virtual Task ShrinkAsync(Elastic.Clients.Elasticsear /// Simulate matching the given index name against the index templates in the system /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateIndexTemplateResponse SimulateIndexTemplate(SimulateIndexTemplateRequest request) { request.BeforeRequest(); @@ -8578,6 +8630,7 @@ public virtual Task SimulateIndexTemplateAsync(El /// Simulate resolving the given template name or body /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateTemplateResponse SimulateTemplate(SimulateTemplateRequest request) { request.BeforeRequest(); @@ -8832,6 +8885,7 @@ public virtual Task SimulateTemplateAsync(ActionAllows you to split an existing index into a new index with more primary shards. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SplitIndexResponse Split(SplitIndexRequest request) { request.BeforeRequest(); @@ -8990,6 +9044,7 @@ public virtual Task SplitAsync(Elastic.Clients.Elasticsearch /// Provides statistics on operations happening in an index. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndicesStatsResponse Stats(IndicesStatsRequest request) { request.BeforeRequest(); @@ -9244,6 +9299,7 @@ public virtual Task StatsAsync(ActionUpdates index aliases. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateAliasesResponse UpdateAliases(UpdateAliasesRequest request) { request.BeforeRequest(); @@ -9402,6 +9458,7 @@ public virtual Task UpdateAliasesAsync(ActionAllows a user to validate a potentially expensive query without executing it. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ValidateQueryResponse ValidateQuery(ValidateQueryRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs index 7aec0cdc45..c1bc7e2d02 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Inference.g.cs @@ -41,6 +41,7 @@ internal InferenceNamespacedClient(ElasticsearchClient client) : base(client) /// Delete model in the Inference API /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteModelResponse DeleteModel(DeleteModelRequest request) { request.BeforeRequest(); @@ -178,6 +179,7 @@ public virtual Task DeleteModelAsync(Elastic.Clients.Elasti /// Get a model in the Inference API /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetModelResponse GetModel(GetModelRequest request) { request.BeforeRequest(); @@ -315,6 +317,7 @@ public virtual Task GetModelAsync(Elastic.Clients.Elasticsearc /// Perform inference on a model /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InferenceResponse Inference(InferenceRequest request) { request.BeforeRequest(); @@ -452,6 +455,7 @@ public virtual Task InferenceAsync(Elastic.Clients.Elasticsea /// Configure a model for use in the Inference API /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutModelResponse PutModel(PutModelRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs index 3a132684eb..f577aaea5f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs @@ -41,6 +41,7 @@ internal IngestNamespacedClient(ElasticsearchClient client) : base(client) /// Deletes a pipeline. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeletePipelineResponse DeletePipeline(DeletePipelineRequest request) { request.BeforeRequest(); @@ -199,6 +200,7 @@ public virtual Task DeletePipelineAsync(Elastic.Clients. /// Returns statistical information about geoip databases /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GeoIpStatsResponse GeoIpStats(GeoIpStatsRequest request) { request.BeforeRequest(); @@ -288,6 +290,7 @@ public virtual Task GeoIpStatsAsync(ActionReturns a pipeline. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetPipelineResponse GetPipeline(GetPipelineRequest request) { request.BeforeRequest(); @@ -542,6 +545,7 @@ public virtual Task GetPipelineAsync(ActionReturns a list of the built-in patterns. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ProcessorGrokResponse ProcessorGrok(ProcessorGrokRequest request) { request.BeforeRequest(); @@ -631,6 +635,7 @@ public virtual Task ProcessorGrokAsync(ActionCreates or updates a pipeline. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutPipelineResponse PutPipeline(PutPipelineRequest request) { request.BeforeRequest(); @@ -789,6 +794,7 @@ public virtual Task PutPipelineAsync(Elastic.Clients.Elasti /// Allows to simulate a pipeline with example documents. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SimulateResponse Simulate(SimulateRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.License.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.License.g.cs index 447134a9fb..75857b11c0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.License.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.License.g.cs @@ -41,6 +41,7 @@ internal LicenseManagementNamespacedClient(ElasticsearchClient client) : base(cl /// Deletes licensing information for the cluster /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteLicenseResponse Delete(DeleteLicenseRequest request) { request.BeforeRequest(); @@ -130,6 +131,7 @@ public virtual Task DeleteAsync(ActionRetrieves licensing information for the cluster /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetLicenseResponse Get(GetLicenseRequest request) { request.BeforeRequest(); @@ -219,6 +221,7 @@ public virtual Task GetAsync(ActionRetrieves information about the status of the basic license. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBasicStatusResponse GetBasicStatus(GetBasicStatusRequest request) { request.BeforeRequest(); @@ -308,6 +311,7 @@ public virtual Task GetBasicStatusAsync(ActionRetrieves information about the status of the trial license. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTrialStatusResponse GetTrialStatus(GetTrialStatusRequest request) { request.BeforeRequest(); @@ -397,6 +401,7 @@ public virtual Task GetTrialStatusAsync(ActionUpdates the license for the cluster. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostResponse Post(PostRequest request) { request.BeforeRequest(); @@ -486,6 +491,7 @@ public virtual Task PostAsync(Action config /// Starts an indefinite basic license. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostStartBasicResponse PostStartBasic(PostStartBasicRequest request) { request.BeforeRequest(); @@ -575,6 +581,7 @@ public virtual Task PostStartBasicAsync(Actionstarts a limited time trial license. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostStartTrialResponse PostStartTrial(PostStartTrialRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs index 4485c55df7..bd064e0c63 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ml.g.cs @@ -41,6 +41,7 @@ internal MachineLearningNamespacedClient(ElasticsearchClient client) : base(clie /// Clear the cached results from a trained model deployment /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearTrainedModelDeploymentCacheResponse ClearTrainedModelDeploymentCache(ClearTrainedModelDeploymentCacheRequest request) { request.BeforeRequest(); @@ -130,6 +131,7 @@ public virtual Task ClearTrainedModelD /// Closes one or more anomaly detection jobs. A job can be opened and closed multiple times throughout its lifecycle. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloseJobResponse CloseJob(CloseJobRequest request) { request.BeforeRequest(); @@ -219,6 +221,7 @@ public virtual Task CloseJobAsync(Elastic.Clients.Elasticsearc /// Deletes a calendar. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarResponse DeleteCalendar(DeleteCalendarRequest request) { request.BeforeRequest(); @@ -308,6 +311,7 @@ public virtual Task DeleteCalendarAsync(Elastic.Clients. /// Deletes scheduled events from a calendar. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarEventResponse DeleteCalendarEvent(DeleteCalendarEventRequest request) { request.BeforeRequest(); @@ -397,6 +401,7 @@ public virtual Task DeleteCalendarEventAsync(Elasti /// Deletes anomaly detection jobs from a calendar. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteCalendarJobResponse DeleteCalendarJob(DeleteCalendarJobRequest request) { request.BeforeRequest(); @@ -486,6 +491,7 @@ public virtual Task DeleteCalendarJobAsync(Elastic.Cl /// Deletes an existing datafeed. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDatafeedResponse DeleteDatafeed(DeleteDatafeedRequest request) { request.BeforeRequest(); @@ -575,6 +581,7 @@ public virtual Task DeleteDatafeedAsync(Elastic.Clients. /// Deletes an existing data frame analytics job. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteDataFrameAnalyticsResponse DeleteDataFrameAnalytics(DeleteDataFrameAnalyticsRequest request) { request.BeforeRequest(); @@ -733,6 +740,7 @@ public virtual Task DeleteDataFrameAnalyticsAs /// Deletes expired and unused machine learning data. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteExpiredDataResponse DeleteExpiredData(DeleteExpiredDataRequest request) { request.BeforeRequest(); @@ -870,6 +878,7 @@ public virtual Task DeleteExpiredDataAsync(ActionDeletes a filter. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteFilterResponse DeleteFilter(DeleteFilterRequest request) { request.BeforeRequest(); @@ -959,6 +968,7 @@ public virtual Task DeleteFilterAsync(Elastic.Clients.Elas /// Deletes forecasts from a machine learning job. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteForecastResponse DeleteForecast(DeleteForecastRequest request) { request.BeforeRequest(); @@ -1096,6 +1106,7 @@ public virtual Task DeleteForecastAsync(Elastic.Clients. /// Deletes an existing anomaly detection job. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteJobResponse DeleteJob(DeleteJobRequest request) { request.BeforeRequest(); @@ -1185,6 +1196,7 @@ public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsea /// Deletes an existing model snapshot. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteModelSnapshotResponse DeleteModelSnapshot(DeleteModelSnapshotRequest request) { request.BeforeRequest(); @@ -1274,6 +1286,7 @@ public virtual Task DeleteModelSnapshotAsync(Elasti /// Deletes an existing trained inference model that is currently not referenced by an ingest pipeline. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteTrainedModelResponse DeleteTrainedModel(DeleteTrainedModelRequest request) { request.BeforeRequest(); @@ -1363,6 +1376,7 @@ public virtual Task DeleteTrainedModelAsync(Elastic. /// Deletes a model alias that refers to the trained model /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteTrainedModelAliasResponse DeleteTrainedModelAlias(DeleteTrainedModelAliasRequest request) { request.BeforeRequest(); @@ -1452,6 +1466,7 @@ public virtual Task DeleteTrainedModelAliasAsyn /// Estimates the model memory /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EstimateModelMemoryResponse EstimateModelMemory(EstimateModelMemoryRequest request) { request.BeforeRequest(); @@ -1610,6 +1625,7 @@ public virtual Task EstimateModelMemoryAsync(Action /// Evaluates the data frame analytics for an annotated index. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual EvaluateDataFrameResponse EvaluateDataFrame(EvaluateDataFrameRequest request) { request.BeforeRequest(); @@ -1768,6 +1784,7 @@ public virtual Task EvaluateDataFrameAsync(ActionExplains a data frame analytics config. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainDataFrameAnalyticsResponse ExplainDataFrameAnalytics(ExplainDataFrameAnalyticsRequest request) { request.BeforeRequest(); @@ -2022,6 +2039,7 @@ public virtual Task ExplainDataFrameAnalytics /// Forces any buffered data to be processed by the job. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FlushJobResponse FlushJob(FlushJobRequest request) { request.BeforeRequest(); @@ -2111,6 +2129,7 @@ public virtual Task FlushJobAsync(Elastic.Clients.Elasticsearc /// Predicts the future behavior of a time series by using its historical behavior. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ForecastResponse Forecast(ForecastRequest request) { request.BeforeRequest(); @@ -2200,6 +2219,7 @@ public virtual Task ForecastAsync(Elastic.Clients.Elasticsearc /// Retrieves anomaly detection job results for one or more buckets. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBucketsResponse GetBuckets(GetBucketsRequest request) { request.BeforeRequest(); @@ -2454,6 +2474,7 @@ public virtual Task GetBucketsAsync(Elastic.Clients.Elastics /// Retrieves information about the scheduled events in calendars. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetCalendarEventsResponse GetCalendarEvents(GetCalendarEventsRequest request) { request.BeforeRequest(); @@ -2543,6 +2564,7 @@ public virtual Task GetCalendarEventsAsync(Elastic.Cl /// Retrieves configuration information for calendars. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetCalendarsResponse GetCalendars(GetCalendarsRequest request) { request.BeforeRequest(); @@ -2680,6 +2702,7 @@ public virtual Task GetCalendarsAsync(ActionRetrieves anomaly detection job results for one or more categories. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetCategoriesResponse GetCategories(GetCategoriesRequest request) { request.BeforeRequest(); @@ -2817,6 +2840,7 @@ public virtual Task GetCategoriesAsync(Elastic.Clients.El /// Retrieves configuration information for datafeeds. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDatafeedsResponse GetDatafeeds(GetDatafeedsRequest request) { request.BeforeRequest(); @@ -2954,6 +2978,7 @@ public virtual Task GetDatafeedsAsync(ActionRetrieves usage information for datafeeds. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDatafeedStatsResponse GetDatafeedStats(GetDatafeedStatsRequest request) { request.BeforeRequest(); @@ -3091,6 +3116,7 @@ public virtual Task GetDatafeedStatsAsync(ActionRetrieves configuration information for data frame analytics jobs. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataFrameAnalyticsResponse GetDataFrameAnalytics(GetDataFrameAnalyticsRequest request) { request.BeforeRequest(); @@ -3345,6 +3371,7 @@ public virtual Task GetDataFrameAnalyticsAsync(Ac /// Retrieves usage information for data frame analytics jobs. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetDataFrameAnalyticsStatsResponse GetDataFrameAnalyticsStats(GetDataFrameAnalyticsStatsRequest request) { request.BeforeRequest(); @@ -3599,6 +3626,7 @@ public virtual Task GetDataFrameAnalyticsSta /// Retrieves filters. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetFiltersResponse GetFilters(GetFiltersRequest request) { request.BeforeRequest(); @@ -3736,6 +3764,7 @@ public virtual Task GetFiltersAsync(ActionRetrieves anomaly detection job results for one or more influencers. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetInfluencersResponse GetInfluencers(GetInfluencersRequest request) { request.BeforeRequest(); @@ -3894,6 +3923,7 @@ public virtual Task GetInfluencersAsync(Elastic.Clients. /// Retrieves configuration information for anomaly detection jobs. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs(GetJobsRequest request) { request.BeforeRequest(); @@ -4031,6 +4061,7 @@ public virtual Task GetJobsAsync(ActionRetrieves usage information for anomaly detection jobs. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobStatsResponse GetJobStats(GetJobStatsRequest request) { request.BeforeRequest(); @@ -4168,6 +4199,7 @@ public virtual Task GetJobStatsAsync(ActionReturns information on how ML is using memory. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetMemoryStatsResponse GetMemoryStats(GetMemoryStatsRequest request) { request.BeforeRequest(); @@ -4305,6 +4337,7 @@ public virtual Task GetMemoryStatsAsync(ActionRetrieves information about model snapshots. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetModelSnapshotsResponse GetModelSnapshots(GetModelSnapshotsRequest request) { request.BeforeRequest(); @@ -4559,6 +4592,7 @@ public virtual Task GetModelSnapshotsAsync(Elastic.Cl /// Gets stats for anomaly detection job model snapshot upgrades that are in progress. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetModelSnapshotUpgradeStatsResponse GetModelSnapshotUpgradeStats(GetModelSnapshotUpgradeStatsRequest request) { request.BeforeRequest(); @@ -4648,6 +4682,7 @@ public virtual Task GetModelSnapshotUpgrad /// Retrieves overall bucket results that summarize the bucket results of multiple anomaly detection jobs. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetOverallBucketsResponse GetOverallBuckets(GetOverallBucketsRequest request) { request.BeforeRequest(); @@ -4737,6 +4772,7 @@ public virtual Task GetOverallBucketsAsync(Elastic.Cl /// Retrieves anomaly records for an anomaly detection job. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRecordsResponse GetRecords(GetRecordsRequest request) { request.BeforeRequest(); @@ -4895,6 +4931,7 @@ public virtual Task GetRecordsAsync(Elastic.Clients.Elastics /// Retrieves configuration information for a trained inference model. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTrainedModelsResponse GetTrainedModels(GetTrainedModelsRequest request) { request.BeforeRequest(); @@ -5032,6 +5069,7 @@ public virtual Task GetTrainedModelsAsync(ActionRetrieves usage information for trained inference models. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTrainedModelsStatsResponse GetTrainedModelsStats(GetTrainedModelsStatsRequest request) { request.BeforeRequest(); @@ -5169,6 +5207,7 @@ public virtual Task GetTrainedModelsStatsAsync(Ac /// Evaluate a trained model. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InferTrainedModelResponse InferTrainedModel(InferTrainedModelRequest request) { request.BeforeRequest(); @@ -5327,6 +5366,7 @@ public virtual Task InferTrainedModelAsync(Elastic.Cl /// Returns defaults and limits used by machine learning. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MlInfoResponse Info(MlInfoRequest request) { request.BeforeRequest(); @@ -5416,6 +5456,7 @@ public virtual Task InfoAsync(Action co /// Opens one or more anomaly detection jobs. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenJobResponse OpenJob(OpenJobRequest request) { request.BeforeRequest(); @@ -5505,6 +5546,7 @@ public virtual Task OpenJobAsync(Elastic.Clients.Elasticsearch. /// Posts scheduled events in a calendar. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PostCalendarEventsResponse PostCalendarEvents(PostCalendarEventsRequest request) { request.BeforeRequest(); @@ -5594,6 +5636,7 @@ public virtual Task PostCalendarEventsAsync(Elastic. /// Previews that will be analyzed given a data frame analytics config. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PreviewDataFrameAnalyticsResponse PreviewDataFrameAnalytics(PreviewDataFrameAnalyticsRequest request) { request.BeforeRequest(); @@ -5848,6 +5891,7 @@ public virtual Task PreviewDataFrameAnalytics /// Instantiates a calendar. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutCalendarResponse PutCalendar(PutCalendarRequest request) { request.BeforeRequest(); @@ -5937,6 +5981,7 @@ public virtual Task PutCalendarAsync(Elastic.Clients.Elasti /// Adds an anomaly detection job to a calendar. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutCalendarJobResponse PutCalendarJob(PutCalendarJobRequest request) { request.BeforeRequest(); @@ -6026,6 +6071,7 @@ public virtual Task PutCalendarJobAsync(Elastic.Clients. /// Instantiates a datafeed. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDatafeedResponse PutDatafeed(PutDatafeedRequest request) { request.BeforeRequest(); @@ -6184,6 +6230,7 @@ public virtual Task PutDatafeedAsync(Elastic.Clients.Elasti /// Instantiates a data frame analytics job. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutDataFrameAnalyticsResponse PutDataFrameAnalytics(PutDataFrameAnalyticsRequest request) { request.BeforeRequest(); @@ -6342,6 +6389,7 @@ public virtual Task PutDataFrameAnalyticsAsync(El /// Instantiates a filter. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutFilterResponse PutFilter(PutFilterRequest request) { request.BeforeRequest(); @@ -6431,6 +6479,7 @@ public virtual Task PutFilterAsync(Elastic.Clients.Elasticsea /// Instantiates an anomaly detection job. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutJobResponse PutJob(PutJobRequest request) { request.BeforeRequest(); @@ -6589,6 +6638,7 @@ public virtual Task PutJobAsync(Elastic.Clients.Elasticsearch.Id /// Creates an inference trained model. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTrainedModelResponse PutTrainedModel(PutTrainedModelRequest request) { request.BeforeRequest(); @@ -6747,6 +6797,7 @@ public virtual Task PutTrainedModelAsync(Elastic.Client /// Creates a new model alias (or reassigns an existing one) to refer to the trained model /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTrainedModelAliasResponse PutTrainedModelAlias(PutTrainedModelAliasRequest request) { request.BeforeRequest(); @@ -6836,6 +6887,7 @@ public virtual Task PutTrainedModelAliasAsync(Elas /// Creates part of a trained model definition /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTrainedModelDefinitionPartResponse PutTrainedModelDefinitionPart(PutTrainedModelDefinitionPartRequest request) { request.BeforeRequest(); @@ -6925,6 +6977,7 @@ public virtual Task PutTrainedModelDefini /// Creates a trained model vocabulary /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTrainedModelVocabularyResponse PutTrainedModelVocabulary(PutTrainedModelVocabularyRequest request) { request.BeforeRequest(); @@ -7014,6 +7067,7 @@ public virtual Task PutTrainedModelVocabulary /// Resets an existing anomaly detection job. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResetJobResponse ResetJob(ResetJobRequest request) { request.BeforeRequest(); @@ -7103,6 +7157,7 @@ public virtual Task ResetJobAsync(Elastic.Clients.Elasticsearc /// Reverts to a specific snapshot. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RevertModelSnapshotResponse RevertModelSnapshot(RevertModelSnapshotRequest request) { request.BeforeRequest(); @@ -7192,6 +7247,7 @@ public virtual Task RevertModelSnapshotAsync(Elasti /// Sets a cluster wide upgrade_mode setting that prepares machine learning indices for an upgrade. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SetUpgradeModeResponse SetUpgradeMode(SetUpgradeModeRequest request) { request.BeforeRequest(); @@ -7281,6 +7337,7 @@ public virtual Task SetUpgradeModeAsync(ActionStarts one or more datafeeds. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartDatafeedResponse StartDatafeed(StartDatafeedRequest request) { request.BeforeRequest(); @@ -7370,6 +7427,7 @@ public virtual Task StartDatafeedAsync(Elastic.Clients.El /// Starts a data frame analytics job. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartDataFrameAnalyticsResponse StartDataFrameAnalytics(StartDataFrameAnalyticsRequest request) { request.BeforeRequest(); @@ -7528,6 +7586,7 @@ public virtual Task StartDataFrameAnalyticsAsyn /// Start a trained model deployment. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartTrainedModelDeploymentResponse StartTrainedModelDeployment(StartTrainedModelDeploymentRequest request) { request.BeforeRequest(); @@ -7617,6 +7676,7 @@ public virtual Task StartTrainedModelDeploy /// Stops one or more datafeeds. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopDatafeedResponse StopDatafeed(StopDatafeedRequest request) { request.BeforeRequest(); @@ -7706,6 +7766,7 @@ public virtual Task StopDatafeedAsync(Elastic.Clients.Elas /// Stops one or more data frame analytics jobs. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopDataFrameAnalyticsResponse StopDataFrameAnalytics(StopDataFrameAnalyticsRequest request) { request.BeforeRequest(); @@ -7864,6 +7925,7 @@ public virtual Task StopDataFrameAnalyticsAsync( /// Stop a trained model deployment. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopTrainedModelDeploymentResponse StopTrainedModelDeployment(StopTrainedModelDeploymentRequest request) { request.BeforeRequest(); @@ -7953,6 +8015,7 @@ public virtual Task StopTrainedModelDeployme /// Updates certain properties of a datafeed. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateDatafeedResponse UpdateDatafeed(UpdateDatafeedRequest request) { request.BeforeRequest(); @@ -8111,6 +8174,7 @@ public virtual Task UpdateDatafeedAsync(Elastic.Clients. /// Updates certain properties of a data frame analytics job. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateDataFrameAnalyticsResponse UpdateDataFrameAnalytics(UpdateDataFrameAnalyticsRequest request) { request.BeforeRequest(); @@ -8269,6 +8333,7 @@ public virtual Task UpdateDataFrameAnalyticsAs /// Updates the description of a filter, adds items, or removes items. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateFilterResponse UpdateFilter(UpdateFilterRequest request) { request.BeforeRequest(); @@ -8358,6 +8423,7 @@ public virtual Task UpdateFilterAsync(Elastic.Clients.Elas /// Updates certain properties of an anomaly detection job. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateJobResponse UpdateJob(UpdateJobRequest request) { request.BeforeRequest(); @@ -8516,6 +8582,7 @@ public virtual Task UpdateJobAsync(Elastic.Clients.Elasticsea /// Updates certain properties of a snapshot. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateModelSnapshotResponse UpdateModelSnapshot(UpdateModelSnapshotRequest request) { request.BeforeRequest(); @@ -8605,6 +8672,7 @@ public virtual Task UpdateModelSnapshotAsync(Elasti /// Upgrades a given job snapshot to the current major version. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpgradeJobSnapshotResponse UpgradeJobSnapshot(UpgradeJobSnapshotRequest request) { request.BeforeRequest(); @@ -8694,6 +8762,7 @@ public virtual Task UpgradeJobSnapshotAsync(Elastic. /// Validates an anomaly detection job. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ValidateResponse Validate(ValidateRequest request) { request.BeforeRequest(); @@ -8852,6 +8921,7 @@ public virtual Task ValidateAsync(ActionValidates an anomaly detection detector. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ValidateDetectorResponse ValidateDetector(ValidateDetectorRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Nodes.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Nodes.g.cs index a0318ad50e..a6437e2fec 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Nodes.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Nodes.g.cs @@ -41,6 +41,7 @@ internal NodesNamespacedClient(ElasticsearchClient client) : base(client) /// Removes the archived repositories metering information present in the cluster. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearRepositoriesMeteringArchiveResponse ClearRepositoriesMeteringArchive(ClearRepositoriesMeteringArchiveRequest request) { request.BeforeRequest(); @@ -130,6 +131,7 @@ public virtual Task ClearRepositoriesM /// Returns cluster repositories metering information. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRepositoriesMeteringInfoResponse GetRepositoriesMeteringInfo(GetRepositoriesMeteringInfoRequest request) { request.BeforeRequest(); @@ -219,6 +221,7 @@ public virtual Task GetRepositoriesMetering /// Returns information about hot threads on each node in the cluster. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HotThreadsResponse HotThreads(HotThreadsRequest request) { request.BeforeRequest(); @@ -356,6 +359,7 @@ public virtual Task HotThreadsAsync(ActionReturns information about nodes in the cluster. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesInfoResponse Info(NodesInfoRequest request) { request.BeforeRequest(); @@ -493,6 +497,7 @@ public virtual Task InfoAsync(ActionReloads secure settings. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReloadSecureSettingsResponse ReloadSecureSettings(ReloadSecureSettingsRequest request) { request.BeforeRequest(); @@ -630,6 +635,7 @@ public virtual Task ReloadSecureSettingsAsync(Acti /// Returns statistical information about nodes in the cluster. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesStatsResponse Stats(NodesStatsRequest request) { request.BeforeRequest(); @@ -884,6 +890,7 @@ public virtual Task StatsAsync(ActionReturns low-level information about REST actions usage on nodes. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual NodesUsageResponse Usage(NodesUsageRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.QueryRuleset.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.QueryRuleset.g.cs index 54fb421323..a089df468f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.QueryRuleset.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.QueryRuleset.g.cs @@ -41,6 +41,7 @@ internal QueryRulesetNamespacedClient(ElasticsearchClient client) : base(client) /// Deletes a query ruleset. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteQueryRulesetResponse Delete(DeleteQueryRulesetRequest request) { request.BeforeRequest(); @@ -130,6 +131,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elas /// Returns the details about a query ruleset. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetQueryRulesetResponse Get(GetQueryRulesetRequest request) { request.BeforeRequest(); @@ -219,6 +221,7 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsea /// Lists query rulesets. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListResponse List(ListRequest request) { request.BeforeRequest(); @@ -308,6 +311,7 @@ public virtual Task ListAsync(Action config /// Creates or updates a query ruleset. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutQueryRulesetResponse Put(PutQueryRulesetRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Rollup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Rollup.g.cs index 7ce30c71d5..aa7882f5bf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Rollup.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Rollup.g.cs @@ -41,6 +41,7 @@ internal RollupNamespacedClient(ElasticsearchClient client) : base(client) /// Deletes an existing rollup job. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteJobResponse DeleteJob(DeleteJobRequest request) { request.BeforeRequest(); @@ -199,6 +200,7 @@ public virtual Task DeleteJobAsync(Elastic.Clients.Elasticsea /// Retrieves the configuration, stats, and status of rollup jobs. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetJobsResponse GetJobs(GetJobsRequest request) { request.BeforeRequest(); @@ -453,6 +455,7 @@ public virtual Task GetJobsAsync(ActionReturns the capabilities of any rollup jobs that have been configured for a specific index or index pattern. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupCapsResponse GetRollupCaps(GetRollupCapsRequest request) { request.BeforeRequest(); @@ -707,6 +710,7 @@ public virtual Task GetRollupCapsAsync(ActionReturns the rollup capabilities of all jobs inside of a rollup index (e.g. the index where rollup data is stored). /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRollupIndexCapsResponse GetRollupIndexCaps(GetRollupIndexCapsRequest request) { request.BeforeRequest(); @@ -865,6 +869,7 @@ public virtual Task GetRollupIndexCapsAsync(Elastic. /// Creates a rollup job. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutJobResponse PutJob(PutJobRequest request) { request.BeforeRequest(); @@ -1023,6 +1028,7 @@ public virtual Task PutJobAsync(Elastic.Clients.Elasticsearch.Id /// Enables searching rolled-up data using the standard query DSL. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RollupSearchResponse RollupSearch(RollupSearchRequest request) { request.BeforeRequest(); @@ -1112,6 +1118,7 @@ public virtual Task> RollupSearchAsyncStarts an existing, stopped rollup job. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartJobResponse StartJob(StartJobRequest request) { request.BeforeRequest(); @@ -1270,6 +1277,7 @@ public virtual Task StartJobAsync(Elastic.Clients.Elasticsearc /// Stops an existing, started rollup job. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopJobResponse StopJob(StopJobRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchApplication.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchApplication.g.cs index 9ba3c2483a..1eca7f733a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchApplication.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchApplication.g.cs @@ -41,6 +41,7 @@ internal SearchApplicationNamespacedClient(ElasticsearchClient client) : base(cl /// Deletes a search application. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSearchApplicationResponse Delete(DeleteSearchApplicationRequest request) { request.BeforeRequest(); @@ -130,6 +131,7 @@ public virtual Task DeleteAsync(Elastic.Clients /// Delete a behavioral analytics collection. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteBehavioralAnalyticsResponse DeleteBehavioralAnalytics(DeleteBehavioralAnalyticsRequest request) { request.BeforeRequest(); @@ -219,6 +221,7 @@ public virtual Task DeleteBehavioralAnalytics /// Returns the details about a search application. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSearchApplicationResponse Get(GetSearchApplicationRequest request) { request.BeforeRequest(); @@ -308,6 +311,7 @@ public virtual Task GetAsync(Elastic.Clients.Elast /// Returns the existing behavioral analytics collections. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetBehavioralAnalyticsResponse GetBehavioralAnalytics(GetBehavioralAnalyticsRequest request) { request.BeforeRequest(); @@ -445,6 +449,7 @@ public virtual Task GetBehavioralAnalyticsAsync( /// Returns the existing search applications. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListResponse List(ListRequest request) { request.BeforeRequest(); @@ -534,6 +539,7 @@ public virtual Task ListAsync(Action config /// Creates or updates a search application. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutSearchApplicationResponse Put(PutSearchApplicationRequest request) { request.BeforeRequest(); @@ -623,6 +629,7 @@ public virtual Task PutAsync(Elastic.Clients.Elast /// Creates a behavioral analytics collection. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutBehavioralAnalyticsResponse PutBehavioralAnalytics(PutBehavioralAnalyticsRequest request) { request.BeforeRequest(); @@ -712,6 +719,7 @@ public virtual Task PutBehavioralAnalyticsAsync( /// Perform a search against a search application /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchApplicationSearchResponse Search(SearchApplicationSearchRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchableSnapshots.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchableSnapshots.g.cs index 6338f21036..9a28628b58 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchableSnapshots.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.SearchableSnapshots.g.cs @@ -41,6 +41,7 @@ internal SearchableSnapshotsNamespacedClient(ElasticsearchClient client) : base( /// Retrieve node-level cache statistics about searchable snapshots. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CacheStatsResponse CacheStats(CacheStatsRequest request) { request.BeforeRequest(); @@ -178,6 +179,7 @@ public virtual Task CacheStatsAsync(ActionClear the cache of searchable snapshots. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCacheResponse ClearCache(ClearCacheRequest request) { request.BeforeRequest(); @@ -432,6 +434,7 @@ public virtual Task ClearCacheAsync(ActionMount a snapshot as a searchable index. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MountResponse Mount(MountRequest request) { request.BeforeRequest(); @@ -521,6 +524,7 @@ public virtual Task MountAsync(Elastic.Clients.Elasticsearch.Name /// Retrieve shard-level statistics about searchable snapshots. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchableSnapshotsStatsResponse Stats(SearchableSnapshotsStatsRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Slm.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Slm.g.cs index 602271a3e9..672404b211 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Slm.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Slm.g.cs @@ -41,6 +41,7 @@ internal SnapshotLifecycleManagementNamespacedClient(ElasticsearchClient client) /// Deletes an existing snapshot lifecycle policy. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteLifecycleResponse DeleteLifecycle(DeleteLifecycleRequest request) { request.BeforeRequest(); @@ -130,6 +131,7 @@ public virtual Task DeleteLifecycleAsync(Elastic.Client /// Immediately creates a snapshot according to the lifecycle policy, without waiting for the scheduled time. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecuteLifecycleResponse ExecuteLifecycle(ExecuteLifecycleRequest request) { request.BeforeRequest(); @@ -219,6 +221,7 @@ public virtual Task ExecuteLifecycleAsync(Elastic.Clie /// Deletes any snapshots that are expired according to the policy's retention rules. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExecuteRetentionResponse ExecuteRetention(ExecuteRetentionRequest request) { request.BeforeRequest(); @@ -308,6 +311,7 @@ public virtual Task ExecuteRetentionAsync(ActionRetrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetLifecycleResponse GetLifecycle(GetLifecycleRequest request) { request.BeforeRequest(); @@ -445,6 +449,7 @@ public virtual Task GetLifecycleAsync(ActionReturns global and policy-level statistics about actions taken by snapshot lifecycle management. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetStatsResponse GetStats(GetStatsRequest request) { request.BeforeRequest(); @@ -534,6 +539,7 @@ public virtual Task GetStatsAsync(ActionRetrieves the status of snapshot lifecycle management (SLM). /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSlmStatusResponse GetStatus(GetSlmStatusRequest request) { request.BeforeRequest(); @@ -623,6 +629,7 @@ public virtual Task GetStatusAsync(ActionCreates or updates a snapshot lifecycle policy. /// Learn more about this API in the Elasticsearch documentation. ///
+ [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutLifecycleResponse PutLifecycle(PutLifecycleRequest request) { request.BeforeRequest(); @@ -712,6 +719,7 @@ public virtual Task PutLifecycleAsync(Elastic.Clients.Elas /// Turns on snapshot lifecycle management (SLM). /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartSlmResponse Start(StartSlmRequest request) { request.BeforeRequest(); @@ -801,6 +809,7 @@ public virtual Task StartAsync(ActionTurns off snapshot lifecycle management (SLM). /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopSlmResponse Stop(StopSlmRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Snapshot.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Snapshot.g.cs index 00ca4a155b..4e4b47d972 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Snapshot.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Snapshot.g.cs @@ -41,6 +41,7 @@ internal SnapshotNamespacedClient(ElasticsearchClient client) : base(client) /// Removes stale data from repository. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CleanupRepositoryResponse CleanupRepository(CleanupRepositoryRequest request) { request.BeforeRequest(); @@ -130,6 +131,7 @@ public virtual Task CleanupRepositoryAsync(Elastic.Cl /// Clones indices from one snapshot into another snapshot in the same repository. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CloneSnapshotResponse Clone(CloneSnapshotRequest request) { request.BeforeRequest(); @@ -219,6 +221,7 @@ public virtual Task CloneAsync(Elastic.Clients.Elasticsea /// Creates a snapshot in a repository. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateSnapshotResponse Create(CreateSnapshotRequest request) { request.BeforeRequest(); @@ -308,6 +311,7 @@ public virtual Task CreateAsync(Elastic.Clients.Elastics /// Creates a repository. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateRepositoryResponse CreateRepository(CreateRepositoryRequest request) { request.BeforeRequest(); @@ -397,6 +401,7 @@ public virtual Task CreateRepositoryAsync(Elastic.Clie /// Deletes one or more snapshots. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSnapshotResponse Delete(DeleteSnapshotRequest request) { request.BeforeRequest(); @@ -486,6 +491,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elastics /// Deletes a repository. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteRepositoryResponse DeleteRepository(DeleteRepositoryRequest request) { request.BeforeRequest(); @@ -575,6 +581,7 @@ public virtual Task DeleteRepositoryAsync(Elastic.Clie /// Returns information about a snapshot. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSnapshotResponse Get(GetSnapshotRequest request) { request.BeforeRequest(); @@ -664,6 +671,7 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch. /// Returns information about a repository. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetRepositoryResponse GetRepository(GetRepositoryRequest request) { request.BeforeRequest(); @@ -801,6 +809,7 @@ public virtual Task GetRepositoryAsync(ActionRestores a snapshot. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RestoreResponse Restore(RestoreRequest request) { request.BeforeRequest(); @@ -959,6 +968,7 @@ public virtual Task RestoreAsync(Elastic.Clients.Elasticsearch. /// Returns information about the status of a snapshot. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SnapshotStatusResponse Status(SnapshotStatusRequest request) { request.BeforeRequest(); @@ -1096,6 +1106,7 @@ public virtual Task StatusAsync(ActionVerifies a repository. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual VerifyRepositoryResponse VerifyRepository(VerifyRepositoryRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Sql.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Sql.g.cs index 2f71817b1b..65fd48f575 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Sql.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Sql.g.cs @@ -41,6 +41,7 @@ internal SqlNamespacedClient(ElasticsearchClient client) : base(client) /// Clears the SQL cursor /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearCursorResponse ClearCursor(ClearCursorRequest request) { request.BeforeRequest(); @@ -130,6 +131,7 @@ public virtual Task ClearCursorAsync(ActionDeletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteAsyncResponse DeleteAsync(DeleteAsyncRequest request) { request.BeforeRequest(); @@ -288,6 +290,7 @@ public virtual Task DeleteAsyncAsync(Elastic.Clients.Elasti /// Returns the current status and available results for an async SQL search or stored synchronous SQL search /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncResponse GetAsync(GetAsyncRequest request) { request.BeforeRequest(); @@ -446,6 +449,7 @@ public virtual Task GetAsyncAsync(Elastic.Clients.Elasticsearc /// Returns the current status of an async SQL search or a stored synchronous SQL search /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetAsyncStatusResponse GetAsyncStatus(GetAsyncStatusRequest request) { request.BeforeRequest(); @@ -604,6 +608,7 @@ public virtual Task GetAsyncStatusAsync(Elastic.Clients. /// Executes a SQL request /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual QueryResponse Query(QueryRequest request) { request.BeforeRequest(); @@ -762,6 +767,7 @@ public virtual Task QueryAsync(Action con /// Translates SQL into Elasticsearch queries /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TranslateResponse Translate(TranslateRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Synonyms.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Synonyms.g.cs index 5470df9ac8..5c22f89e20 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Synonyms.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Synonyms.g.cs @@ -41,6 +41,7 @@ internal SynonymsNamespacedClient(ElasticsearchClient client) : base(client) /// Deletes a synonym set /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSynonymResponse DeleteSynonym(DeleteSynonymRequest request) { request.BeforeRequest(); @@ -199,6 +200,7 @@ public virtual Task DeleteSynonymAsync(Elastic.Clients.El /// Deletes a synonym rule in a synonym set /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteSynonymRuleResponse DeleteSynonymRule(DeleteSynonymRuleRequest request) { request.BeforeRequest(); @@ -288,6 +290,7 @@ public virtual Task DeleteSynonymRuleAsync(Elastic.Cl /// Retrieves a synonym set /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymResponse GetSynonym(GetSynonymRequest request) { request.BeforeRequest(); @@ -446,6 +449,7 @@ public virtual Task GetSynonymAsync(Elastic.Clients.Elastics /// Retrieves a synonym rule from a synonym set /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymRuleResponse GetSynonymRule(GetSynonymRuleRequest request) { request.BeforeRequest(); @@ -535,6 +539,7 @@ public virtual Task GetSynonymRuleAsync(Elastic.Clients. /// Retrieves a summary of all defined synonym sets /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSynonymsSetsResponse GetSynonymsSets(GetSynonymsSetsRequest request) { request.BeforeRequest(); @@ -624,6 +629,7 @@ public virtual Task GetSynonymsSetsAsync(ActionCreates or updates a synonyms set /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutSynonymResponse PutSynonym(PutSynonymRequest request) { request.BeforeRequest(); @@ -782,6 +788,7 @@ public virtual Task PutSynonymAsync(Elastic.Clients.Elastics /// Creates or updates a synonym rule in a synonym set /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutSynonymRuleResponse PutSynonymRule(PutSynonymRuleRequest request) { request.BeforeRequest(); 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 628d82d1a9..87fb09b9f0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Tasks.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Tasks.g.cs @@ -41,6 +41,7 @@ internal TasksNamespacedClient(ElasticsearchClient client) : base(client) /// Cancels a task, if it can be cancelled through an API. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CancelResponse Cancel(CancelRequest request) { request.BeforeRequest(); @@ -178,6 +179,7 @@ public virtual Task CancelAsync(Action /// Returns information about a task. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTasksResponse Get(GetTasksRequest request) { request.BeforeRequest(); @@ -267,6 +269,7 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Id /// Returns a list of tasks. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ListResponse List(ListRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.TextStructure.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.TextStructure.g.cs index 2ed13afc43..f038b7b10f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.TextStructure.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.TextStructure.g.cs @@ -41,6 +41,7 @@ internal TextStructureNamespacedClient(ElasticsearchClient client) : base(client /// Tests a Grok pattern on some text. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TestGrokPatternResponse TestGrokPattern(TestGrokPatternRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Transform.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Transform.g.cs index 48166719dc..d5aa47cb71 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Transform.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Transform.g.cs @@ -41,6 +41,7 @@ internal TransformManagementNamespacedClient(ElasticsearchClient client) : base( /// Deletes an existing transform. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteTransformResponse DeleteTransform(DeleteTransformRequest request) { request.BeforeRequest(); @@ -130,6 +131,7 @@ public virtual Task DeleteTransformAsync(Elastic.Client /// Retrieves configuration information for transforms. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTransformResponse GetTransform(GetTransformRequest request) { request.BeforeRequest(); @@ -267,6 +269,7 @@ public virtual Task GetTransformAsync(ActionRetrieves usage information for transforms. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetTransformStatsResponse GetTransformStats(GetTransformStatsRequest request) { request.BeforeRequest(); @@ -356,6 +359,7 @@ public virtual Task GetTransformStatsAsync(Elastic.Cl /// Previews a transform. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PreviewTransformResponse PreviewTransform(PreviewTransformRequest request) { request.BeforeRequest(); @@ -493,6 +497,7 @@ public virtual Task> PreviewTransformAsync< /// Instantiates a transform. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutTransformResponse PutTransform(PutTransformRequest request) { request.BeforeRequest(); @@ -651,6 +656,7 @@ public virtual Task PutTransformAsync(Elastic.Clients.Elas /// Resets an existing transform. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ResetTransformResponse ResetTransform(ResetTransformRequest request) { request.BeforeRequest(); @@ -740,6 +746,7 @@ public virtual Task ResetTransformAsync(Elastic.Clients. /// Schedules now a transform. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ScheduleNowTransformResponse ScheduleNowTransform(ScheduleNowTransformRequest request) { request.BeforeRequest(); @@ -829,6 +836,7 @@ public virtual Task ScheduleNowTransformAsync(Elas /// Starts one or more transforms. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StartTransformResponse StartTransform(StartTransformRequest request) { request.BeforeRequest(); @@ -918,6 +926,7 @@ public virtual Task StartTransformAsync(Elastic.Clients. /// Stops one or more transforms. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual StopTransformResponse StopTransform(StopTransformRequest request) { request.BeforeRequest(); @@ -1007,6 +1016,7 @@ public virtual Task StopTransformAsync(Elastic.Clients.El /// Updates certain properties of a transform. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateTransformResponse UpdateTransform(UpdateTransformRequest request) { request.BeforeRequest(); @@ -1165,6 +1175,7 @@ public virtual Task UpdateTransformAsync(Elastic.Client /// Upgrades all transforms. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpgradeTransformsResponse UpgradeTransforms(UpgradeTransformsRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Xpack.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Xpack.g.cs index bcb707b4af..4bee4e43e3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Xpack.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Xpack.g.cs @@ -41,6 +41,7 @@ internal XpackNamespacedClient(ElasticsearchClient client) : base(client) /// Retrieves information about the installed X-Pack features. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual XpackInfoResponse Info(XpackInfoRequest request) { request.BeforeRequest(); @@ -130,6 +131,7 @@ public virtual Task InfoAsync(ActionRetrieves usage information about the installed X-Pack features. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual XpackUsageResponse Usage(XpackUsageRequest request) { request.BeforeRequest(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs index bacebfea21..b5660060b9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs @@ -119,6 +119,7 @@ public partial class ElasticsearchClient /// Allows to perform multiple index/update/delete operations in a single request. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual BulkResponse Bulk(BulkRequest request) { request.BeforeRequest(); @@ -373,6 +374,7 @@ public virtual Task BulkAsync(Action config /// Explicitly clears the search context for a scroll. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClearScrollResponse ClearScroll(ClearScrollRequest request) { request.BeforeRequest(); @@ -462,6 +464,7 @@ public virtual Task ClearScrollAsync(ActionClose a point in time /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequest request) { request.BeforeRequest(); @@ -551,6 +554,7 @@ public virtual Task ClosePointInTimeAsync(ActionReturns number of documents matching a query. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CountResponse Count(CountRequest request) { request.BeforeRequest(); @@ -806,6 +810,7 @@ public virtual Task CountAsync(Action con /// Returns a 409 response when a document with a same ID already exists in the index. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual CreateResponse Create(CreateRequest request) { request.BeforeRequest(); @@ -1058,6 +1063,7 @@ public virtual Task CreateAsync(TDocument document, E /// Removes a document from the index. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteResponse Delete(DeleteRequest request) { request.BeforeRequest(); @@ -1216,6 +1222,7 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.In /// Deletes documents matching the provided query. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteByQueryResponse DeleteByQuery(DeleteByQueryRequest request) { request.BeforeRequest(); @@ -1374,6 +1381,7 @@ public virtual Task DeleteByQueryAsync(Elastic.Clients.El /// Changes the number of requests per second for a particular Delete By Query operation. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(DeleteByQueryRethrottleRequest request) { request.BeforeRequest(); @@ -1463,6 +1471,7 @@ public virtual Task DeleteByQueryRethrottleAsyn /// Deletes a script. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual DeleteScriptResponse DeleteScript(DeleteScriptRequest request) { request.BeforeRequest(); @@ -1621,6 +1630,7 @@ public virtual Task DeleteScriptAsync(Elastic.Clients.Elas /// Returns information about whether a document exists in an index. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsResponse Exists(ExistsRequest request) { request.BeforeRequest(); @@ -1779,6 +1789,7 @@ public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.In /// Returns information about whether a document source exists in an index. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExistsSourceResponse ExistsSource(ExistsSourceRequest request) { request.BeforeRequest(); @@ -1937,6 +1948,7 @@ public virtual Task ExistsSourceAsync(Elastic.Clients.Elas /// Returns information about why a specific matches (or doesn't match) a query. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ExplainResponse Explain(ExplainRequest request) { request.BeforeRequest(); @@ -2026,6 +2038,7 @@ public virtual Task> ExplainAsync(Elastic. /// Returns the information about the capabilities of fields among multiple indices. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual FieldCapsResponse FieldCaps(FieldCapsRequest request) { request.BeforeRequest(); @@ -2280,6 +2293,7 @@ public virtual Task FieldCapsAsync(ActionReturns a document. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetResponse Get(GetRequest request) { request.BeforeRequest(); @@ -2369,6 +2383,7 @@ public virtual Task> GetAsync(Elastic.Clients. /// Returns a script. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetScriptResponse GetScript(GetScriptRequest request) { request.BeforeRequest(); @@ -2527,6 +2542,7 @@ public virtual Task GetScriptAsync(Elastic.Clients.Elasticsea /// Returns all script contexts. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetScriptContextResponse GetScriptContext(GetScriptContextRequest request) { request.BeforeRequest(); @@ -2616,6 +2632,7 @@ public virtual Task GetScriptContextAsync(ActionReturns available script types, languages and contexts /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetScriptLanguagesResponse GetScriptLanguages(GetScriptLanguagesRequest request) { request.BeforeRequest(); @@ -2705,6 +2722,7 @@ public virtual Task GetScriptLanguagesAsync(ActionReturns the source of a document. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual GetSourceResponse GetSource(GetSourceRequest request) { request.BeforeRequest(); @@ -2794,6 +2812,7 @@ public virtual Task> GetSourceAsync(Elas /// Returns the health of the cluster. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual HealthReportResponse HealthReport(HealthReportRequest request) { request.BeforeRequest(); @@ -2931,6 +2950,7 @@ public virtual Task HealthReportAsync(ActionCreates or updates a document in an index. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual IndexResponse Index(IndexRequest request) { request.BeforeRequest(); @@ -3164,6 +3184,7 @@ public virtual Task IndexAsync(TDocument document, Ela /// Returns basic information about the cluster. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual InfoResponse Info(InfoRequest request) { request.BeforeRequest(); @@ -3253,6 +3274,7 @@ public virtual Task InfoAsync(Action config /// Returns multiple termvectors in one request. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiTermVectorsResponse Mtermvectors(MultiTermVectorsRequest request) { request.BeforeRequest(); @@ -3507,6 +3529,7 @@ public virtual Task MtermvectorsAsync(ActionAllows to get multiple documents in one request. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiGetResponse MultiGet(MultiGetRequest request) { request.BeforeRequest(); @@ -3644,6 +3667,7 @@ public virtual Task> MultiGetAsync(Action /// Allows to execute several search operations in one request. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiSearchResponse MultiSearch(MultiSearchRequest request) { request.BeforeRequest(); @@ -3781,6 +3805,7 @@ public virtual Task> MultiSearchAsync( /// Allows to execute several search template operations in one request. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual MultiSearchTemplateResponse MultiSearchTemplate(MultiSearchTemplateRequest request) { request.BeforeRequest(); @@ -3918,6 +3943,7 @@ public virtual Task> MultiSearchTemplateA /// Open a point in time that can be used in subsequent searches /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual OpenPointInTimeResponse OpenPointInTime(OpenPointInTimeRequest request) { request.BeforeRequest(); @@ -4076,6 +4102,7 @@ public virtual Task OpenPointInTimeAsync(Elastic.Client /// Returns whether the cluster is running. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PingResponse Ping(PingRequest request) { request.BeforeRequest(); @@ -4165,6 +4192,7 @@ public virtual Task PingAsync(Action config /// Creates or updates a script. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual PutScriptResponse PutScript(PutScriptRequest request) { request.BeforeRequest(); @@ -4419,6 +4447,7 @@ public virtual Task PutScriptAsync(Elastic.Clients.Elasticsea /// Allows to evaluate the quality of ranked search results over a set of typical search queries /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RankEvalResponse RankEval(RankEvalRequest request) { request.BeforeRequest(); @@ -4673,6 +4702,7 @@ public virtual Task RankEvalAsync(ActionAllows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReindexResponse Reindex(ReindexRequest request) { request.BeforeRequest(); @@ -4831,6 +4861,7 @@ public virtual Task ReindexAsync(ActionChanges the number of requests per second for a particular Reindex operation. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ReindexRethrottleResponse ReindexRethrottle(ReindexRethrottleRequest request) { request.BeforeRequest(); @@ -4920,6 +4951,7 @@ public virtual Task ReindexRethrottleAsync(Elastic.Cl /// Allows to use the Mustache language to pre-render a search definition. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual RenderSearchTemplateResponse RenderSearchTemplate(RenderSearchTemplateRequest request) { request.BeforeRequest(); @@ -5174,6 +5206,7 @@ public virtual Task RenderSearchTemplateAsync(Acti /// Allows an arbitrary script to be executed and a result to be returned /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ScriptsPainlessExecuteResponse ScriptsPainlessExecute(ScriptsPainlessExecuteRequest request) { request.BeforeRequest(); @@ -5263,6 +5296,7 @@ public virtual Task> ScriptsPainlessExec /// Allows to retrieve a large numbers of results from a single search request. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual ScrollResponse Scroll(ScrollRequest request) { request.BeforeRequest(); @@ -5283,6 +5317,7 @@ public virtual Task> ScrollAsync(ScrollRequ /// Returns results matching a query. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchResponse Search(SearchRequest request) { request.BeforeRequest(); @@ -5420,6 +5455,7 @@ public virtual Task> SearchAsync(ActionSearches a vector tile for geospatial values. Returns results as a binary Mapbox vector tile. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchMvtResponse SearchMvt(SearchMvtRequest request) { request.BeforeRequest(); @@ -5578,6 +5614,7 @@ public virtual Task SearchMvtAsync(Elastic.Clients.Elasticsea /// Returns information about the indices and shards that a search request would be executed against. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchShardsResponse SearchShards(SearchShardsRequest request) { request.BeforeRequest(); @@ -5832,6 +5869,7 @@ public virtual Task SearchShardsAsync(ActionAllows to use the Mustache language to pre-render a search definition. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual SearchTemplateResponse SearchTemplate(SearchTemplateRequest request) { request.BeforeRequest(); @@ -5969,6 +6007,7 @@ public virtual Task> SearchTemplateAsyncThe 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. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TermsEnumResponse TermsEnum(TermsEnumRequest request) { request.BeforeRequest(); @@ -6127,6 +6166,7 @@ public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsea /// Returns information and statistics about terms in the fields of a particular document. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual TermVectorsResponse Termvectors(TermVectorsRequest request) { request.BeforeRequest(); @@ -6264,6 +6304,7 @@ public virtual Task TermvectorsAsync(Elastic.Cli /// Updates a document with a script or partial document. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateResponse Update(UpdateRequest request) { request.BeforeRequest(); @@ -6353,6 +6394,7 @@ public virtual Task TermvectorsAsync(Elastic.Cli /// Updates documents that match the specified query. If no query is specified,
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. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateByQueryResponse UpdateByQuery(UpdateByQueryRequest request) { request.BeforeRequest(); @@ -6511,6 +6553,7 @@ public virtual Task UpdateByQueryAsync(Elastic.Clients.El /// Changes the number of requests per second for a particular Update By Query operation. /// Learn more about this API in the Elasticsearch documentation. /// + [Obsolete("Synchronous methods are deprecated and could be removed in the future.")] public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(UpdateByQueryRethrottleRequest request) { request.BeforeRequest();