From 76598941afd7d58b3ee9c1b025b75c28acbc248d Mon Sep 17 00:00:00 2001 From: Steve Gordon Date: Tue, 4 Apr 2023 16:08:52 +0100 Subject: [PATCH] Add additional client overloads. (#7541) * Skip generation of invalid parameterless client overloads * Add generated descriptor overloads for client methods * Add generated generic descriptor overloads * Add generated missing XML doc comments --- exclusion.dic | 3 +- .../Client/ElasticsearchClient-Manual.cs | 120 +- .../ElasticsearchClient.AsyncSearch.g.cs | 200 ++ .../Client/ElasticsearchClient.Cluster.g.cs | 64 + .../Client/ElasticsearchClient.Eql.g.cs | 200 ++ .../Client/ElasticsearchClient.Indices.g.cs | 1980 ++++++++++++++++- .../Client/ElasticsearchClient.Ingest.g.cs | 314 ++- .../Client/ElasticsearchClient.Sql.g.cs | 278 ++- .../Client/ElasticsearchClient.g.cs | 1870 +++++++++++++++- 9 files changed, 4882 insertions(+), 147 deletions(-) diff --git a/exclusion.dic b/exclusion.dic index ec92df46717..7262d2bd690 100644 --- a/exclusion.dic +++ b/exclusion.dic @@ -7,4 +7,5 @@ yyyy enum trippable geotile -yaml \ No newline at end of file +yaml +rethrottle \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/Client/ElasticsearchClient-Manual.cs b/src/Elastic.Clients.Elasticsearch/Client/ElasticsearchClient-Manual.cs index cb06c1a3f70..3131c09b1ac 100644 --- a/src/Elastic.Clients.Elasticsearch/Client/ElasticsearchClient-Manual.cs +++ b/src/Elastic.Clients.Elasticsearch/Client/ElasticsearchClient-Manual.cs @@ -10,12 +10,88 @@ namespace Elastic.Clients.Elasticsearch; public partial class ElasticsearchClient { + /// + /// 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(TDocument document, IndexName index, Id id) + { + var descriptor = new CreateRequestDescriptor(document, index, id); + descriptor.BeforeRequest(); + return DoRequest, CreateResponse, CreateRequestParameters>(descriptor); + } + + /// + /// 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 Task CreateAsync(TDocument document, IndexName index, Id id, CancellationToken cancellationToken = default) + { + var descriptor = new CreateRequestDescriptor(document, index, id); + descriptor.BeforeRequest(); + return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor); + } + + /// + /// Creates or updates a document in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual IndexResponse Index(TDocument document) + { + var descriptor = new IndexRequestDescriptor(document); + descriptor.BeforeRequest(); + return DoRequest, IndexResponse, IndexRequestParameters>(descriptor); + } + + /// + /// Creates or updates a document in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual IndexResponse Index(TDocument document, IndexName index) + { + var descriptor = new IndexRequestDescriptor(document, index); + descriptor.BeforeRequest(); + return DoRequest, IndexResponse, IndexRequestParameters>(descriptor); + } + + /// + /// Creates or updates a document in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task IndexAsync(TDocument document,CancellationToken cancellationToken = default) + { + var descriptor = new IndexRequestDescriptor(document); + descriptor.BeforeRequest(); + return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor); + } + + /// + /// Creates or updates a document in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task IndexAsync(TDocument document, IndexName index, CancellationToken cancellationToken = default) + { + var descriptor = new IndexRequestDescriptor(document, index); + descriptor.BeforeRequest(); + return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor); + } + + /// + /// Updates a document with a script or partial document. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> UpdateAsync(IndexName index, Id id, CancellationToken cancellationToken = default) { var descriptor = new UpdateRequestDescriptor(index, id); return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); } + /// + /// Updates a document with a script or partial document. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> UpdateAsync(IndexName index, Id id, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new UpdateRequestDescriptor(index, id); @@ -23,30 +99,42 @@ public virtual Task> UpdateAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); } - // TODO: Test and introduce in a future release - //public virtual Task> UpdateAsync(IndexName index, Id id, Action> configureRequest, CancellationToken cancellationToken = default) - //{ - // var descriptor = new UpdateRequestDescriptor(index, id); - // configureRequest?.Invoke(descriptor); - // return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); - //} - - // TODO: Test and introduce in a future release - //public virtual Task> UpdateAsync(IndexName index, Id id, TPartialDocument doc, CancellationToken cancellationToken = default) - //{ - // var descriptor = new UpdateRequestDescriptor(index, id); - // descriptor.Doc(doc); - // return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor, cancellationToken); - //} + /// + /// Updates a document with a script or partial document. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual UpdateResponse Update(TDocument document, TPartialDocument partialDocument, IndexName index, Id id) + { + var descriptor = new UpdateRequestDescriptor(document, index, id); + descriptor.BeforeRequest(); + return DoRequest, UpdateResponse, UpdateRequestParameters>(descriptor); + } - // TODO - Add methods to infer index and/or ID + use expressions as we know the document type. + /// + /// Updates a document with a script or partial document. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> UpdateAsync(TDocument document, TPartialDocument partialDocument, IndexName index, Id id, CancellationToken cancellationToken = default) + { + var descriptor = new UpdateRequestDescriptor(document, index, id); + descriptor.BeforeRequest(); + return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor); + } + /// + /// Updates a document with a script or partial document. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual UpdateResponse Update(IndexName index, Id id) { var descriptor = new UpdateRequestDescriptor(index, id); return DoRequest, UpdateResponse, UpdateRequestParameters>(descriptor); } + /// + /// Updates a document with a script or partial document. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual UpdateResponse Update(IndexName index, Id id, Action> configureRequest) { var descriptor = new UpdateRequestDescriptor(index, id); 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 1b16ca5d58a..861bb08cdd0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.AsyncSearch.g.cs @@ -56,6 +56,10 @@ public virtual Task StatusAsync(AsyncSearchStatusRequ return DoRequestAsync(request, 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(Elastic.Clients.Elasticsearch.Id id) { var descriptor = new AsyncSearchStatusRequestDescriptor(id); @@ -63,6 +67,20 @@ public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id return DoRequest(descriptor); } + /// + /// 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(AsyncSearchStatusRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// 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(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) { var descriptor = new AsyncSearchStatusRequestDescriptor(id); @@ -71,6 +89,20 @@ public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elasticsearch.Id return DoRequest(descriptor); } + /// + /// 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(AsyncSearchStatusRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, AsyncSearchStatusResponse, AsyncSearchStatusRequestParameters>(descriptor); + } + + /// + /// 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(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { var descriptor = new AsyncSearchStatusRequestDescriptor(id); @@ -79,6 +111,10 @@ public virtual AsyncSearchStatusResponse Status(Elastic.Clients.Elast return DoRequest, AsyncSearchStatusResponse, AsyncSearchStatusRequestParameters>(descriptor); } + /// + /// Retrieves the status of a previously submitted async search request given its ID. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { var descriptor = new AsyncSearchStatusRequestDescriptor(id); @@ -86,6 +122,20 @@ public virtual Task StatusAsync(Elastic.Clients.Elast return DoRequestAsync(descriptor); } + /// + /// Retrieves the status of a previously submitted async search request given its ID. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task StatusAsync(AsyncSearchStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Retrieves the status of a previously submitted async search request given its ID. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new AsyncSearchStatusRequestDescriptor(id); @@ -94,6 +144,20 @@ public virtual Task StatusAsync(Elastic.Clients.Elast return DoRequestAsync(descriptor); } + /// + /// Retrieves the status of a previously submitted async search request given its ID. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task StatusAsync(AsyncSearchStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, AsyncSearchStatusResponse, AsyncSearchStatusRequestParameters>(descriptor); + } + + /// + /// Retrieves the status of a previously submitted async search request given its ID. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task StatusAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new AsyncSearchStatusRequestDescriptor(id); @@ -122,6 +186,10 @@ public virtual Task DeleteAsync(DeleteAsyncSearchRequ return DoRequestAsync(request, cancellationToken); } + /// + /// 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(Elastic.Clients.Elasticsearch.Id id) { var descriptor = new DeleteAsyncSearchRequestDescriptor(id); @@ -129,6 +197,20 @@ public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id return DoRequest(descriptor); } + /// + /// 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(DeleteAsyncSearchRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// 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(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) { var descriptor = new DeleteAsyncSearchRequestDescriptor(id); @@ -137,6 +219,20 @@ public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elasticsearch.Id return DoRequest(descriptor); } + /// + /// 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(DeleteAsyncSearchRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, DeleteAsyncSearchResponse, DeleteAsyncSearchRequestParameters>(descriptor); + } + + /// + /// 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(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { var descriptor = new DeleteAsyncSearchRequestDescriptor(id); @@ -145,6 +241,10 @@ public virtual DeleteAsyncSearchResponse Delete(Elastic.Clients.Elast return DoRequest, DeleteAsyncSearchResponse, DeleteAsyncSearchRequestParameters>(descriptor); } + /// + /// 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 Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { var descriptor = new DeleteAsyncSearchRequestDescriptor(id); @@ -152,6 +252,20 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast return DoRequestAsync(descriptor); } + /// + /// 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 Task DeleteAsync(DeleteAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// 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 Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new DeleteAsyncSearchRequestDescriptor(id); @@ -160,6 +274,20 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast return DoRequestAsync(descriptor); } + /// + /// 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 Task DeleteAsync(DeleteAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteAsyncSearchResponse, DeleteAsyncSearchRequestParameters>(descriptor); + } + + /// + /// 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 Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new DeleteAsyncSearchRequestDescriptor(id); @@ -188,6 +316,10 @@ public virtual Task> GetAsync(GetAs return DoRequestAsync, GetAsyncSearchRequestParameters>(request, 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(Elastic.Clients.Elasticsearch.Id id) { var descriptor = new GetAsyncSearchRequestDescriptor(id); @@ -195,6 +327,20 @@ public virtual GetAsyncSearchResponse Get(Elastic.Clients. return DoRequest, GetAsyncSearchResponse, GetAsyncSearchRequestParameters>(descriptor); } + /// + /// 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(GetAsyncSearchRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, GetAsyncSearchResponse, GetAsyncSearchRequestParameters>(descriptor); + } + + /// + /// 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(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { var descriptor = new GetAsyncSearchRequestDescriptor(id); @@ -203,6 +349,10 @@ public virtual GetAsyncSearchResponse Get(Elastic.Clients. return DoRequest, GetAsyncSearchResponse, GetAsyncSearchRequestParameters>(descriptor); } + /// + /// Retrieves the results of a previously submitted async search request given its ID. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { var descriptor = new GetAsyncSearchRequestDescriptor(id); @@ -210,6 +360,20 @@ public virtual Task> GetAsync(Elast return DoRequestAsync, GetAsyncSearchResponse, GetAsyncSearchRequestParameters>(descriptor); } + /// + /// Retrieves the results of a previously submitted async search request given its ID. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetAsync(GetAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, GetAsyncSearchResponse, GetAsyncSearchRequestParameters>(descriptor); + } + + /// + /// Retrieves the results of a previously submitted async search request given its ID. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new GetAsyncSearchRequestDescriptor(id); @@ -238,6 +402,10 @@ public virtual Task> SubmitAsync return DoRequestAsync, SubmitAsyncSearchRequestParameters>(request, cancellationToken); } + /// + /// Executes a search request asynchronously. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual SubmitAsyncSearchResponse Submit() { var descriptor = new SubmitAsyncSearchRequestDescriptor(); @@ -245,6 +413,20 @@ public virtual SubmitAsyncSearchResponse Submit() return DoRequest, SubmitAsyncSearchResponse, SubmitAsyncSearchRequestParameters>(descriptor); } + /// + /// Executes a search request asynchronously. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual SubmitAsyncSearchResponse Submit(SubmitAsyncSearchRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, SubmitAsyncSearchResponse, SubmitAsyncSearchRequestParameters>(descriptor); + } + + /// + /// Executes a search request asynchronously. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual SubmitAsyncSearchResponse Submit(Action> configureRequest) { var descriptor = new SubmitAsyncSearchRequestDescriptor(); @@ -253,6 +435,10 @@ public virtual SubmitAsyncSearchResponse Submit(Action, SubmitAsyncSearchResponse, SubmitAsyncSearchRequestParameters>(descriptor); } + /// + /// Executes a search request asynchronously. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> SubmitAsync(CancellationToken cancellationToken = default) { var descriptor = new SubmitAsyncSearchRequestDescriptor(); @@ -260,6 +446,20 @@ public virtual Task> SubmitAsync return DoRequestAsync, SubmitAsyncSearchResponse, SubmitAsyncSearchRequestParameters>(descriptor); } + /// + /// Executes a search request asynchronously. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> SubmitAsync(SubmitAsyncSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, SubmitAsyncSearchResponse, SubmitAsyncSearchRequestParameters>(descriptor); + } + + /// + /// Executes a search request asynchronously. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> SubmitAsync(Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new SubmitAsyncSearchRequestDescriptor(); 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 4c63cb22112..42642ff79e5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Cluster.g.cs @@ -56,6 +56,10 @@ public virtual Task HealthAsync(HealthRequest request, Cancellat return DoRequestAsync(request, cancellationToken); } + /// + /// Returns basic information about the health of the cluster. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual HealthResponse Health() { var descriptor = new HealthRequestDescriptor(); @@ -63,6 +67,20 @@ public virtual HealthResponse Health() return DoRequest(descriptor); } + /// + /// Returns basic information about the health of the cluster. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual HealthResponse Health(HealthRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns basic information about the health of the cluster. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual HealthResponse Health(Action configureRequest) { var descriptor = new HealthRequestDescriptor(); @@ -71,6 +89,20 @@ public virtual HealthResponse Health(Action configureRe return DoRequest(descriptor); } + /// + /// Returns basic information about the health of the cluster. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual HealthResponse Health(HealthRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, HealthResponse, HealthRequestParameters>(descriptor); + } + + /// + /// Returns basic information about the health of the cluster. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual HealthResponse Health(Action> configureRequest) { var descriptor = new HealthRequestDescriptor(); @@ -79,6 +111,10 @@ public virtual HealthResponse Health(Action, HealthResponse, HealthRequestParameters>(descriptor); } + /// + /// Returns basic information about the health of the cluster. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task HealthAsync(CancellationToken cancellationToken = default) { var descriptor = new HealthRequestDescriptor(); @@ -86,6 +122,20 @@ public virtual Task HealthAsync(CancellationToken cancellationTo return DoRequestAsync(descriptor); } + /// + /// Returns basic information about the health of the cluster. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task HealthAsync(HealthRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns basic information about the health of the cluster. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task HealthAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new HealthRequestDescriptor(); @@ -94,6 +144,20 @@ public virtual Task HealthAsync(Action return DoRequestAsync(descriptor); } + /// + /// Returns basic information about the health of the cluster. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task HealthAsync(HealthRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, HealthResponse, HealthRequestParameters>(descriptor); + } + + /// + /// Returns basic information about the health of the cluster. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task HealthAsync(Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new HealthRequestDescriptor(); 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 7ae910ae6f0..07006841c3f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Eql.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Eql.g.cs @@ -56,6 +56,10 @@ public virtual Task DeleteAsync(EqlDeleteRequest request, Can return DoRequestAsync(request, cancellationToken); } + /// + /// Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual EqlDeleteResponse Delete(Elastic.Clients.Elasticsearch.Id id) { var descriptor = new EqlDeleteRequestDescriptor(id); @@ -63,6 +67,20 @@ public virtual EqlDeleteResponse Delete(Elastic.Clients.Elasticsearch.Id id) return DoRequest(descriptor); } + /// + /// Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual EqlDeleteResponse Delete(EqlDeleteRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual EqlDeleteResponse Delete(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) { var descriptor = new EqlDeleteRequestDescriptor(id); @@ -71,6 +89,20 @@ public virtual EqlDeleteResponse Delete(Elastic.Clients.Elasticsearch.Id id, Act return DoRequest(descriptor); } + /// + /// Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual EqlDeleteResponse Delete(EqlDeleteRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, EqlDeleteResponse, EqlDeleteRequestParameters>(descriptor); + } + + /// + /// Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual EqlDeleteResponse Delete(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { var descriptor = new EqlDeleteRequestDescriptor(id); @@ -79,6 +111,10 @@ public virtual EqlDeleteResponse Delete(Elastic.Clients.Elasticsearch return DoRequest, EqlDeleteResponse, EqlDeleteRequestParameters>(descriptor); } + /// + /// Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { var descriptor = new EqlDeleteRequestDescriptor(id); @@ -86,6 +122,20 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch return DoRequestAsync(descriptor); } + /// + /// Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(EqlDeleteRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new EqlDeleteRequestDescriptor(id); @@ -94,6 +144,20 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch return DoRequestAsync(descriptor); } + /// + /// Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(EqlDeleteRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, EqlDeleteResponse, EqlDeleteRequestParameters>(descriptor); + } + + /// + /// Deletes an async EQL search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new EqlDeleteRequestDescriptor(id); @@ -122,6 +186,10 @@ public virtual Task> GetAsync(EqlGetRequest reque return DoRequestAsync, EqlGetRequestParameters>(request, cancellationToken); } + /// + /// Returns async results from previously executed Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual EqlGetResponse Get(Elastic.Clients.Elasticsearch.Id id) { var descriptor = new EqlGetRequestDescriptor(id); @@ -129,6 +197,20 @@ public virtual EqlGetResponse Get(Elastic.Clients.Elasticsearch. return DoRequest, EqlGetRequestParameters>(descriptor); } + /// + /// Returns async results from previously executed Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual EqlGetResponse Get(EqlGetRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, EqlGetRequestParameters>(descriptor); + } + + /// + /// Returns async results from previously executed Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual EqlGetResponse Get(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) { var descriptor = new EqlGetRequestDescriptor(id); @@ -137,6 +219,10 @@ public virtual EqlGetResponse Get(Elastic.Clients.Elasticsearch. return DoRequest, EqlGetRequestParameters>(descriptor); } + /// + /// Returns async results from previously executed Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { var descriptor = new EqlGetRequestDescriptor(id); @@ -144,6 +230,20 @@ public virtual Task> GetAsync(Elastic.Clients.Ela return DoRequestAsync, EqlGetRequestParameters>(descriptor); } + /// + /// Returns async results from previously executed Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetAsync(EqlGetRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, EqlGetRequestParameters>(descriptor); + } + + /// + /// Returns async results from previously executed Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new EqlGetRequestDescriptor(id); @@ -172,6 +272,10 @@ public virtual Task> SearchAsync(EqlSearchRequ return DoRequestAsync, EqlSearchRequestParameters>(request, cancellationToken); } + /// + /// Returns results matching a query expressed in Event Query Language (EQL) + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual EqlSearchResponse Search(Elastic.Clients.Elasticsearch.Indices indices) { var descriptor = new EqlSearchRequestDescriptor(indices); @@ -179,6 +283,20 @@ public virtual EqlSearchResponse Search(Elastic.Clients.Elastics return DoRequest, EqlSearchRequestParameters>(descriptor); } + /// + /// Returns results matching a query expressed in Event Query Language (EQL) + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual EqlSearchResponse Search(EqlSearchRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, EqlSearchRequestParameters>(descriptor); + } + + /// + /// Returns results matching a query expressed in Event Query Language (EQL) + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual EqlSearchResponse Search(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) { var descriptor = new EqlSearchRequestDescriptor(indices); @@ -187,6 +305,10 @@ public virtual EqlSearchResponse Search(Elastic.Clients.Elastics return DoRequest, EqlSearchRequestParameters>(descriptor); } + /// + /// Returns results matching a query expressed in Event Query Language (EQL) + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> SearchAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { var descriptor = new EqlSearchRequestDescriptor(indices); @@ -194,6 +316,20 @@ public virtual Task> SearchAsync(Elastic.Clien return DoRequestAsync, EqlSearchRequestParameters>(descriptor); } + /// + /// Returns results matching a query expressed in Event Query Language (EQL) + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> SearchAsync(EqlSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, EqlSearchRequestParameters>(descriptor); + } + + /// + /// Returns results matching a query expressed in Event Query Language (EQL) + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> SearchAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new EqlSearchRequestDescriptor(indices); @@ -222,6 +358,10 @@ public virtual Task GetStatusAsync(GetEqlStatusRequest req return DoRequestAsync(request, cancellationToken); } + /// + /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id id) { var descriptor = new GetEqlStatusRequestDescriptor(id); @@ -229,6 +369,20 @@ public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id i return DoRequest(descriptor); } + /// + /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) { var descriptor = new GetEqlStatusRequestDescriptor(id); @@ -237,6 +391,20 @@ public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id i return DoRequest(descriptor); } + /// + /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetEqlStatusResponse GetStatus(GetEqlStatusRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, GetEqlStatusResponse, GetEqlStatusRequestParameters>(descriptor); + } + + /// + /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { var descriptor = new GetEqlStatusRequestDescriptor(id); @@ -245,6 +413,10 @@ public virtual GetEqlStatusResponse GetStatus(Elastic.Clients.Elastic return DoRequest, GetEqlStatusResponse, GetEqlStatusRequestParameters>(descriptor); } + /// + /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { var descriptor = new GetEqlStatusRequestDescriptor(id); @@ -252,6 +424,20 @@ public virtual Task GetStatusAsync(Elastic.Clients.Elastic return DoRequestAsync(descriptor); } + /// + /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetStatusAsync(GetEqlStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new GetEqlStatusRequestDescriptor(id); @@ -260,6 +446,20 @@ public virtual Task GetStatusAsync(Elastic.Clients.Elastic return DoRequestAsync(descriptor); } + /// + /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetStatusAsync(GetEqlStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, GetEqlStatusResponse, GetEqlStatusRequestParameters>(descriptor); + } + + /// + /// Returns the status of a previously submitted async or stored Event Query Language (EQL) search + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetStatusAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new GetEqlStatusRequestDescriptor(id); 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 b749abb041d..5689a0d22fa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Indices.g.cs @@ -56,6 +56,10 @@ public virtual Task CloneAsync(CloneIndexRequest request, Ca return DoRequestAsync(request, cancellationToken); } + /// + /// Clones an index + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Name target) { var descriptor = new CloneIndexRequestDescriptor(index, target); @@ -63,6 +67,20 @@ public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch.IndexName return DoRequest(descriptor); } + /// + /// Clones an index + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual CloneIndexResponse Clone(CloneIndexRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Clones an index + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Name target, Action configureRequest) { var descriptor = new CloneIndexRequestDescriptor(index, target); @@ -71,6 +89,10 @@ public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch.IndexName return DoRequest(descriptor); } + /// + /// Clones an index + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch.Name target) { var descriptor = new CloneIndexRequestDescriptor(typeof(TDocument), target); @@ -78,6 +100,10 @@ public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch return DoRequest, CloneIndexResponse, CloneIndexRequestParameters>(descriptor); } + /// + /// Clones an index + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch.Name target, Action> configureRequest) { var descriptor = new CloneIndexRequestDescriptor(typeof(TDocument), target); @@ -86,6 +112,20 @@ public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch return DoRequest, CloneIndexResponse, CloneIndexRequestParameters>(descriptor); } + /// + /// Clones an index + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual CloneIndexResponse Clone(CloneIndexRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, CloneIndexResponse, CloneIndexRequestParameters>(descriptor); + } + + /// + /// Clones an index + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Name target, Action> configureRequest) { var descriptor = new CloneIndexRequestDescriptor(index, target); @@ -94,6 +134,10 @@ public virtual CloneIndexResponse Clone(Elastic.Clients.Elasticsearch return DoRequest, CloneIndexResponse, CloneIndexRequestParameters>(descriptor); } + /// + /// Clones an index + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Name target, CancellationToken cancellationToken = default) { var descriptor = new CloneIndexRequestDescriptor(index, target); @@ -101,6 +145,20 @@ public virtual Task CloneAsync(Elastic.Clients.Elasticsearch return DoRequestAsync(descriptor); } + /// + /// Clones an index + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CloneAsync(CloneIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Clones an index + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Name target, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new CloneIndexRequestDescriptor(index, target); @@ -109,6 +167,10 @@ public virtual Task CloneAsync(Elastic.Clients.Elasticsearch return DoRequestAsync(descriptor); } + /// + /// Clones an index + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.Name target, CancellationToken cancellationToken = default) { var descriptor = new CloneIndexRequestDescriptor(typeof(TDocument), target); @@ -116,6 +178,10 @@ public virtual Task CloneAsync(Elastic.Clients.El return DoRequestAsync, CloneIndexResponse, CloneIndexRequestParameters>(descriptor); } + /// + /// Clones an index + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.Name target, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new CloneIndexRequestDescriptor(typeof(TDocument), target); @@ -124,6 +190,20 @@ public virtual Task CloneAsync(Elastic.Clients.El return DoRequestAsync, CloneIndexResponse, CloneIndexRequestParameters>(descriptor); } + /// + /// Clones an index + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CloneAsync(CloneIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, CloneIndexResponse, CloneIndexRequestParameters>(descriptor); + } + + /// + /// Clones an index + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task CloneAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Name target, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new CloneIndexRequestDescriptor(index, target); @@ -152,6 +232,10 @@ public virtual Task CloseAsync(CloseIndexRequest request, Ca return DoRequestAsync(request, cancellationToken); } + /// + /// Closes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices indices) { var descriptor = new CloseIndexRequestDescriptor(indices); @@ -159,6 +243,20 @@ public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices in return DoRequest(descriptor); } + /// + /// Closes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual CloseIndexResponse Close(CloseIndexRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Closes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) { var descriptor = new CloseIndexRequestDescriptor(indices); @@ -167,6 +265,20 @@ public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices in return DoRequest(descriptor); } + /// + /// Closes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual CloseIndexResponse Close(CloseIndexRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, CloseIndexResponse, CloseIndexRequestParameters>(descriptor); + } + + /// + /// Closes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) { var descriptor = new CloseIndexRequestDescriptor(indices); @@ -175,6 +287,10 @@ public virtual CloseIndexResponse Close(Elastic.Clients.Elasticsearch return DoRequest, CloseIndexResponse, CloseIndexRequestParameters>(descriptor); } + /// + /// Closes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { var descriptor = new CloseIndexRequestDescriptor(indices); @@ -182,6 +298,20 @@ public virtual Task CloseAsync(Elastic.Clients.Elasticsearch return DoRequestAsync(descriptor); } + /// + /// Closes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CloseAsync(CloseIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Closes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new CloseIndexRequestDescriptor(indices); @@ -190,6 +320,20 @@ public virtual Task CloseAsync(Elastic.Clients.Elasticsearch return DoRequestAsync(descriptor); } + /// + /// Closes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CloseAsync(CloseIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, CloseIndexResponse, CloseIndexRequestParameters>(descriptor); + } + + /// + /// Closes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task CloseAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new CloseIndexRequestDescriptor(indices); @@ -218,6 +362,10 @@ public virtual Task CreateDataStreamAsync(CreateDataSt return DoRequestAsync(request, cancellationToken); } + /// + /// Creates a data stream + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual CreateDataStreamResponse CreateDataStream(Elastic.Clients.Elasticsearch.DataStreamName name) { var descriptor = new CreateDataStreamRequestDescriptor(name); @@ -225,6 +373,20 @@ public virtual CreateDataStreamResponse CreateDataStream(Elastic.Clients.Elastic return DoRequest(descriptor); } + /// + /// Creates a data stream + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual CreateDataStreamResponse CreateDataStream(CreateDataStreamRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Creates a data stream + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual CreateDataStreamResponse CreateDataStream(Elastic.Clients.Elasticsearch.DataStreamName name, Action configureRequest) { var descriptor = new CreateDataStreamRequestDescriptor(name); @@ -233,6 +395,10 @@ public virtual CreateDataStreamResponse CreateDataStream(Elastic.Clients.Elastic return DoRequest(descriptor); } + /// + /// Creates a data stream + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task CreateDataStreamAsync(Elastic.Clients.Elasticsearch.DataStreamName name, CancellationToken cancellationToken = default) { var descriptor = new CreateDataStreamRequestDescriptor(name); @@ -240,6 +406,20 @@ public virtual Task CreateDataStreamAsync(Elastic.Clie return DoRequestAsync(descriptor); } + /// + /// Creates a data stream + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateDataStreamAsync(CreateDataStreamRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Creates a data stream + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task CreateDataStreamAsync(Elastic.Clients.Elasticsearch.DataStreamName name, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new CreateDataStreamRequestDescriptor(name); @@ -268,6 +448,10 @@ public virtual Task CreateAsync(CreateIndexRequest request, return DoRequestAsync(request, cancellationToken); } + /// + /// Creates an index with optional settings and mappings. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexName index) { var descriptor = new CreateIndexRequestDescriptor(index); @@ -275,6 +459,20 @@ public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexNam return DoRequest(descriptor); } + /// + /// Creates an index with optional settings and mappings. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual CreateIndexResponse Create(CreateIndexRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Creates an index with optional settings and mappings. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) { var descriptor = new CreateIndexRequestDescriptor(index); @@ -283,6 +481,10 @@ public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexNam return DoRequest(descriptor); } + /// + /// Creates an index with optional settings and mappings. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual CreateIndexResponse Create() { var descriptor = new CreateIndexRequestDescriptor(typeof(TDocument)); @@ -290,6 +492,10 @@ public virtual CreateIndexResponse Create() return DoRequest, CreateIndexResponse, CreateIndexRequestParameters>(descriptor); } + /// + /// Creates an index with optional settings and mappings. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual CreateIndexResponse Create(Action> configureRequest) { var descriptor = new CreateIndexRequestDescriptor(typeof(TDocument)); @@ -298,6 +504,20 @@ public virtual CreateIndexResponse Create(Action, CreateIndexResponse, CreateIndexRequestParameters>(descriptor); } + /// + /// Creates an index with optional settings and mappings. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual CreateIndexResponse Create(CreateIndexRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, CreateIndexResponse, CreateIndexRequestParameters>(descriptor); + } + + /// + /// Creates an index with optional settings and mappings. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) { var descriptor = new CreateIndexRequestDescriptor(index); @@ -306,6 +526,10 @@ public virtual CreateIndexResponse Create(Elastic.Clients.Elasticsear return DoRequest, CreateIndexResponse, CreateIndexRequestParameters>(descriptor); } + /// + /// Creates an index with optional settings and mappings. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { var descriptor = new CreateIndexRequestDescriptor(index); @@ -313,6 +537,20 @@ public virtual Task CreateAsync(Elastic.Clients.Elasticsear return DoRequestAsync(descriptor); } + /// + /// Creates an index with optional settings and mappings. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateAsync(CreateIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Creates an index with optional settings and mappings. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new CreateIndexRequestDescriptor(index); @@ -321,6 +559,10 @@ public virtual Task CreateAsync(Elastic.Clients.Elasticsear return DoRequestAsync(descriptor); } + /// + /// Creates an index with optional settings and mappings. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task CreateAsync(CancellationToken cancellationToken = default) { var descriptor = new CreateIndexRequestDescriptor(typeof(TDocument)); @@ -328,6 +570,10 @@ public virtual Task CreateAsync(CancellationToke return DoRequestAsync, CreateIndexResponse, CreateIndexRequestParameters>(descriptor); } + /// + /// Creates an index with optional settings and mappings. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task CreateAsync(Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new CreateIndexRequestDescriptor(typeof(TDocument)); @@ -336,6 +582,20 @@ public virtual Task CreateAsync(Action, CreateIndexResponse, CreateIndexRequestParameters>(descriptor); } + /// + /// Creates an index with optional settings and mappings. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CreateAsync(CreateIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, CreateIndexResponse, CreateIndexRequestParameters>(descriptor); + } + + /// + /// Creates an index with optional settings and mappings. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task CreateAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new CreateIndexRequestDescriptor(index); @@ -364,6 +624,10 @@ public virtual Task DeleteAliasAsync(DeleteAliasRequest req return DoRequestAsync(request, cancellationToken); } + /// + /// Deletes an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name) { var descriptor = new DeleteAliasRequestDescriptor(indices, name); @@ -371,14 +635,42 @@ public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasticsearch.Ind return DoRequest(descriptor); } - public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name, Action configureRequest) + /// + /// Deletes an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteAliasResponse DeleteAlias(DeleteAliasRequestDescriptor descriptor) { - var descriptor = new DeleteAliasRequestDescriptor(indices, name); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Deletes an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name, Action configureRequest) + { + var descriptor = new DeleteAliasRequestDescriptor(indices, name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return DoRequest(descriptor); } + /// + /// Deletes an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteAliasResponse DeleteAlias(DeleteAliasRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, DeleteAliasResponse, DeleteAliasRequestParameters>(descriptor); + } + + /// + /// Deletes an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name, Action> configureRequest) { var descriptor = new DeleteAliasRequestDescriptor(indices, name); @@ -387,6 +679,10 @@ public virtual DeleteAliasResponse DeleteAlias(Elastic.Clients.Elasti return DoRequest, DeleteAliasResponse, DeleteAliasRequestParameters>(descriptor); } + /// + /// Deletes an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { var descriptor = new DeleteAliasRequestDescriptor(indices, name); @@ -394,6 +690,20 @@ public virtual Task DeleteAliasAsync(Elastic.Clients.Elasti return DoRequestAsync(descriptor); } + /// + /// Deletes an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAliasAsync(DeleteAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Deletes an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new DeleteAliasRequestDescriptor(indices, name); @@ -402,6 +712,20 @@ public virtual Task DeleteAliasAsync(Elastic.Clients.Elasti return DoRequestAsync(descriptor); } + /// + /// Deletes an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAliasAsync(DeleteAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteAliasResponse, DeleteAliasRequestParameters>(descriptor); + } + + /// + /// Deletes an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeleteAliasAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Names name, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new DeleteAliasRequestDescriptor(indices, name); @@ -430,6 +754,10 @@ public virtual Task DeleteDataStreamAsync(DeleteDataSt return DoRequestAsync(request, cancellationToken); } + /// + /// Deletes a data stream. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual DeleteDataStreamResponse DeleteDataStream(Elastic.Clients.Elasticsearch.DataStreamNames name) { var descriptor = new DeleteDataStreamRequestDescriptor(name); @@ -437,6 +765,20 @@ public virtual DeleteDataStreamResponse DeleteDataStream(Elastic.Clients.Elastic return DoRequest(descriptor); } + /// + /// Deletes a data stream. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteDataStreamResponse DeleteDataStream(DeleteDataStreamRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Deletes a data stream. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual DeleteDataStreamResponse DeleteDataStream(Elastic.Clients.Elasticsearch.DataStreamNames name, Action configureRequest) { var descriptor = new DeleteDataStreamRequestDescriptor(name); @@ -445,6 +787,10 @@ public virtual DeleteDataStreamResponse DeleteDataStream(Elastic.Clients.Elastic return DoRequest(descriptor); } + /// + /// Deletes a data stream. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeleteDataStreamAsync(Elastic.Clients.Elasticsearch.DataStreamNames name, CancellationToken cancellationToken = default) { var descriptor = new DeleteDataStreamRequestDescriptor(name); @@ -452,6 +798,20 @@ public virtual Task DeleteDataStreamAsync(Elastic.Clie return DoRequestAsync(descriptor); } + /// + /// Deletes a data stream. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteDataStreamAsync(DeleteDataStreamRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Deletes a data stream. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeleteDataStreamAsync(Elastic.Clients.Elasticsearch.DataStreamNames name, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new DeleteDataStreamRequestDescriptor(name); @@ -480,6 +840,10 @@ public virtual Task DeleteAsync(DeleteIndexRequest request, return DoRequestAsync(request, cancellationToken); } + /// + /// Deletes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual DeleteIndexResponse Delete(Elastic.Clients.Elasticsearch.Indices indices) { var descriptor = new DeleteIndexRequestDescriptor(indices); @@ -487,6 +851,20 @@ public virtual DeleteIndexResponse Delete(Elastic.Clients.Elasticsearch.Indices return DoRequest(descriptor); } + /// + /// Deletes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteIndexResponse Delete(DeleteIndexRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Deletes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual DeleteIndexResponse Delete(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) { var descriptor = new DeleteIndexRequestDescriptor(indices); @@ -495,6 +873,20 @@ public virtual DeleteIndexResponse Delete(Elastic.Clients.Elasticsearch.Indices return DoRequest(descriptor); } + /// + /// Deletes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteIndexResponse Delete(DeleteIndexRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, DeleteIndexResponse, DeleteIndexRequestParameters>(descriptor); + } + + /// + /// Deletes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual DeleteIndexResponse Delete(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) { var descriptor = new DeleteIndexRequestDescriptor(indices); @@ -503,6 +895,10 @@ public virtual DeleteIndexResponse Delete(Elastic.Clients.Elasticsear return DoRequest, DeleteIndexResponse, DeleteIndexRequestParameters>(descriptor); } + /// + /// Deletes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { var descriptor = new DeleteIndexRequestDescriptor(indices); @@ -510,6 +906,20 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsear return DoRequestAsync(descriptor); } + /// + /// Deletes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(DeleteIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Deletes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new DeleteIndexRequestDescriptor(indices); @@ -518,6 +928,20 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsear return DoRequestAsync(descriptor); } + /// + /// Deletes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(DeleteIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteIndexResponse, DeleteIndexRequestParameters>(descriptor); + } + + /// + /// Deletes an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new DeleteIndexRequestDescriptor(indices); @@ -546,6 +970,10 @@ public virtual Task DeleteIndexTemplateAsync(Delete return DoRequestAsync(request, cancellationToken); } + /// + /// Deletes an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual DeleteIndexTemplateResponse DeleteIndexTemplate(Elastic.Clients.Elasticsearch.Names name) { var descriptor = new DeleteIndexTemplateRequestDescriptor(name); @@ -553,6 +981,20 @@ public virtual DeleteIndexTemplateResponse DeleteIndexTemplate(Elastic.Clients.E return DoRequest(descriptor); } + /// + /// Deletes an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteIndexTemplateResponse DeleteIndexTemplate(DeleteIndexTemplateRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Deletes an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual DeleteIndexTemplateResponse DeleteIndexTemplate(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) { var descriptor = new DeleteIndexTemplateRequestDescriptor(name); @@ -561,6 +1003,10 @@ public virtual DeleteIndexTemplateResponse DeleteIndexTemplate(Elastic.Clients.E return DoRequest(descriptor); } + /// + /// Deletes an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeleteIndexTemplateAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { var descriptor = new DeleteIndexTemplateRequestDescriptor(name); @@ -568,6 +1014,20 @@ public virtual Task DeleteIndexTemplateAsync(Elasti return DoRequestAsync(descriptor); } + /// + /// Deletes an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteIndexTemplateAsync(DeleteIndexTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Deletes an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeleteIndexTemplateAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new DeleteIndexTemplateRequestDescriptor(name); @@ -596,6 +1056,10 @@ public virtual Task DeleteTemplateAsync(DeleteTemplateRe return DoRequestAsync(request, cancellationToken); } + /// + /// Deletes an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual DeleteTemplateResponse DeleteTemplate(Elastic.Clients.Elasticsearch.Name name) { var descriptor = new DeleteTemplateRequestDescriptor(name); @@ -603,6 +1067,20 @@ public virtual DeleteTemplateResponse DeleteTemplate(Elastic.Clients.Elasticsear return DoRequest(descriptor); } + /// + /// Deletes an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteTemplateResponse DeleteTemplate(DeleteTemplateRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Deletes an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual DeleteTemplateResponse DeleteTemplate(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) { var descriptor = new DeleteTemplateRequestDescriptor(name); @@ -611,6 +1089,10 @@ public virtual DeleteTemplateResponse DeleteTemplate(Elastic.Clients.Elasticsear return DoRequest(descriptor); } + /// + /// Deletes an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeleteTemplateAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { var descriptor = new DeleteTemplateRequestDescriptor(name); @@ -618,6 +1100,20 @@ public virtual Task DeleteTemplateAsync(Elastic.Clients. return DoRequestAsync(descriptor); } + /// + /// Deletes an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteTemplateAsync(DeleteTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Deletes an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeleteTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new DeleteTemplateRequestDescriptor(name); @@ -646,6 +1142,10 @@ public virtual Task ExistsAliasAsync(ExistsAliasRequest req return DoRequestAsync(request, cancellationToken); } + /// + /// Returns information about whether a particular alias exists. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasticsearch.Names name) { var descriptor = new ExistsAliasRequestDescriptor(name); @@ -653,6 +1153,20 @@ public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasticsearch.Nam return DoRequest(descriptor); } + /// + /// Returns information about whether a particular alias exists. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExistsAliasResponse ExistsAlias(ExistsAliasRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns information about whether a particular alias exists. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) { var descriptor = new ExistsAliasRequestDescriptor(name); @@ -661,6 +1175,20 @@ public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasticsearch.Nam return DoRequest(descriptor); } + /// + /// Returns information about whether a particular alias exists. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExistsAliasResponse ExistsAlias(ExistsAliasRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, ExistsAliasResponse, ExistsAliasRequestParameters>(descriptor); + } + + /// + /// Returns information about whether a particular alias exists. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasticsearch.Names name, Action> configureRequest) { var descriptor = new ExistsAliasRequestDescriptor(name); @@ -669,6 +1197,10 @@ public virtual ExistsAliasResponse ExistsAlias(Elastic.Clients.Elasti return DoRequest, ExistsAliasResponse, ExistsAliasRequestParameters>(descriptor); } + /// + /// Returns information about whether a particular alias exists. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ExistsAliasAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { var descriptor = new ExistsAliasRequestDescriptor(name); @@ -676,14 +1208,42 @@ public virtual Task ExistsAliasAsync(Elastic.Clients.Elasti return DoRequestAsync(descriptor); } - public virtual Task ExistsAliasAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) + /// + /// Returns information about whether a particular alias exists. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsAliasAsync(ExistsAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new ExistsAliasRequestDescriptor(name); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns information about whether a particular alias exists. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsAliasAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ExistsAliasRequestDescriptor(name); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return DoRequestAsync(descriptor); } + /// + /// Returns information about whether a particular alias exists. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsAliasAsync(ExistsAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsAliasResponse, ExistsAliasRequestParameters>(descriptor); + } + + /// + /// Returns information about whether a particular alias exists. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ExistsAliasAsync(Elastic.Clients.Elasticsearch.Names name, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new ExistsAliasRequestDescriptor(name); @@ -712,6 +1272,10 @@ public virtual Task ExistsIndexTemplateAsync(Exists return DoRequestAsync(request, cancellationToken); } + /// + /// Returns information about whether a particular index template exists. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ExistsIndexTemplateResponse ExistsIndexTemplate(Elastic.Clients.Elasticsearch.Name name) { var descriptor = new ExistsIndexTemplateRequestDescriptor(name); @@ -719,6 +1283,20 @@ public virtual ExistsIndexTemplateResponse ExistsIndexTemplate(Elastic.Clients.E return DoRequest(descriptor); } + /// + /// Returns information about whether a particular index template exists. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExistsIndexTemplateResponse ExistsIndexTemplate(ExistsIndexTemplateRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns information about whether a particular index template exists. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ExistsIndexTemplateResponse ExistsIndexTemplate(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) { var descriptor = new ExistsIndexTemplateRequestDescriptor(name); @@ -727,6 +1305,10 @@ public virtual ExistsIndexTemplateResponse ExistsIndexTemplate(Elastic.Clients.E return DoRequest(descriptor); } + /// + /// Returns information about whether a particular index template exists. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ExistsIndexTemplateAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { var descriptor = new ExistsIndexTemplateRequestDescriptor(name); @@ -734,6 +1316,20 @@ public virtual Task ExistsIndexTemplateAsync(Elasti return DoRequestAsync(descriptor); } + /// + /// Returns information about whether a particular index template exists. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsIndexTemplateAsync(ExistsIndexTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns information about whether a particular index template exists. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ExistsIndexTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new ExistsIndexTemplateRequestDescriptor(name); @@ -762,6 +1358,10 @@ public virtual Task ExistsAsync(ExistsRequest request, Cancellat return DoRequestAsync(request, cancellationToken); } + /// + /// Returns information about whether a particular index exists. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Indices indices) { var descriptor = new ExistsRequestDescriptor(indices); @@ -769,6 +1369,20 @@ public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Indices indic return DoRequest(descriptor); } + /// + /// Returns information about whether a particular index exists. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExistsResponse Exists(ExistsRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns information about whether a particular index exists. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) { var descriptor = new ExistsRequestDescriptor(indices); @@ -777,6 +1391,20 @@ public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Indices indic return DoRequest(descriptor); } + /// + /// Returns information about whether a particular index exists. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExistsResponse Exists(ExistsRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); + } + + /// + /// Returns information about whether a particular index exists. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) { var descriptor = new ExistsRequestDescriptor(indices); @@ -785,6 +1413,10 @@ public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.In return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); } + /// + /// Returns information about whether a particular index exists. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { var descriptor = new ExistsRequestDescriptor(indices); @@ -792,6 +1424,20 @@ public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.In return DoRequestAsync(descriptor); } + /// + /// Returns information about whether a particular index exists. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsAsync(ExistsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns information about whether a particular index exists. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new ExistsRequestDescriptor(indices); @@ -800,6 +1446,20 @@ public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.In return DoRequestAsync(descriptor); } + /// + /// Returns information about whether a particular index exists. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsAsync(ExistsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor); + } + + /// + /// Returns information about whether a particular index exists. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new ExistsRequestDescriptor(indices); @@ -828,6 +1488,10 @@ public virtual Task ExistsTemplateAsync(ExistsTemplateRe return DoRequestAsync(request, cancellationToken); } + /// + /// Returns information about whether a particular index template exists. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ExistsTemplateResponse ExistsTemplate(Elastic.Clients.Elasticsearch.Names name) { var descriptor = new ExistsTemplateRequestDescriptor(name); @@ -835,6 +1499,20 @@ public virtual ExistsTemplateResponse ExistsTemplate(Elastic.Clients.Elasticsear return DoRequest(descriptor); } + /// + /// Returns information about whether a particular index template exists. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExistsTemplateResponse ExistsTemplate(ExistsTemplateRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns information about whether a particular index template exists. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ExistsTemplateResponse ExistsTemplate(Elastic.Clients.Elasticsearch.Names name, Action configureRequest) { var descriptor = new ExistsTemplateRequestDescriptor(name); @@ -843,6 +1521,10 @@ public virtual ExistsTemplateResponse ExistsTemplate(Elastic.Clients.Elasticsear return DoRequest(descriptor); } + /// + /// Returns information about whether a particular index template exists. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ExistsTemplateAsync(Elastic.Clients.Elasticsearch.Names name, CancellationToken cancellationToken = default) { var descriptor = new ExistsTemplateRequestDescriptor(name); @@ -850,6 +1532,20 @@ public virtual Task ExistsTemplateAsync(Elastic.Clients. return DoRequestAsync(descriptor); } + /// + /// Returns information about whether a particular index template exists. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsTemplateAsync(ExistsTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns information about whether a particular index template exists. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ExistsTemplateAsync(Elastic.Clients.Elasticsearch.Names name, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new ExistsTemplateRequestDescriptor(name); @@ -878,6 +1574,10 @@ public virtual Task FlushAsync(FlushRequest request, Cancellation return DoRequestAsync(request, cancellationToken); } + /// + /// Performs the flush operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual FlushResponse Flush() { var descriptor = new FlushRequestDescriptor(); @@ -885,6 +1585,20 @@ public virtual FlushResponse Flush() return DoRequest(descriptor); } + /// + /// Performs the flush operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual FlushResponse Flush(FlushRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Performs the flush operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual FlushResponse Flush(Action configureRequest) { var descriptor = new FlushRequestDescriptor(); @@ -893,6 +1607,20 @@ public virtual FlushResponse Flush(Action configureReque return DoRequest(descriptor); } + /// + /// Performs the flush operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual FlushResponse Flush(FlushRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, FlushResponse, FlushRequestParameters>(descriptor); + } + + /// + /// Performs the flush operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual FlushResponse Flush(Action> configureRequest) { var descriptor = new FlushRequestDescriptor(); @@ -901,6 +1629,10 @@ public virtual FlushResponse Flush(Action, FlushResponse, FlushRequestParameters>(descriptor); } + /// + /// Performs the flush operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task FlushAsync(CancellationToken cancellationToken = default) { var descriptor = new FlushRequestDescriptor(); @@ -908,6 +1640,20 @@ public virtual Task FlushAsync(CancellationToken cancellationToke return DoRequestAsync(descriptor); } + /// + /// Performs the flush operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FlushAsync(FlushRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Performs the flush operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task FlushAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new FlushRequestDescriptor(); @@ -916,6 +1662,20 @@ public virtual Task FlushAsync(Action con return DoRequestAsync(descriptor); } + /// + /// Performs the flush operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FlushAsync(FlushRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, FlushResponse, FlushRequestParameters>(descriptor); + } + + /// + /// Performs the flush operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task FlushAsync(Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new FlushRequestDescriptor(); @@ -944,6 +1704,10 @@ public virtual Task ForcemergeAsync(ForcemergeRequest reques return DoRequestAsync(request, cancellationToken); } + /// + /// Performs the force merge operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ForcemergeResponse Forcemerge() { var descriptor = new ForcemergeRequestDescriptor(); @@ -951,6 +1715,20 @@ public virtual ForcemergeResponse Forcemerge() return DoRequest(descriptor); } + /// + /// Performs the force merge operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ForcemergeResponse Forcemerge(ForcemergeRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Performs the force merge operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ForcemergeResponse Forcemerge(Action configureRequest) { var descriptor = new ForcemergeRequestDescriptor(); @@ -959,6 +1737,20 @@ public virtual ForcemergeResponse Forcemerge(Action return DoRequest(descriptor); } + /// + /// Performs the force merge operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ForcemergeResponse Forcemerge(ForcemergeRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, ForcemergeResponse, ForcemergeRequestParameters>(descriptor); + } + + /// + /// Performs the force merge operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ForcemergeResponse Forcemerge(Action> configureRequest) { var descriptor = new ForcemergeRequestDescriptor(); @@ -967,6 +1759,10 @@ public virtual ForcemergeResponse Forcemerge(Action, ForcemergeResponse, ForcemergeRequestParameters>(descriptor); } + /// + /// Performs the force merge operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ForcemergeAsync(CancellationToken cancellationToken = default) { var descriptor = new ForcemergeRequestDescriptor(); @@ -974,17 +1770,45 @@ public virtual Task ForcemergeAsync(CancellationToken cancel return DoRequestAsync(descriptor); } - public virtual Task ForcemergeAsync(Action configureRequest, CancellationToken cancellationToken = default) + /// + /// Performs the force merge operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ForcemergeAsync(ForcemergeRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new ForcemergeRequestDescriptor(); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return DoRequestAsync(descriptor); } - public virtual Task ForcemergeAsync(Action> configureRequest, CancellationToken cancellationToken = default) - { - var descriptor = new ForcemergeRequestDescriptor(); + /// + /// Performs the force merge operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ForcemergeAsync(Action configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ForcemergeRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Performs the force merge operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ForcemergeAsync(ForcemergeRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, ForcemergeResponse, ForcemergeRequestParameters>(descriptor); + } + + /// + /// Performs the force merge operation on one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ForcemergeAsync(Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new ForcemergeRequestDescriptor(); configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return DoRequestAsync, ForcemergeResponse, ForcemergeRequestParameters>(descriptor); @@ -1010,6 +1834,10 @@ public virtual Task GetAliasAsync(GetAliasRequest request, Can return DoRequestAsync(request, cancellationToken); } + /// + /// Returns an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetAliasResponse GetAlias() { var descriptor = new GetAliasRequestDescriptor(); @@ -1017,6 +1845,20 @@ public virtual GetAliasResponse GetAlias() return DoRequest(descriptor); } + /// + /// Returns an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetAliasResponse GetAlias(GetAliasRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetAliasResponse GetAlias(Action configureRequest) { var descriptor = new GetAliasRequestDescriptor(); @@ -1025,6 +1867,20 @@ public virtual GetAliasResponse GetAlias(Action confi return DoRequest(descriptor); } + /// + /// Returns an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetAliasResponse GetAlias(GetAliasRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, GetAliasResponse, GetAliasRequestParameters>(descriptor); + } + + /// + /// Returns an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetAliasResponse GetAlias(Action> configureRequest) { var descriptor = new GetAliasRequestDescriptor(); @@ -1033,6 +1889,10 @@ public virtual GetAliasResponse GetAlias(Action, GetAliasResponse, GetAliasRequestParameters>(descriptor); } + /// + /// Returns an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetAliasAsync(CancellationToken cancellationToken = default) { var descriptor = new GetAliasRequestDescriptor(); @@ -1040,6 +1900,20 @@ public virtual Task GetAliasAsync(CancellationToken cancellati return DoRequestAsync(descriptor); } + /// + /// Returns an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAliasAsync(GetAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetAliasAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new GetAliasRequestDescriptor(); @@ -1048,6 +1922,20 @@ public virtual Task GetAliasAsync(Action(descriptor); } + /// + /// Returns an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAliasAsync(GetAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, GetAliasResponse, GetAliasRequestParameters>(descriptor); + } + + /// + /// Returns an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetAliasAsync(Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new GetAliasRequestDescriptor(); @@ -1076,6 +1964,10 @@ public virtual Task GetDataStreamAsync(GetDataStreamReque return DoRequestAsync(request, cancellationToken); } + /// + /// Returns data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetDataStreamResponse GetDataStream() { var descriptor = new GetDataStreamRequestDescriptor(); @@ -1083,6 +1975,20 @@ public virtual GetDataStreamResponse GetDataStream() return DoRequest(descriptor); } + /// + /// Returns data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetDataStreamResponse GetDataStream(GetDataStreamRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetDataStreamResponse GetDataStream(Action configureRequest) { var descriptor = new GetDataStreamRequestDescriptor(); @@ -1091,6 +1997,10 @@ public virtual GetDataStreamResponse GetDataStream(Action(descriptor); } + /// + /// Returns data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetDataStreamAsync(CancellationToken cancellationToken = default) { var descriptor = new GetDataStreamRequestDescriptor(); @@ -1098,6 +2008,20 @@ public virtual Task GetDataStreamAsync(CancellationToken return DoRequestAsync(descriptor); } + /// + /// Returns data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetDataStreamAsync(GetDataStreamRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns data streams. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetDataStreamAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new GetDataStreamRequestDescriptor(); @@ -1126,6 +2050,10 @@ public virtual Task GetFieldMappingAsync(GetFieldMappin return DoRequestAsync(request, cancellationToken); } + /// + /// Returns mapping for one or more fields. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Clients.Elasticsearch.Fields fields) { var descriptor = new GetFieldMappingRequestDescriptor(fields); @@ -1133,6 +2061,20 @@ public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Clients.Elasticse return DoRequest(descriptor); } + /// + /// Returns mapping for one or more fields. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetFieldMappingResponse GetFieldMapping(GetFieldMappingRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns mapping for one or more fields. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Clients.Elasticsearch.Fields fields, Action configureRequest) { var descriptor = new GetFieldMappingRequestDescriptor(fields); @@ -1141,6 +2083,20 @@ public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Clients.Elasticse return DoRequest(descriptor); } + /// + /// Returns mapping for one or more fields. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetFieldMappingResponse GetFieldMapping(GetFieldMappingRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, GetFieldMappingResponse, GetFieldMappingRequestParameters>(descriptor); + } + + /// + /// Returns mapping for one or more fields. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Clients.Elasticsearch.Fields fields, Action> configureRequest) { var descriptor = new GetFieldMappingRequestDescriptor(fields); @@ -1149,6 +2105,10 @@ public virtual GetFieldMappingResponse GetFieldMapping(Elastic.Client return DoRequest, GetFieldMappingResponse, GetFieldMappingRequestParameters>(descriptor); } + /// + /// Returns mapping for one or more fields. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetFieldMappingAsync(Elastic.Clients.Elasticsearch.Fields fields, CancellationToken cancellationToken = default) { var descriptor = new GetFieldMappingRequestDescriptor(fields); @@ -1156,6 +2116,20 @@ public virtual Task GetFieldMappingAsync(Elastic.Client return DoRequestAsync(descriptor); } + /// + /// Returns mapping for one or more fields. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetFieldMappingAsync(GetFieldMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns mapping for one or more fields. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetFieldMappingAsync(Elastic.Clients.Elasticsearch.Fields fields, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new GetFieldMappingRequestDescriptor(fields); @@ -1164,6 +2138,20 @@ public virtual Task GetFieldMappingAsync(Elastic.Client return DoRequestAsync(descriptor); } + /// + /// Returns mapping for one or more fields. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetFieldMappingAsync(GetFieldMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, GetFieldMappingResponse, GetFieldMappingRequestParameters>(descriptor); + } + + /// + /// Returns mapping for one or more fields. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetFieldMappingAsync(Elastic.Clients.Elasticsearch.Fields fields, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new GetFieldMappingRequestDescriptor(fields); @@ -1192,6 +2180,10 @@ public virtual Task GetAsync(GetIndexRequest request, Cancella return DoRequestAsync(request, cancellationToken); } + /// + /// Returns information about one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetIndexResponse Get(Elastic.Clients.Elasticsearch.Indices indices) { var descriptor = new GetIndexRequestDescriptor(indices); @@ -1199,6 +2191,20 @@ public virtual GetIndexResponse Get(Elastic.Clients.Elasticsearch.Indices indice return DoRequest(descriptor); } + /// + /// Returns information about one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetIndexResponse Get(GetIndexRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns information about one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetIndexResponse Get(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) { var descriptor = new GetIndexRequestDescriptor(indices); @@ -1207,6 +2213,20 @@ public virtual GetIndexResponse Get(Elastic.Clients.Elasticsearch.Indices indice return DoRequest(descriptor); } + /// + /// Returns information about one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetIndexResponse Get(GetIndexRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, GetIndexResponse, GetIndexRequestParameters>(descriptor); + } + + /// + /// Returns information about one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetIndexResponse Get(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) { var descriptor = new GetIndexRequestDescriptor(indices); @@ -1215,6 +2235,10 @@ public virtual GetIndexResponse Get(Elastic.Clients.Elasticsearch.Ind return DoRequest, GetIndexResponse, GetIndexRequestParameters>(descriptor); } + /// + /// Returns information about one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { var descriptor = new GetIndexRequestDescriptor(indices); @@ -1222,6 +2246,20 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Ind return DoRequestAsync(descriptor); } + /// + /// Returns information about one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsync(GetIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns information about one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new GetIndexRequestDescriptor(indices); @@ -1230,6 +2268,20 @@ public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Ind return DoRequestAsync(descriptor); } + /// + /// Returns information about one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsync(GetIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, GetIndexResponse, GetIndexRequestParameters>(descriptor); + } + + /// + /// Returns information about one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new GetIndexRequestDescriptor(indices); @@ -1258,6 +2310,10 @@ public virtual Task GetIndexTemplateAsync(GetIndexTemp return DoRequestAsync(request, cancellationToken); } + /// + /// Returns an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetIndexTemplateResponse GetIndexTemplate() { var descriptor = new GetIndexTemplateRequestDescriptor(); @@ -1265,6 +2321,20 @@ public virtual GetIndexTemplateResponse GetIndexTemplate() return DoRequest(descriptor); } + /// + /// Returns an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetIndexTemplateResponse GetIndexTemplate(GetIndexTemplateRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetIndexTemplateResponse GetIndexTemplate(Action configureRequest) { var descriptor = new GetIndexTemplateRequestDescriptor(); @@ -1273,6 +2343,10 @@ public virtual GetIndexTemplateResponse GetIndexTemplate(Action(descriptor); } + /// + /// Returns an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetIndexTemplateAsync(CancellationToken cancellationToken = default) { var descriptor = new GetIndexTemplateRequestDescriptor(); @@ -1280,6 +2354,20 @@ public virtual Task GetIndexTemplateAsync(Cancellation return DoRequestAsync(descriptor); } + /// + /// Returns an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetIndexTemplateAsync(GetIndexTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetIndexTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new GetIndexTemplateRequestDescriptor(); @@ -1308,6 +2396,10 @@ public virtual Task GetMappingAsync(GetMappingRequest reques return DoRequestAsync(request, cancellationToken); } + /// + /// Returns mappings for one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetMappingResponse GetMapping() { var descriptor = new GetMappingRequestDescriptor(); @@ -1315,6 +2407,20 @@ public virtual GetMappingResponse GetMapping() return DoRequest(descriptor); } + /// + /// Returns mappings for one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetMappingResponse GetMapping(GetMappingRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns mappings for one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetMappingResponse GetMapping(Action configureRequest) { var descriptor = new GetMappingRequestDescriptor(); @@ -1323,21 +2429,53 @@ public virtual GetMappingResponse GetMapping(Action return DoRequest(descriptor); } + /// + /// Returns mappings for one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetMappingResponse GetMapping(GetMappingRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, GetMappingResponse, GetMappingRequestParameters>(descriptor); + } + + /// + /// Returns mappings for one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetMappingResponse GetMapping(Action> configureRequest) { - var descriptor = new GetMappingRequestDescriptor(); - configureRequest?.Invoke(descriptor); + var descriptor = new GetMappingRequestDescriptor(); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequest, GetMappingResponse, GetMappingRequestParameters>(descriptor); + } + + /// + /// Returns mappings for one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetMappingAsync(CancellationToken cancellationToken = default) + { + var descriptor = new GetMappingRequestDescriptor(); descriptor.BeforeRequest(); - return DoRequest, GetMappingResponse, GetMappingRequestParameters>(descriptor); + return DoRequestAsync(descriptor); } - public virtual Task GetMappingAsync(CancellationToken cancellationToken = default) + /// + /// Returns mappings for one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetMappingAsync(GetMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new GetMappingRequestDescriptor(); descriptor.BeforeRequest(); return DoRequestAsync(descriptor); } + /// + /// Returns mappings for one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetMappingAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new GetMappingRequestDescriptor(); @@ -1346,6 +2484,20 @@ public virtual Task GetMappingAsync(Action(descriptor); } + /// + /// Returns mappings for one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetMappingAsync(GetMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, GetMappingResponse, GetMappingRequestParameters>(descriptor); + } + + /// + /// Returns mappings for one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetMappingAsync(Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new GetMappingRequestDescriptor(); @@ -1374,6 +2526,10 @@ public virtual Task GetTemplateAsync(GetTemplateRequest req return DoRequestAsync(request, cancellationToken); } + /// + /// Returns an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetTemplateResponse GetTemplate() { var descriptor = new GetTemplateRequestDescriptor(); @@ -1381,6 +2537,20 @@ public virtual GetTemplateResponse GetTemplate() return DoRequest(descriptor); } + /// + /// Returns an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetTemplateResponse GetTemplate(GetTemplateRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetTemplateResponse GetTemplate(Action configureRequest) { var descriptor = new GetTemplateRequestDescriptor(); @@ -1389,6 +2559,10 @@ public virtual GetTemplateResponse GetTemplate(Action(descriptor); } + /// + /// Returns an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetTemplateAsync(CancellationToken cancellationToken = default) { var descriptor = new GetTemplateRequestDescriptor(); @@ -1396,6 +2570,20 @@ public virtual Task GetTemplateAsync(CancellationToken canc return DoRequestAsync(descriptor); } + /// + /// Returns an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetTemplateAsync(GetTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new GetTemplateRequestDescriptor(); @@ -1424,6 +2612,10 @@ public virtual Task StatsAsync(IndicesStatsRequest request return DoRequestAsync(request, cancellationToken); } + /// + /// Provides statistics on operations happening in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual IndicesStatsResponse Stats() { var descriptor = new IndicesStatsRequestDescriptor(); @@ -1431,6 +2623,20 @@ public virtual IndicesStatsResponse Stats() return DoRequest(descriptor); } + /// + /// Provides statistics on operations happening in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual IndicesStatsResponse Stats(IndicesStatsRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Provides statistics on operations happening in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual IndicesStatsResponse Stats(Action configureRequest) { var descriptor = new IndicesStatsRequestDescriptor(); @@ -1439,6 +2645,20 @@ public virtual IndicesStatsResponse Stats(Action return DoRequest(descriptor); } + /// + /// Provides statistics on operations happening in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual IndicesStatsResponse Stats(IndicesStatsRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, IndicesStatsResponse, IndicesStatsRequestParameters>(descriptor); + } + + /// + /// Provides statistics on operations happening in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual IndicesStatsResponse Stats(Action> configureRequest) { var descriptor = new IndicesStatsRequestDescriptor(); @@ -1447,6 +2667,10 @@ public virtual IndicesStatsResponse Stats(Action, IndicesStatsResponse, IndicesStatsRequestParameters>(descriptor); } + /// + /// Provides statistics on operations happening in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task StatsAsync(CancellationToken cancellationToken = default) { var descriptor = new IndicesStatsRequestDescriptor(); @@ -1454,6 +2678,20 @@ public virtual Task StatsAsync(CancellationToken cancellat return DoRequestAsync(descriptor); } + /// + /// Provides statistics on operations happening in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task StatsAsync(IndicesStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Provides statistics on operations happening in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task StatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new IndicesStatsRequestDescriptor(); @@ -1462,6 +2700,20 @@ public virtual Task StatsAsync(Action(descriptor); } + /// + /// Provides statistics on operations happening in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task StatsAsync(IndicesStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, IndicesStatsResponse, IndicesStatsRequestParameters>(descriptor); + } + + /// + /// Provides statistics on operations happening in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task StatsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new IndicesStatsRequestDescriptor(); @@ -1490,6 +2742,10 @@ public virtual Task MigrateToDataStreamAsync(Migrat return DoRequestAsync(request, cancellationToken); } + /// + /// Migrates an alias to a data stream + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual MigrateToDataStreamResponse MigrateToDataStream(Elastic.Clients.Elasticsearch.IndexName name) { var descriptor = new MigrateToDataStreamRequestDescriptor(name); @@ -1497,6 +2753,20 @@ public virtual MigrateToDataStreamResponse MigrateToDataStream(Elastic.Clients.E return DoRequest(descriptor); } + /// + /// Migrates an alias to a data stream + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual MigrateToDataStreamResponse MigrateToDataStream(MigrateToDataStreamRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Migrates an alias to a data stream + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual MigrateToDataStreamResponse MigrateToDataStream(Elastic.Clients.Elasticsearch.IndexName name, Action configureRequest) { var descriptor = new MigrateToDataStreamRequestDescriptor(name); @@ -1505,6 +2775,10 @@ public virtual MigrateToDataStreamResponse MigrateToDataStream(Elastic.Clients.E return DoRequest(descriptor); } + /// + /// Migrates an alias to a data stream + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task MigrateToDataStreamAsync(Elastic.Clients.Elasticsearch.IndexName name, CancellationToken cancellationToken = default) { var descriptor = new MigrateToDataStreamRequestDescriptor(name); @@ -1512,6 +2786,20 @@ public virtual Task MigrateToDataStreamAsync(Elasti return DoRequestAsync(descriptor); } + /// + /// Migrates an alias to a data stream + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task MigrateToDataStreamAsync(MigrateToDataStreamRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Migrates an alias to a data stream + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task MigrateToDataStreamAsync(Elastic.Clients.Elasticsearch.IndexName name, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new MigrateToDataStreamRequestDescriptor(name); @@ -1540,6 +2828,10 @@ public virtual Task OpenAsync(OpenIndexRequest request, Cance return DoRequestAsync(request, cancellationToken); } + /// + /// Opens an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.Indices indices) { var descriptor = new OpenIndexRequestDescriptor(indices); @@ -1547,6 +2839,20 @@ public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.Indices indi return DoRequest(descriptor); } + /// + /// Opens an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual OpenIndexResponse Open(OpenIndexRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Opens an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) { var descriptor = new OpenIndexRequestDescriptor(indices); @@ -1555,6 +2861,20 @@ public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.Indices indi return DoRequest(descriptor); } + /// + /// Opens an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual OpenIndexResponse Open(OpenIndexRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, OpenIndexResponse, OpenIndexRequestParameters>(descriptor); + } + + /// + /// Opens an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) { var descriptor = new OpenIndexRequestDescriptor(indices); @@ -1563,6 +2883,10 @@ public virtual OpenIndexResponse Open(Elastic.Clients.Elasticsearch.I return DoRequest, OpenIndexResponse, OpenIndexRequestParameters>(descriptor); } + /// + /// Opens an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { var descriptor = new OpenIndexRequestDescriptor(indices); @@ -1570,6 +2894,20 @@ public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.I return DoRequestAsync(descriptor); } + /// + /// Opens an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task OpenAsync(OpenIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Opens an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new OpenIndexRequestDescriptor(indices); @@ -1578,6 +2916,20 @@ public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.I return DoRequestAsync(descriptor); } + /// + /// Opens an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task OpenAsync(OpenIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, OpenIndexResponse, OpenIndexRequestParameters>(descriptor); + } + + /// + /// Opens an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task OpenAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new OpenIndexRequestDescriptor(indices); @@ -1606,6 +2958,10 @@ public virtual Task PutAliasAsync(PutAliasRequest request, Can return DoRequestAsync(request, cancellationToken); } + /// + /// Creates or updates an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual PutAliasResponse PutAlias(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Name name) { var descriptor = new PutAliasRequestDescriptor(indices, name); @@ -1613,6 +2969,20 @@ public virtual PutAliasResponse PutAlias(Elastic.Clients.Elasticsearch.Indices i return DoRequest(descriptor); } + /// + /// Creates or updates an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual PutAliasResponse PutAlias(PutAliasRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Creates or updates an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual PutAliasResponse PutAlias(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Name name, Action configureRequest) { var descriptor = new PutAliasRequestDescriptor(indices, name); @@ -1621,6 +2991,20 @@ public virtual PutAliasResponse PutAlias(Elastic.Clients.Elasticsearch.Indices i return DoRequest(descriptor); } + /// + /// Creates or updates an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual PutAliasResponse PutAlias(PutAliasRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, PutAliasResponse, PutAliasRequestParameters>(descriptor); + } + + /// + /// Creates or updates an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual PutAliasResponse PutAlias(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Name name, Action> configureRequest) { var descriptor = new PutAliasRequestDescriptor(indices, name); @@ -1629,13 +3013,31 @@ public virtual PutAliasResponse PutAlias(Elastic.Clients.Elasticsearc return DoRequest, PutAliasResponse, PutAliasRequestParameters>(descriptor); } + /// + /// Creates or updates an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task PutAliasAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { - var descriptor = new PutAliasRequestDescriptor(indices, name); + var descriptor = new PutAliasRequestDescriptor(indices, name); + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Creates or updates an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAliasAsync(PutAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { descriptor.BeforeRequest(); return DoRequestAsync(descriptor); } + /// + /// Creates or updates an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task PutAliasAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new PutAliasRequestDescriptor(indices, name); @@ -1644,6 +3046,20 @@ public virtual Task PutAliasAsync(Elastic.Clients.Elasticsearc return DoRequestAsync(descriptor); } + /// + /// Creates or updates an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutAliasAsync(PutAliasRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, PutAliasResponse, PutAliasRequestParameters>(descriptor); + } + + /// + /// Creates or updates an alias. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task PutAliasAsync(Elastic.Clients.Elasticsearch.Indices indices, Elastic.Clients.Elasticsearch.Name name, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new PutAliasRequestDescriptor(indices, name); @@ -1672,13 +3088,20 @@ public virtual Task PutIndexTemplateAsync(PutIndexTemp return DoRequestAsync(request, cancellationToken); } - public virtual PutIndexTemplateResponse PutIndexTemplate(Elastic.Clients.Elasticsearch.Name name) + /// + /// Creates or updates an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual PutIndexTemplateResponse PutIndexTemplate(PutIndexTemplateRequestDescriptor descriptor) { - var descriptor = new PutIndexTemplateRequestDescriptor(name); descriptor.BeforeRequest(); return DoRequest(descriptor); } + /// + /// Creates or updates an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual PutIndexTemplateResponse PutIndexTemplate(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) { var descriptor = new PutIndexTemplateRequestDescriptor(name); @@ -1687,6 +3110,20 @@ public virtual PutIndexTemplateResponse PutIndexTemplate(Elastic.Clients.Elastic return DoRequest(descriptor); } + /// + /// Creates or updates an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual PutIndexTemplateResponse PutIndexTemplate(PutIndexTemplateRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, PutIndexTemplateResponse, PutIndexTemplateRequestParameters>(descriptor); + } + + /// + /// Creates or updates an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual PutIndexTemplateResponse PutIndexTemplate(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest) { var descriptor = new PutIndexTemplateRequestDescriptor(name); @@ -1695,13 +3132,20 @@ public virtual PutIndexTemplateResponse PutIndexTemplate(Elastic.Clie return DoRequest, PutIndexTemplateResponse, PutIndexTemplateRequestParameters>(descriptor); } - public virtual Task PutIndexTemplateAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) + /// + /// Creates or updates an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutIndexTemplateAsync(PutIndexTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new PutIndexTemplateRequestDescriptor(name); descriptor.BeforeRequest(); return DoRequestAsync(descriptor); } + /// + /// Creates or updates an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task PutIndexTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new PutIndexTemplateRequestDescriptor(name); @@ -1710,6 +3154,20 @@ public virtual Task PutIndexTemplateAsync(Elastic.Clie return DoRequestAsync(descriptor); } + /// + /// Creates or updates an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutIndexTemplateAsync(PutIndexTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, PutIndexTemplateResponse, PutIndexTemplateRequestParameters>(descriptor); + } + + /// + /// Creates or updates an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task PutIndexTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new PutIndexTemplateRequestDescriptor(name); @@ -1738,13 +3196,20 @@ public virtual Task PutMappingAsync(PutMappingRequest reques return DoRequestAsync(request, cancellationToken); } - public virtual PutMappingResponse PutMapping(Elastic.Clients.Elasticsearch.Indices indices) + /// + /// Updates the index mappings. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual PutMappingResponse PutMapping(PutMappingRequestDescriptor descriptor) { - var descriptor = new PutMappingRequestDescriptor(indices); descriptor.BeforeRequest(); return DoRequest(descriptor); } + /// + /// Updates the index mappings. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual PutMappingResponse PutMapping(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) { var descriptor = new PutMappingRequestDescriptor(indices); @@ -1753,6 +3218,20 @@ public virtual PutMappingResponse PutMapping(Elastic.Clients.Elasticsearch.Indic return DoRequest(descriptor); } + /// + /// Updates the index mappings. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual PutMappingResponse PutMapping(PutMappingRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, PutMappingResponse, PutMappingRequestParameters>(descriptor); + } + + /// + /// Updates the index mappings. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual PutMappingResponse PutMapping(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) { var descriptor = new PutMappingRequestDescriptor(indices); @@ -1761,13 +3240,20 @@ public virtual PutMappingResponse PutMapping(Elastic.Clients.Elastics return DoRequest, PutMappingResponse, PutMappingRequestParameters>(descriptor); } - public virtual Task PutMappingAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) + /// + /// Updates the index mappings. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutMappingAsync(PutMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new PutMappingRequestDescriptor(indices); descriptor.BeforeRequest(); return DoRequestAsync(descriptor); } + /// + /// Updates the index mappings. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task PutMappingAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new PutMappingRequestDescriptor(indices); @@ -1776,6 +3262,20 @@ public virtual Task PutMappingAsync(Elastic.Clients.Elastics return DoRequestAsync(descriptor); } + /// + /// Updates the index mappings. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutMappingAsync(PutMappingRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, PutMappingResponse, PutMappingRequestParameters>(descriptor); + } + + /// + /// Updates the index mappings. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task PutMappingAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new PutMappingRequestDescriptor(indices); @@ -1804,13 +3304,20 @@ public virtual Task PutTemplateAsync(PutTemplateRequest req return DoRequestAsync(request, cancellationToken); } - public virtual PutTemplateResponse PutTemplate(Elastic.Clients.Elasticsearch.Name name) + /// + /// Creates or updates an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual PutTemplateResponse PutTemplate(PutTemplateRequestDescriptor descriptor) { - var descriptor = new PutTemplateRequestDescriptor(name); descriptor.BeforeRequest(); return DoRequest(descriptor); } + /// + /// Creates or updates an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual PutTemplateResponse PutTemplate(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) { var descriptor = new PutTemplateRequestDescriptor(name); @@ -1819,13 +3326,20 @@ public virtual PutTemplateResponse PutTemplate(Elastic.Clients.Elasticsearch.Nam return DoRequest(descriptor); } - public virtual Task PutTemplateAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) + /// + /// Creates or updates an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutTemplateAsync(PutTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new PutTemplateRequestDescriptor(name); descriptor.BeforeRequest(); return DoRequestAsync(descriptor); } + /// + /// Creates or updates an index template. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task PutTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new PutTemplateRequestDescriptor(name); @@ -1854,6 +3368,10 @@ public virtual Task RefreshAsync(RefreshRequest request, Cancel return DoRequestAsync(request, cancellationToken); } + /// + /// Performs the refresh operation in one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual RefreshResponse Refresh() { var descriptor = new RefreshRequestDescriptor(); @@ -1861,6 +3379,20 @@ public virtual RefreshResponse Refresh() return DoRequest(descriptor); } + /// + /// Performs the refresh operation in one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual RefreshResponse Refresh(RefreshRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Performs the refresh operation in one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual RefreshResponse Refresh(Action configureRequest) { var descriptor = new RefreshRequestDescriptor(); @@ -1869,6 +3401,20 @@ public virtual RefreshResponse Refresh(Action configur return DoRequest(descriptor); } + /// + /// Performs the refresh operation in one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual RefreshResponse Refresh(RefreshRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, RefreshResponse, RefreshRequestParameters>(descriptor); + } + + /// + /// Performs the refresh operation in one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual RefreshResponse Refresh(Action> configureRequest) { var descriptor = new RefreshRequestDescriptor(); @@ -1877,6 +3423,10 @@ public virtual RefreshResponse Refresh(Action, RefreshResponse, RefreshRequestParameters>(descriptor); } + /// + /// Performs the refresh operation in one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task RefreshAsync(CancellationToken cancellationToken = default) { var descriptor = new RefreshRequestDescriptor(); @@ -1884,6 +3434,20 @@ public virtual Task RefreshAsync(CancellationToken cancellation return DoRequestAsync(descriptor); } + /// + /// Performs the refresh operation in one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RefreshAsync(RefreshRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Performs the refresh operation in one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task RefreshAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new RefreshRequestDescriptor(); @@ -1892,6 +3456,20 @@ public virtual Task RefreshAsync(Action(descriptor); } + /// + /// Performs the refresh operation in one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task RefreshAsync(RefreshRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, RefreshResponse, RefreshRequestParameters>(descriptor); + } + + /// + /// Performs the refresh operation in one or more indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task RefreshAsync(Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new RefreshRequestDescriptor(); @@ -1920,6 +3498,10 @@ public virtual Task RolloverAsync(RolloverRequest request, Can return DoRequestAsync(request, 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(Elastic.Clients.Elasticsearch.IndexAlias alias) { var descriptor = new RolloverRequestDescriptor(alias); @@ -1927,6 +3509,20 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlia return DoRequest(descriptor); } + /// + /// Updates an alias to point to a new index when the existing index
is considered to be too large or too old.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
+ public virtual RolloverResponse Rollover(RolloverRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Updates an alias to point to a new index when the existing index
is considered to be too large or too old.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlias alias, Action configureRequest) { var descriptor = new RolloverRequestDescriptor(alias); @@ -1935,6 +3531,10 @@ public virtual RolloverResponse Rollover(Elastic.Clients.Elasticsearch.IndexAlia return DoRequest(descriptor); } + /// + /// Updates an alias to point to a new index when the existing index
is considered to be too large or too old.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.IndexAlias alias, CancellationToken cancellationToken = default) { var descriptor = new RolloverRequestDescriptor(alias); @@ -1942,6 +3542,20 @@ public virtual Task RolloverAsync(Elastic.Clients.Elasticsearc return DoRequestAsync(descriptor); } + /// + /// Updates an alias to point to a new index when the existing index
is considered to be too large or too old.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
+ public virtual Task RolloverAsync(RolloverRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Updates an alias to point to a new index when the existing index
is considered to be too large or too old.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
public virtual Task RolloverAsync(Elastic.Clients.Elasticsearch.IndexAlias alias, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new RolloverRequestDescriptor(alias); @@ -1970,6 +3584,10 @@ public virtual Task ShrinkAsync(ShrinkIndexRequest request, return DoRequestAsync(request, cancellationToken); } + /// + /// Allow to shrink an existing index into a new index with fewer primary shards. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target) { var descriptor = new ShrinkIndexRequestDescriptor(index, target); @@ -1977,6 +3595,20 @@ public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexNam return DoRequest(descriptor); } + /// + /// Allow to shrink an existing index into a new index with fewer primary shards. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ShrinkIndexResponse Shrink(ShrinkIndexRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Allow to shrink an existing index into a new index with fewer primary shards. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action configureRequest) { var descriptor = new ShrinkIndexRequestDescriptor(index, target); @@ -1985,6 +3617,10 @@ public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexNam return DoRequest(descriptor); } + /// + /// Allow to shrink an existing index into a new index with fewer primary shards. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexName target) { var descriptor = new ShrinkIndexRequestDescriptor(typeof(TDocument), target); @@ -1992,6 +3628,10 @@ public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsear return DoRequest, ShrinkIndexResponse, ShrinkIndexRequestParameters>(descriptor); } + /// + /// Allow to shrink an existing index into a new index with fewer primary shards. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexName target, Action> configureRequest) { var descriptor = new ShrinkIndexRequestDescriptor(typeof(TDocument), target); @@ -2000,6 +3640,20 @@ public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsear return DoRequest, ShrinkIndexResponse, ShrinkIndexRequestParameters>(descriptor); } + /// + /// Allow to shrink an existing index into a new index with fewer primary shards. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ShrinkIndexResponse Shrink(ShrinkIndexRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, ShrinkIndexResponse, ShrinkIndexRequestParameters>(descriptor); + } + + /// + /// Allow to shrink an existing index into a new index with fewer primary shards. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action> configureRequest) { var descriptor = new ShrinkIndexRequestDescriptor(index, target); @@ -2008,6 +3662,10 @@ public virtual ShrinkIndexResponse Shrink(Elastic.Clients.Elasticsear return DoRequest, ShrinkIndexResponse, ShrinkIndexRequestParameters>(descriptor); } + /// + /// Allow to shrink an existing index into a new index with fewer primary shards. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ShrinkAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, CancellationToken cancellationToken = default) { var descriptor = new ShrinkIndexRequestDescriptor(index, target); @@ -2015,6 +3673,20 @@ public virtual Task ShrinkAsync(Elastic.Clients.Elasticsear return DoRequestAsync(descriptor); } + /// + /// Allow to shrink an existing index into a new index with fewer primary shards. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ShrinkAsync(ShrinkIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Allow to shrink an existing index into a new index with fewer primary shards. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ShrinkAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new ShrinkIndexRequestDescriptor(index, target); @@ -2023,6 +3695,10 @@ public virtual Task ShrinkAsync(Elastic.Clients.Elasticsear return DoRequestAsync(descriptor); } + /// + /// Allow to shrink an existing index into a new index with fewer primary shards. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ShrinkAsync(Elastic.Clients.Elasticsearch.IndexName target, CancellationToken cancellationToken = default) { var descriptor = new ShrinkIndexRequestDescriptor(typeof(TDocument), target); @@ -2030,6 +3706,10 @@ public virtual Task ShrinkAsync(Elastic.Clients. return DoRequestAsync, ShrinkIndexResponse, ShrinkIndexRequestParameters>(descriptor); } + /// + /// Allow to shrink an existing index into a new index with fewer primary shards. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ShrinkAsync(Elastic.Clients.Elasticsearch.IndexName target, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new ShrinkIndexRequestDescriptor(typeof(TDocument), target); @@ -2038,6 +3718,20 @@ public virtual Task ShrinkAsync(Elastic.Clients. return DoRequestAsync, ShrinkIndexResponse, ShrinkIndexRequestParameters>(descriptor); } + /// + /// Allow to shrink an existing index into a new index with fewer primary shards. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ShrinkAsync(ShrinkIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, ShrinkIndexResponse, ShrinkIndexRequestParameters>(descriptor); + } + + /// + /// Allow to shrink an existing index into a new index with fewer primary shards. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ShrinkAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new ShrinkIndexRequestDescriptor(index, target); @@ -2066,6 +3760,10 @@ public virtual Task SimulateIndexTemplateAsync(Si return DoRequestAsync(request, 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(Elastic.Clients.Elasticsearch.Name name) { var descriptor = new SimulateIndexTemplateRequestDescriptor(name); @@ -2073,6 +3771,20 @@ public virtual SimulateIndexTemplateResponse SimulateIndexTemplate(Elastic.Clien return DoRequest(descriptor); } + /// + /// 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(SimulateIndexTemplateRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// 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(Elastic.Clients.Elasticsearch.Name name, Action configureRequest) { var descriptor = new SimulateIndexTemplateRequestDescriptor(name); @@ -2081,6 +3793,20 @@ public virtual SimulateIndexTemplateResponse SimulateIndexTemplate(Elastic.Clien return DoRequest(descriptor); } + /// + /// 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(SimulateIndexTemplateRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, SimulateIndexTemplateResponse, SimulateIndexTemplateRequestParameters>(descriptor); + } + + /// + /// 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(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest) { var descriptor = new SimulateIndexTemplateRequestDescriptor(name); @@ -2089,6 +3815,10 @@ public virtual SimulateIndexTemplateResponse SimulateIndexTemplate(El return DoRequest, SimulateIndexTemplateResponse, SimulateIndexTemplateRequestParameters>(descriptor); } + /// + /// Simulate matching the given index name against the index templates in the system + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task SimulateIndexTemplateAsync(Elastic.Clients.Elasticsearch.Name name, CancellationToken cancellationToken = default) { var descriptor = new SimulateIndexTemplateRequestDescriptor(name); @@ -2096,6 +3826,20 @@ public virtual Task SimulateIndexTemplateAsync(El return DoRequestAsync(descriptor); } + /// + /// Simulate matching the given index name against the index templates in the system + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task SimulateIndexTemplateAsync(SimulateIndexTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Simulate matching the given index name against the index templates in the system + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task SimulateIndexTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new SimulateIndexTemplateRequestDescriptor(name); @@ -2104,6 +3848,20 @@ public virtual Task SimulateIndexTemplateAsync(El return DoRequestAsync(descriptor); } + /// + /// Simulate matching the given index name against the index templates in the system + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task SimulateIndexTemplateAsync(SimulateIndexTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, SimulateIndexTemplateResponse, SimulateIndexTemplateRequestParameters>(descriptor); + } + + /// + /// Simulate matching the given index name against the index templates in the system + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task SimulateIndexTemplateAsync(Elastic.Clients.Elasticsearch.Name name, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new SimulateIndexTemplateRequestDescriptor(name); @@ -2132,6 +3890,10 @@ public virtual Task SimulateTemplateAsync(SimulateTemp return DoRequestAsync(request, cancellationToken); } + /// + /// Simulate resolving the given template name or body + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual SimulateTemplateResponse SimulateTemplate() { var descriptor = new SimulateTemplateRequestDescriptor(); @@ -2139,6 +3901,20 @@ public virtual SimulateTemplateResponse SimulateTemplate() return DoRequest(descriptor); } + /// + /// Simulate resolving the given template name or body + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual SimulateTemplateResponse SimulateTemplate(SimulateTemplateRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Simulate resolving the given template name or body + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual SimulateTemplateResponse SimulateTemplate(Action configureRequest) { var descriptor = new SimulateTemplateRequestDescriptor(); @@ -2147,6 +3923,10 @@ public virtual SimulateTemplateResponse SimulateTemplate(Action(descriptor); } + /// + /// Simulate resolving the given template name or body + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task SimulateTemplateAsync(CancellationToken cancellationToken = default) { var descriptor = new SimulateTemplateRequestDescriptor(); @@ -2154,6 +3934,20 @@ public virtual Task SimulateTemplateAsync(Cancellation return DoRequestAsync(descriptor); } + /// + /// Simulate resolving the given template name or body + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task SimulateTemplateAsync(SimulateTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Simulate resolving the given template name or body + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task SimulateTemplateAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new SimulateTemplateRequestDescriptor(); @@ -2182,6 +3976,10 @@ public virtual Task SplitAsync(SplitIndexRequest request, Ca return DoRequestAsync(request, cancellationToken); } + /// + /// Allows you to split an existing index into a new index with more primary shards. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target) { var descriptor = new SplitIndexRequestDescriptor(index, target); @@ -2189,6 +3987,20 @@ public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName return DoRequest(descriptor); } + /// + /// Allows you to split an existing index into a new index with more primary shards. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual SplitIndexResponse Split(SplitIndexRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Allows you to split an existing index into a new index with more primary shards. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action configureRequest) { var descriptor = new SplitIndexRequestDescriptor(index, target); @@ -2197,6 +4009,10 @@ public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName return DoRequest(descriptor); } + /// + /// Allows you to split an existing index into a new index with more primary shards. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName target) { var descriptor = new SplitIndexRequestDescriptor(typeof(TDocument), target); @@ -2204,6 +4020,10 @@ public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch return DoRequest, SplitIndexResponse, SplitIndexRequestParameters>(descriptor); } + /// + /// Allows you to split an existing index into a new index with more primary shards. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName target, Action> configureRequest) { var descriptor = new SplitIndexRequestDescriptor(typeof(TDocument), target); @@ -2212,6 +4032,20 @@ public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch return DoRequest, SplitIndexResponse, SplitIndexRequestParameters>(descriptor); } + /// + /// Allows you to split an existing index into a new index with more primary shards. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual SplitIndexResponse Split(SplitIndexRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, SplitIndexResponse, SplitIndexRequestParameters>(descriptor); + } + + /// + /// Allows you to split an existing index into a new index with more primary shards. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action> configureRequest) { var descriptor = new SplitIndexRequestDescriptor(index, target); @@ -2220,6 +4054,10 @@ public virtual SplitIndexResponse Split(Elastic.Clients.Elasticsearch return DoRequest, SplitIndexResponse, SplitIndexRequestParameters>(descriptor); } + /// + /// Allows you to split an existing index into a new index with more primary shards. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task SplitAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, CancellationToken cancellationToken = default) { var descriptor = new SplitIndexRequestDescriptor(index, target); @@ -2227,6 +4065,20 @@ public virtual Task SplitAsync(Elastic.Clients.Elasticsearch return DoRequestAsync(descriptor); } + /// + /// Allows you to split an existing index into a new index with more primary shards. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task SplitAsync(SplitIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Allows you to split an existing index into a new index with more primary shards. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task SplitAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new SplitIndexRequestDescriptor(index, target); @@ -2235,6 +4087,10 @@ public virtual Task SplitAsync(Elastic.Clients.Elasticsearch return DoRequestAsync(descriptor); } + /// + /// Allows you to split an existing index into a new index with more primary shards. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task SplitAsync(Elastic.Clients.Elasticsearch.IndexName target, CancellationToken cancellationToken = default) { var descriptor = new SplitIndexRequestDescriptor(typeof(TDocument), target); @@ -2242,6 +4098,10 @@ public virtual Task SplitAsync(Elastic.Clients.El return DoRequestAsync, SplitIndexResponse, SplitIndexRequestParameters>(descriptor); } + /// + /// Allows you to split an existing index into a new index with more primary shards. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task SplitAsync(Elastic.Clients.Elasticsearch.IndexName target, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new SplitIndexRequestDescriptor(typeof(TDocument), target); @@ -2250,6 +4110,20 @@ public virtual Task SplitAsync(Elastic.Clients.El return DoRequestAsync, SplitIndexResponse, SplitIndexRequestParameters>(descriptor); } + /// + /// Allows you to split an existing index into a new index with more primary shards. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task SplitAsync(SplitIndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, SplitIndexResponse, SplitIndexRequestParameters>(descriptor); + } + + /// + /// Allows you to split an existing index into a new index with more primary shards. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task SplitAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.IndexName target, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new SplitIndexRequestDescriptor(index, target); @@ -2278,13 +4152,20 @@ public virtual Task UpdateAliasesAsync(UpdateAliasesReque return DoRequestAsync(request, cancellationToken); } - public virtual UpdateAliasesResponse UpdateAliases() + /// + /// Updates index aliases. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual UpdateAliasesResponse UpdateAliases(UpdateAliasesRequestDescriptor descriptor) { - var descriptor = new UpdateAliasesRequestDescriptor(); descriptor.BeforeRequest(); return DoRequest(descriptor); } + /// + /// Updates index aliases. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual UpdateAliasesResponse UpdateAliases(Action configureRequest) { var descriptor = new UpdateAliasesRequestDescriptor(); @@ -2293,6 +4174,20 @@ public virtual UpdateAliasesResponse UpdateAliases(Action(descriptor); } + /// + /// Updates index aliases. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual UpdateAliasesResponse UpdateAliases(UpdateAliasesRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, UpdateAliasesResponse, UpdateAliasesRequestParameters>(descriptor); + } + + /// + /// Updates index aliases. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual UpdateAliasesResponse UpdateAliases(Action> configureRequest) { var descriptor = new UpdateAliasesRequestDescriptor(); @@ -2301,13 +4196,20 @@ public virtual UpdateAliasesResponse UpdateAliases(Action, UpdateAliasesResponse, UpdateAliasesRequestParameters>(descriptor); } - public virtual Task UpdateAliasesAsync(CancellationToken cancellationToken = default) + /// + /// Updates index aliases. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task UpdateAliasesAsync(UpdateAliasesRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new UpdateAliasesRequestDescriptor(); descriptor.BeforeRequest(); return DoRequestAsync(descriptor); } + /// + /// Updates index aliases. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task UpdateAliasesAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new UpdateAliasesRequestDescriptor(); @@ -2316,6 +4218,20 @@ public virtual Task UpdateAliasesAsync(Action(descriptor); } + /// + /// Updates index aliases. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task UpdateAliasesAsync(UpdateAliasesRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, UpdateAliasesResponse, UpdateAliasesRequestParameters>(descriptor); + } + + /// + /// Updates index aliases. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task UpdateAliasesAsync(Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new UpdateAliasesRequestDescriptor(); 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 0b4be1bfdd1..38d1b457da0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Ingest.g.cs @@ -56,6 +56,10 @@ public virtual Task DeletePipelineAsync(DeletePipelineRe return DoRequestAsync(request, cancellationToken); } + /// + /// Deletes a pipeline. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual DeletePipelineResponse DeletePipeline(Elastic.Clients.Elasticsearch.Id id) { var descriptor = new DeletePipelineRequestDescriptor(id); @@ -63,6 +67,20 @@ public virtual DeletePipelineResponse DeletePipeline(Elastic.Clients.Elasticsear return DoRequest(descriptor); } + /// + /// Deletes a pipeline. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeletePipelineResponse DeletePipeline(DeletePipelineRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Deletes a pipeline. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual DeletePipelineResponse DeletePipeline(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) { var descriptor = new DeletePipelineRequestDescriptor(id); @@ -71,6 +89,20 @@ public virtual DeletePipelineResponse DeletePipeline(Elastic.Clients.Elasticsear return DoRequest(descriptor); } + /// + /// Deletes a pipeline. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeletePipelineResponse DeletePipeline(DeletePipelineRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, DeletePipelineResponse, DeletePipelineRequestParameters>(descriptor); + } + + /// + /// Deletes a pipeline. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual DeletePipelineResponse DeletePipeline(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { var descriptor = new DeletePipelineRequestDescriptor(id); @@ -79,6 +111,10 @@ public virtual DeletePipelineResponse DeletePipeline(Elastic.Clients. return DoRequest, DeletePipelineResponse, DeletePipelineRequestParameters>(descriptor); } + /// + /// Deletes a pipeline. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeletePipelineAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { var descriptor = new DeletePipelineRequestDescriptor(id); @@ -86,6 +122,20 @@ public virtual Task DeletePipelineAsync(Elastic.Clients. return DoRequestAsync(descriptor); } + /// + /// Deletes a pipeline. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeletePipelineAsync(DeletePipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Deletes a pipeline. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeletePipelineAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new DeletePipelineRequestDescriptor(id); @@ -94,6 +144,20 @@ public virtual Task DeletePipelineAsync(Elastic.Clients. return DoRequestAsync(descriptor); } + /// + /// Deletes a pipeline. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeletePipelineAsync(DeletePipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, DeletePipelineResponse, DeletePipelineRequestParameters>(descriptor); + } + + /// + /// Deletes a pipeline. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeletePipelineAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new DeletePipelineRequestDescriptor(id); @@ -122,6 +186,10 @@ public virtual Task GeoIpStatsAsync(GeoIpStatsRequest reques return DoRequestAsync(request, cancellationToken); } + /// + /// Returns statistical information about geoip databases + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GeoIpStatsResponse GeoIpStats() { var descriptor = new GeoIpStatsRequestDescriptor(); @@ -129,6 +197,20 @@ public virtual GeoIpStatsResponse GeoIpStats() return DoRequest(descriptor); } + /// + /// Returns statistical information about geoip databases + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GeoIpStatsResponse GeoIpStats(GeoIpStatsRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns statistical information about geoip databases + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GeoIpStatsResponse GeoIpStats(Action configureRequest) { var descriptor = new GeoIpStatsRequestDescriptor(); @@ -137,6 +219,10 @@ public virtual GeoIpStatsResponse GeoIpStats(Action return DoRequest(descriptor); } + /// + /// Returns statistical information about geoip databases + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GeoIpStatsAsync(CancellationToken cancellationToken = default) { var descriptor = new GeoIpStatsRequestDescriptor(); @@ -144,6 +230,20 @@ public virtual Task GeoIpStatsAsync(CancellationToken cancel return DoRequestAsync(descriptor); } + /// + /// Returns statistical information about geoip databases + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GeoIpStatsAsync(GeoIpStatsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns statistical information about geoip databases + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GeoIpStatsAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new GeoIpStatsRequestDescriptor(); @@ -172,6 +272,10 @@ public virtual Task GetPipelineAsync(GetPipelineRequest req return DoRequestAsync(request, cancellationToken); } + /// + /// Returns a pipeline. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetPipelineResponse GetPipeline() { var descriptor = new GetPipelineRequestDescriptor(); @@ -179,6 +283,20 @@ public virtual GetPipelineResponse GetPipeline() return DoRequest(descriptor); } + /// + /// Returns a pipeline. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetPipelineResponse GetPipeline(GetPipelineRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns a pipeline. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetPipelineResponse GetPipeline(Action configureRequest) { var descriptor = new GetPipelineRequestDescriptor(); @@ -187,6 +305,20 @@ public virtual GetPipelineResponse GetPipeline(Action(descriptor); } + /// + /// Returns a pipeline. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetPipelineResponse GetPipeline(GetPipelineRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, GetPipelineResponse, GetPipelineRequestParameters>(descriptor); + } + + /// + /// Returns a pipeline. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetPipelineResponse GetPipeline(Action> configureRequest) { var descriptor = new GetPipelineRequestDescriptor(); @@ -195,6 +327,10 @@ public virtual GetPipelineResponse GetPipeline(Action, GetPipelineResponse, GetPipelineRequestParameters>(descriptor); } + /// + /// Returns a pipeline. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetPipelineAsync(CancellationToken cancellationToken = default) { var descriptor = new GetPipelineRequestDescriptor(); @@ -202,6 +338,20 @@ public virtual Task GetPipelineAsync(CancellationToken canc return DoRequestAsync(descriptor); } + /// + /// Returns a pipeline. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetPipelineAsync(GetPipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns a pipeline. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetPipelineAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new GetPipelineRequestDescriptor(); @@ -210,6 +360,20 @@ public virtual Task GetPipelineAsync(Action(descriptor); } + /// + /// Returns a pipeline. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetPipelineAsync(GetPipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, GetPipelineResponse, GetPipelineRequestParameters>(descriptor); + } + + /// + /// Returns a pipeline. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetPipelineAsync(Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new GetPipelineRequestDescriptor(); @@ -238,6 +402,10 @@ public virtual Task ProcessorGrokAsync(ProcessorGrokReque return DoRequestAsync(request, cancellationToken); } + /// + /// Returns a list of the built-in patterns. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ProcessorGrokResponse ProcessorGrok() { var descriptor = new ProcessorGrokRequestDescriptor(); @@ -245,6 +413,20 @@ public virtual ProcessorGrokResponse ProcessorGrok() return DoRequest(descriptor); } + /// + /// Returns a list of the built-in patterns. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ProcessorGrokResponse ProcessorGrok(ProcessorGrokRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns a list of the built-in patterns. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ProcessorGrokResponse ProcessorGrok(Action configureRequest) { var descriptor = new ProcessorGrokRequestDescriptor(); @@ -253,6 +435,10 @@ public virtual ProcessorGrokResponse ProcessorGrok(Action(descriptor); } + /// + /// Returns a list of the built-in patterns. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ProcessorGrokAsync(CancellationToken cancellationToken = default) { var descriptor = new ProcessorGrokRequestDescriptor(); @@ -260,6 +446,20 @@ public virtual Task ProcessorGrokAsync(CancellationToken return DoRequestAsync(descriptor); } + /// + /// Returns a list of the built-in patterns. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ProcessorGrokAsync(ProcessorGrokRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns a list of the built-in patterns. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ProcessorGrokAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new ProcessorGrokRequestDescriptor(); @@ -288,13 +488,20 @@ public virtual Task PutPipelineAsync(PutPipelineRequest req return DoRequestAsync(request, cancellationToken); } - public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id id) + /// + /// Creates or updates a pipeline. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual PutPipelineResponse PutPipeline(PutPipelineRequestDescriptor descriptor) { - var descriptor = new PutPipelineRequestDescriptor(id); descriptor.BeforeRequest(); return DoRequest(descriptor); } + /// + /// Creates or updates a pipeline. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) { var descriptor = new PutPipelineRequestDescriptor(id); @@ -303,6 +510,20 @@ public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id return DoRequest(descriptor); } + /// + /// Creates or updates a pipeline. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual PutPipelineResponse PutPipeline(PutPipelineRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, PutPipelineResponse, PutPipelineRequestParameters>(descriptor); + } + + /// + /// Creates or updates a pipeline. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { var descriptor = new PutPipelineRequestDescriptor(id); @@ -311,13 +532,20 @@ public virtual PutPipelineResponse PutPipeline(Elastic.Clients.Elasti return DoRequest, PutPipelineResponse, PutPipelineRequestParameters>(descriptor); } - public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + /// + /// Creates or updates a pipeline. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutPipelineAsync(PutPipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new PutPipelineRequestDescriptor(id); descriptor.BeforeRequest(); return DoRequestAsync(descriptor); } + /// + /// Creates or updates a pipeline. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new PutPipelineRequestDescriptor(id); @@ -326,6 +554,20 @@ public virtual Task PutPipelineAsync(Elastic.Clients.Elasti return DoRequestAsync(descriptor); } + /// + /// Creates or updates a pipeline. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutPipelineAsync(PutPipelineRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, PutPipelineResponse, PutPipelineRequestParameters>(descriptor); + } + + /// + /// Creates or updates a pipeline. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task PutPipelineAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new PutPipelineRequestDescriptor(id); @@ -354,6 +596,10 @@ public virtual Task SimulateAsync(SimulateRequest request, Can return DoRequestAsync(request, cancellationToken); } + /// + /// Allows to simulate a pipeline with example documents. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual SimulateResponse Simulate() { var descriptor = new SimulateRequestDescriptor(); @@ -361,6 +607,20 @@ public virtual SimulateResponse Simulate() return DoRequest(descriptor); } + /// + /// Allows to simulate a pipeline with example documents. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual SimulateResponse Simulate(SimulateRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Allows to simulate a pipeline with example documents. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual SimulateResponse Simulate(Action configureRequest) { var descriptor = new SimulateRequestDescriptor(); @@ -369,6 +629,20 @@ public virtual SimulateResponse Simulate(Action confi return DoRequest(descriptor); } + /// + /// Allows to simulate a pipeline with example documents. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual SimulateResponse Simulate(SimulateRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, SimulateResponse, SimulateRequestParameters>(descriptor); + } + + /// + /// Allows to simulate a pipeline with example documents. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual SimulateResponse Simulate(Action> configureRequest) { var descriptor = new SimulateRequestDescriptor(); @@ -377,6 +651,10 @@ public virtual SimulateResponse Simulate(Action, SimulateResponse, SimulateRequestParameters>(descriptor); } + /// + /// Allows to simulate a pipeline with example documents. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task SimulateAsync(CancellationToken cancellationToken = default) { var descriptor = new SimulateRequestDescriptor(); @@ -384,6 +662,20 @@ public virtual Task SimulateAsync(CancellationToken cancellati return DoRequestAsync(descriptor); } + /// + /// Allows to simulate a pipeline with example documents. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task SimulateAsync(SimulateRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Allows to simulate a pipeline with example documents. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task SimulateAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new SimulateRequestDescriptor(); @@ -392,6 +684,20 @@ public virtual Task SimulateAsync(Action(descriptor); } + /// + /// Allows to simulate a pipeline with example documents. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task SimulateAsync(SimulateRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, SimulateResponse, SimulateRequestParameters>(descriptor); + } + + /// + /// Allows to simulate a pipeline with example documents. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task SimulateAsync(Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new SimulateRequestDescriptor(); 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 6245962ffa3..0b070e0b803 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Sql.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.Sql.g.cs @@ -56,13 +56,20 @@ public virtual Task ClearCursorAsync(ClearCursorRequest req return DoRequestAsync(request, cancellationToken); } - public virtual ClearCursorResponse ClearCursor() + /// + /// Clears the SQL cursor + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ClearCursorResponse ClearCursor(ClearCursorRequestDescriptor descriptor) { - var descriptor = new ClearCursorRequestDescriptor(); descriptor.BeforeRequest(); return DoRequest(descriptor); } + /// + /// Clears the SQL cursor + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ClearCursorResponse ClearCursor(Action configureRequest) { var descriptor = new ClearCursorRequestDescriptor(); @@ -71,13 +78,20 @@ public virtual ClearCursorResponse ClearCursor(Action(descriptor); } - public virtual Task ClearCursorAsync(CancellationToken cancellationToken = default) + /// + /// Clears the SQL cursor + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ClearCursorAsync(ClearCursorRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new ClearCursorRequestDescriptor(); descriptor.BeforeRequest(); return DoRequestAsync(descriptor); } + /// + /// Clears the SQL cursor + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ClearCursorAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new ClearCursorRequestDescriptor(); @@ -106,6 +120,10 @@ public virtual Task DeleteAsyncSearchAsync(DeleteAsyncReque return DoRequestAsync(request, cancellationToken); } + /// + /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual DeleteAsyncResponse DeleteAsyncSearch(Elastic.Clients.Elasticsearch.Id id) { var descriptor = new DeleteAsyncRequestDescriptor(id); @@ -113,6 +131,20 @@ public virtual DeleteAsyncResponse DeleteAsyncSearch(Elastic.Clients.Elasticsear return DoRequest(descriptor); } + /// + /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteAsyncResponse DeleteAsyncSearch(DeleteAsyncRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual DeleteAsyncResponse DeleteAsyncSearch(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) { var descriptor = new DeleteAsyncRequestDescriptor(id); @@ -121,6 +153,20 @@ public virtual DeleteAsyncResponse DeleteAsyncSearch(Elastic.Clients.Elasticsear return DoRequest(descriptor); } + /// + /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteAsyncResponse DeleteAsyncSearch(DeleteAsyncRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, DeleteAsyncResponse, DeleteAsyncRequestParameters>(descriptor); + } + + /// + /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual DeleteAsyncResponse DeleteAsyncSearch(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { var descriptor = new DeleteAsyncRequestDescriptor(id); @@ -129,6 +175,10 @@ public virtual DeleteAsyncResponse DeleteAsyncSearch(Elastic.Clients. return DoRequest, DeleteAsyncResponse, DeleteAsyncRequestParameters>(descriptor); } + /// + /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeleteAsyncSearchAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { var descriptor = new DeleteAsyncRequestDescriptor(id); @@ -136,6 +186,20 @@ public virtual Task DeleteAsyncSearchAsync(Elastic.Clients. return DoRequestAsync(descriptor); } + /// + /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsyncSearchAsync(DeleteAsyncRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeleteAsyncSearchAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new DeleteAsyncRequestDescriptor(id); @@ -144,6 +208,20 @@ public virtual Task DeleteAsyncSearchAsync(Elastic.Clients. return DoRequestAsync(descriptor); } + /// + /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsyncSearchAsync(DeleteAsyncRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteAsyncResponse, DeleteAsyncRequestParameters>(descriptor); + } + + /// + /// Deletes an async SQL search or a stored synchronous SQL search. If the search is still running, the API cancels it. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeleteAsyncSearchAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new DeleteAsyncRequestDescriptor(id); @@ -172,6 +250,10 @@ public virtual Task GetAsyncSearchAsync(GetAsyncRequest reques return DoRequestAsync(request, cancellationToken); } + /// + /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetAsyncResponse GetAsyncSearch(Elastic.Clients.Elasticsearch.Id id) { var descriptor = new GetAsyncRequestDescriptor(id); @@ -179,6 +261,20 @@ public virtual GetAsyncResponse GetAsyncSearch(Elastic.Clients.Elasticsearch.Id return DoRequest(descriptor); } + /// + /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetAsyncResponse GetAsyncSearch(GetAsyncRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetAsyncResponse GetAsyncSearch(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) { var descriptor = new GetAsyncRequestDescriptor(id); @@ -187,6 +283,20 @@ public virtual GetAsyncResponse GetAsyncSearch(Elastic.Clients.Elasticsearch.Id return DoRequest(descriptor); } + /// + /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetAsyncResponse GetAsyncSearch(GetAsyncRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, GetAsyncResponse, GetAsyncRequestParameters>(descriptor); + } + + /// + /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetAsyncResponse GetAsyncSearch(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { var descriptor = new GetAsyncRequestDescriptor(id); @@ -195,6 +305,10 @@ public virtual GetAsyncResponse GetAsyncSearch(Elastic.Clients.Elasti return DoRequest, GetAsyncResponse, GetAsyncRequestParameters>(descriptor); } + /// + /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetAsyncSearchAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { var descriptor = new GetAsyncRequestDescriptor(id); @@ -202,6 +316,20 @@ public virtual Task GetAsyncSearchAsync(Elastic.Clients.Elasti return DoRequestAsync(descriptor); } + /// + /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsyncSearchAsync(GetAsyncRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetAsyncSearchAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new GetAsyncRequestDescriptor(id); @@ -210,6 +338,20 @@ public virtual Task GetAsyncSearchAsync(Elastic.Clients.Elasti return DoRequestAsync(descriptor); } + /// + /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsyncSearchAsync(GetAsyncRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, GetAsyncResponse, GetAsyncRequestParameters>(descriptor); + } + + /// + /// Returns the current status and available results for an async SQL search or stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetAsyncSearchAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new GetAsyncRequestDescriptor(id); @@ -238,6 +380,10 @@ public virtual Task GetAsyncSearchStatusAsync(GetAsyncSt return DoRequestAsync(request, cancellationToken); } + /// + /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetAsyncStatusResponse GetAsyncSearchStatus(Elastic.Clients.Elasticsearch.Id id) { var descriptor = new GetAsyncStatusRequestDescriptor(id); @@ -245,6 +391,20 @@ public virtual GetAsyncStatusResponse GetAsyncSearchStatus(Elastic.Clients.Elast return DoRequest(descriptor); } + /// + /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetAsyncStatusResponse GetAsyncSearchStatus(GetAsyncStatusRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetAsyncStatusResponse GetAsyncSearchStatus(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) { var descriptor = new GetAsyncStatusRequestDescriptor(id); @@ -253,6 +413,20 @@ public virtual GetAsyncStatusResponse GetAsyncSearchStatus(Elastic.Clients.Elast return DoRequest(descriptor); } + /// + /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetAsyncStatusResponse GetAsyncSearchStatus(GetAsyncStatusRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, GetAsyncStatusResponse, GetAsyncStatusRequestParameters>(descriptor); + } + + /// + /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetAsyncStatusResponse GetAsyncSearchStatus(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { var descriptor = new GetAsyncStatusRequestDescriptor(id); @@ -261,6 +435,10 @@ public virtual GetAsyncStatusResponse GetAsyncSearchStatus(Elastic.Cl return DoRequest, GetAsyncStatusResponse, GetAsyncStatusRequestParameters>(descriptor); } + /// + /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetAsyncSearchStatusAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { var descriptor = new GetAsyncStatusRequestDescriptor(id); @@ -268,6 +446,20 @@ public virtual Task GetAsyncSearchStatusAsync(Elastic.Cl return DoRequestAsync(descriptor); } + /// + /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsyncSearchStatusAsync(GetAsyncStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetAsyncSearchStatusAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new GetAsyncStatusRequestDescriptor(id); @@ -276,6 +468,20 @@ public virtual Task GetAsyncSearchStatusAsync(Elastic.Cl return DoRequestAsync(descriptor); } + /// + /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetAsyncSearchStatusAsync(GetAsyncStatusRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, GetAsyncStatusResponse, GetAsyncStatusRequestParameters>(descriptor); + } + + /// + /// Returns the current status of an async SQL search or a stored synchronous SQL search + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetAsyncSearchStatusAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new GetAsyncStatusRequestDescriptor(id); @@ -304,6 +510,10 @@ public virtual Task QueryAsync(QueryRequest request, Cancellation return DoRequestAsync(request, cancellationToken); } + /// + /// Executes a SQL request + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual QueryResponse Query() { var descriptor = new QueryRequestDescriptor(); @@ -311,6 +521,20 @@ public virtual QueryResponse Query() return DoRequest(descriptor); } + /// + /// Executes a SQL request + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual QueryResponse Query(QueryRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Executes a SQL request + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual QueryResponse Query(Action configureRequest) { var descriptor = new QueryRequestDescriptor(); @@ -319,6 +543,20 @@ public virtual QueryResponse Query(Action configureReque return DoRequest(descriptor); } + /// + /// Executes a SQL request + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual QueryResponse Query(QueryRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, QueryResponse, QueryRequestParameters>(descriptor); + } + + /// + /// Executes a SQL request + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual QueryResponse Query(Action> configureRequest) { var descriptor = new QueryRequestDescriptor(); @@ -327,6 +565,10 @@ public virtual QueryResponse Query(Action, QueryResponse, QueryRequestParameters>(descriptor); } + /// + /// Executes a SQL request + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task QueryAsync(CancellationToken cancellationToken = default) { var descriptor = new QueryRequestDescriptor(); @@ -334,6 +576,20 @@ public virtual Task QueryAsync(CancellationToken cancellationToke return DoRequestAsync(descriptor); } + /// + /// Executes a SQL request + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryAsync(QueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Executes a SQL request + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task QueryAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new QueryRequestDescriptor(); @@ -342,6 +598,20 @@ public virtual Task QueryAsync(Action con return DoRequestAsync(descriptor); } + /// + /// Executes a SQL request + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task QueryAsync(QueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, QueryResponse, QueryRequestParameters>(descriptor); + } + + /// + /// Executes a SQL request + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task QueryAsync(Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new QueryRequestDescriptor(); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs index aef1ce9831a..30606837204 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Client/ElasticsearchClient.g.cs @@ -63,13 +63,20 @@ public virtual Task BulkAsync(BulkRequest request, CancellationTok return DoRequestAsync(request, cancellationToken); } - public virtual BulkResponse Bulk() + /// + /// 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(BulkRequestDescriptor descriptor) { - var descriptor = new BulkRequestDescriptor(); descriptor.BeforeRequest(); return DoRequest(descriptor); } + /// + /// 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(Action configureRequest) { var descriptor = new BulkRequestDescriptor(); @@ -78,6 +85,20 @@ public virtual BulkResponse Bulk(Action configureRequest) return DoRequest(descriptor); } + /// + /// 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(BulkRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, BulkResponse, BulkRequestParameters>(descriptor); + } + + /// + /// 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(Action> configureRequest) { var descriptor = new BulkRequestDescriptor(); @@ -86,13 +107,20 @@ public virtual BulkResponse Bulk(Action, BulkResponse, BulkRequestParameters>(descriptor); } - public virtual Task BulkAsync(CancellationToken cancellationToken = default) + /// + /// Allows to perform multiple index/update/delete operations in a single request. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task BulkAsync(BulkRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new BulkRequestDescriptor(); descriptor.BeforeRequest(); return DoRequestAsync(descriptor); } + /// + /// Allows to perform multiple index/update/delete operations in a single request. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task BulkAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new BulkRequestDescriptor(); @@ -101,6 +129,20 @@ public virtual Task BulkAsync(Action config return DoRequestAsync(descriptor); } + /// + /// Allows to perform multiple index/update/delete operations in a single request. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task BulkAsync(BulkRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, BulkResponse, BulkRequestParameters>(descriptor); + } + + /// + /// Allows to perform multiple index/update/delete operations in a single request. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task BulkAsync(Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new BulkRequestDescriptor(); @@ -129,6 +171,10 @@ public virtual Task ClearScrollAsync(ClearScrollRequest req return DoRequestAsync(request, cancellationToken); } + /// + /// Explicitly clears the search context for a scroll. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ClearScrollResponse ClearScroll() { var descriptor = new ClearScrollRequestDescriptor(); @@ -136,6 +182,20 @@ public virtual ClearScrollResponse ClearScroll() return DoRequest(descriptor); } + /// + /// Explicitly clears the search context for a scroll. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ClearScrollResponse ClearScroll(ClearScrollRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Explicitly clears the search context for a scroll. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ClearScrollResponse ClearScroll(Action configureRequest) { var descriptor = new ClearScrollRequestDescriptor(); @@ -144,6 +204,10 @@ public virtual ClearScrollResponse ClearScroll(Action(descriptor); } + /// + /// Explicitly clears the search context for a scroll. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ClearScrollAsync(CancellationToken cancellationToken = default) { var descriptor = new ClearScrollRequestDescriptor(); @@ -151,6 +215,20 @@ public virtual Task ClearScrollAsync(CancellationToken canc return DoRequestAsync(descriptor); } + /// + /// Explicitly clears the search context for a scroll. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ClearScrollAsync(ClearScrollRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Explicitly clears the search context for a scroll. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ClearScrollAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new ClearScrollRequestDescriptor(); @@ -179,6 +257,10 @@ public virtual Task ClosePointInTimeAsync(ClosePointIn return DoRequestAsync(request, cancellationToken); } + /// + /// Close a point in time + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ClosePointInTimeResponse ClosePointInTime() { var descriptor = new ClosePointInTimeRequestDescriptor(); @@ -186,6 +268,20 @@ public virtual ClosePointInTimeResponse ClosePointInTime() return DoRequest(descriptor); } + /// + /// Close a point in time + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ClosePointInTimeResponse ClosePointInTime(ClosePointInTimeRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Close a point in time + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ClosePointInTimeResponse ClosePointInTime(Action configureRequest) { var descriptor = new ClosePointInTimeRequestDescriptor(); @@ -194,6 +290,10 @@ public virtual ClosePointInTimeResponse ClosePointInTime(Action(descriptor); } + /// + /// Close a point in time + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ClosePointInTimeAsync(CancellationToken cancellationToken = default) { var descriptor = new ClosePointInTimeRequestDescriptor(); @@ -201,6 +301,20 @@ public virtual Task ClosePointInTimeAsync(Cancellation return DoRequestAsync(descriptor); } + /// + /// Close a point in time + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ClosePointInTimeAsync(ClosePointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Close a point in time + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ClosePointInTimeAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new ClosePointInTimeRequestDescriptor(); @@ -229,6 +343,10 @@ public virtual Task CountAsync(CountRequest request, Cancellation return DoRequestAsync(request, cancellationToken); } + /// + /// Returns number of documents matching a query. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual CountResponse Count() { var descriptor = new CountRequestDescriptor(); @@ -236,6 +354,20 @@ public virtual CountResponse Count() return DoRequest(descriptor); } + /// + /// Returns number of documents matching a query. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual CountResponse Count(CountRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns number of documents matching a query. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual CountResponse Count(Action configureRequest) { var descriptor = new CountRequestDescriptor(); @@ -244,6 +376,20 @@ public virtual CountResponse Count(Action configureReque return DoRequest(descriptor); } + /// + /// Returns number of documents matching a query. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual CountResponse Count(CountRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, CountResponse, CountRequestParameters>(descriptor); + } + + /// + /// Returns number of documents matching a query. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual CountResponse Count(Action> configureRequest) { var descriptor = new CountRequestDescriptor(); @@ -252,6 +398,10 @@ public virtual CountResponse Count(Action, CountResponse, CountRequestParameters>(descriptor); } + /// + /// Returns number of documents matching a query. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task CountAsync(CancellationToken cancellationToken = default) { var descriptor = new CountRequestDescriptor(); @@ -259,6 +409,20 @@ public virtual Task CountAsync(CancellationToken cancellationToke return DoRequestAsync(descriptor); } + /// + /// Returns number of documents matching a query. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CountAsync(CountRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns number of documents matching a query. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task CountAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new CountRequestDescriptor(); @@ -267,6 +431,20 @@ public virtual Task CountAsync(Action con return DoRequestAsync(descriptor); } + /// + /// Returns number of documents matching a query. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task CountAsync(CountRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, CountResponse, CountRequestParameters>(descriptor); + } + + /// + /// Returns number of documents matching a query. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task CountAsync(Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new CountRequestDescriptor(); @@ -297,13 +475,22 @@ public virtual Task CreateAsync(CreateRequest, CreateResponse, CreateRequestParameters>(request, cancellationToken); } - public virtual CreateResponse Create(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) + /// + /// 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(CreateRequestDescriptor descriptor) { - var descriptor = new CreateRequestDescriptor(document, index, id); descriptor.BeforeRequest(); return DoRequest, CreateResponse, CreateRequestParameters>(descriptor); } + /// + /// 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(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { var descriptor = new CreateRequestDescriptor(document, index, id); @@ -312,13 +499,11 @@ public virtual CreateResponse Create(TDocument document, Elastic.Clie return DoRequest, CreateResponse, CreateRequestParameters>(descriptor); } - public virtual CreateResponse Create(TDocument document) - { - var descriptor = new CreateRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequest, CreateResponse, CreateRequestParameters>(descriptor); - } - + /// + /// 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(TDocument document, Action> configureRequest) { var descriptor = new CreateRequestDescriptor(document); @@ -327,13 +512,22 @@ public virtual CreateResponse Create(TDocument document, Action, CreateResponse, CreateRequestParameters>(descriptor); } - public virtual Task CreateAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + /// + /// 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 Task CreateAsync(CreateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new CreateRequestDescriptor(document, index, id); descriptor.BeforeRequest(); return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor); } + /// + /// 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 Task CreateAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new CreateRequestDescriptor(document, index, id); @@ -342,13 +536,11 @@ public virtual Task CreateAsync(TDocument document, E return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor); } - public virtual Task CreateAsync(TDocument document, CancellationToken cancellationToken = default) - { - var descriptor = new CreateRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequestAsync, CreateResponse, CreateRequestParameters>(descriptor); - } - + /// + /// 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 Task CreateAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new CreateRequestDescriptor(document); @@ -377,13 +569,20 @@ public virtual Task DeleteByQueryAsync(DeleteByQueryReque return DoRequestAsync(request, cancellationToken); } - public virtual DeleteByQueryResponse DeleteByQuery(Elastic.Clients.Elasticsearch.Indices indices) + /// + /// Deletes documents matching the provided query. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteByQueryResponse DeleteByQuery(DeleteByQueryRequestDescriptor descriptor) { - var descriptor = new DeleteByQueryRequestDescriptor(indices); descriptor.BeforeRequest(); return DoRequest(descriptor); } + /// + /// Deletes documents matching the provided query. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual DeleteByQueryResponse DeleteByQuery(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) { var descriptor = new DeleteByQueryRequestDescriptor(indices); @@ -392,6 +591,20 @@ public virtual DeleteByQueryResponse DeleteByQuery(Elastic.Clients.Elasticsearch return DoRequest(descriptor); } + /// + /// Deletes documents matching the provided query. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteByQueryResponse DeleteByQuery(DeleteByQueryRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor); + } + + /// + /// Deletes documents matching the provided query. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual DeleteByQueryResponse DeleteByQuery(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) { var descriptor = new DeleteByQueryRequestDescriptor(indices); @@ -400,13 +613,20 @@ public virtual DeleteByQueryResponse DeleteByQuery(Elastic.Clients.El return DoRequest, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor); } - public virtual Task DeleteByQueryAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) + /// + /// Deletes documents matching the provided query. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteByQueryAsync(DeleteByQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new DeleteByQueryRequestDescriptor(indices); descriptor.BeforeRequest(); return DoRequestAsync(descriptor); } + /// + /// Deletes documents matching the provided query. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeleteByQueryAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new DeleteByQueryRequestDescriptor(indices); @@ -415,17 +635,31 @@ public virtual Task DeleteByQueryAsync(Elastic.Clients.El return DoRequestAsync(descriptor); } - public virtual Task DeleteByQueryAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) + /// + /// Deletes documents matching the provided query. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteByQueryAsync(DeleteByQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new DeleteByQueryRequestDescriptor(indices); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return DoRequestAsync, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor); } /// - /// Changes the number of requests per second for a particular Delete By Query operation. - /// Learn more about this API in the Elasticsearch documentation. + /// Deletes documents matching the provided query. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteByQueryAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) + { + var descriptor = new DeleteByQueryRequestDescriptor(indices); + configureRequest?.Invoke(descriptor); + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteByQueryResponse, DeleteByQueryRequestParameters>(descriptor); + } + + /// + /// Changes the number of requests per second for a particular Delete By Query operation. + /// Learn more about this API in the Elasticsearch documentation. /// public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(DeleteByQueryRethrottleRequest request) { @@ -443,6 +677,10 @@ public virtual Task DeleteByQueryRethrottleAsyn return DoRequestAsync(request, cancellationToken); } + /// + /// Changes the number of requests per second for a particular Delete By Query operation. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(Elastic.Clients.Elasticsearch.TaskId task_id) { var descriptor = new DeleteByQueryRethrottleRequestDescriptor(task_id); @@ -450,6 +688,20 @@ public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(Elastic.C return DoRequest(descriptor); } + /// + /// Changes the number of requests per second for a particular Delete By Query operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(DeleteByQueryRethrottleRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Changes the number of requests per second for a particular Delete By Query operation. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(Elastic.Clients.Elasticsearch.TaskId task_id, Action configureRequest) { var descriptor = new DeleteByQueryRethrottleRequestDescriptor(task_id); @@ -458,6 +710,10 @@ public virtual DeleteByQueryRethrottleResponse DeleteByQueryRethrottle(Elastic.C return DoRequest(descriptor); } + /// + /// Changes the number of requests per second for a particular Delete By Query operation. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeleteByQueryRethrottleAsync(Elastic.Clients.Elasticsearch.TaskId task_id, CancellationToken cancellationToken = default) { var descriptor = new DeleteByQueryRethrottleRequestDescriptor(task_id); @@ -465,6 +721,20 @@ public virtual Task DeleteByQueryRethrottleAsyn return DoRequestAsync(descriptor); } + /// + /// Changes the number of requests per second for a particular Delete By Query operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteByQueryRethrottleAsync(DeleteByQueryRethrottleRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Changes the number of requests per second for a particular Delete By Query operation. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeleteByQueryRethrottleAsync(Elastic.Clients.Elasticsearch.TaskId task_id, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new DeleteByQueryRethrottleRequestDescriptor(task_id); @@ -493,6 +763,10 @@ public virtual Task DeleteAsync(DeleteRequest request, Cancellat return DoRequestAsync(request, cancellationToken); } + /// + /// Removes a document from the index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) { var descriptor = new DeleteRequestDescriptor(index, id); @@ -500,6 +774,20 @@ public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.IndexName ind return DoRequest(descriptor); } + /// + /// Removes a document from the index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteResponse Delete(DeleteRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Removes a document from the index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action configureRequest) { var descriptor = new DeleteRequestDescriptor(index, id); @@ -508,6 +796,10 @@ public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.IndexName ind return DoRequest(descriptor); } + /// + /// Removes a document from the index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.Id id) { var descriptor = new DeleteRequestDescriptor(typeof(TDocument), id); @@ -515,6 +807,10 @@ public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.Id return DoRequest, DeleteResponse, DeleteRequestParameters>(descriptor); } + /// + /// Removes a document from the index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { var descriptor = new DeleteRequestDescriptor(typeof(TDocument), id); @@ -523,6 +819,20 @@ public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.Id return DoRequest, DeleteResponse, DeleteRequestParameters>(descriptor); } + /// + /// Removes a document from the index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteResponse Delete(DeleteRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, DeleteResponse, DeleteRequestParameters>(descriptor); + } + + /// + /// Removes a document from the index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { var descriptor = new DeleteRequestDescriptor(index, id); @@ -531,6 +841,10 @@ public virtual DeleteResponse Delete(Elastic.Clients.Elasticsearch.In return DoRequest, DeleteResponse, DeleteRequestParameters>(descriptor); } + /// + /// Removes a document from the index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { var descriptor = new DeleteRequestDescriptor(index, id); @@ -538,6 +852,20 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.In return DoRequestAsync(descriptor); } + /// + /// Removes a document from the index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(DeleteRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Removes a document from the index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new DeleteRequestDescriptor(index, id); @@ -546,6 +874,10 @@ public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.In return DoRequestAsync(descriptor); } + /// + /// Removes a document from the index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { var descriptor = new DeleteRequestDescriptor(typeof(TDocument), id); @@ -553,6 +885,10 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor); } + /// + /// Removes a document from the index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new DeleteRequestDescriptor(typeof(TDocument), id); @@ -561,6 +897,20 @@ public virtual Task DeleteAsync(Elastic.Clients.Elast return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor); } + /// + /// Removes a document from the index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteAsync(DeleteRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteResponse, DeleteRequestParameters>(descriptor); + } + + /// + /// Removes a document from the index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeleteAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new DeleteRequestDescriptor(index, id); @@ -589,6 +939,10 @@ public virtual Task DeleteScriptAsync(DeleteScriptRequest return DoRequestAsync(request, cancellationToken); } + /// + /// Deletes a script. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual DeleteScriptResponse DeleteScript(Elastic.Clients.Elasticsearch.Id id) { var descriptor = new DeleteScriptRequestDescriptor(id); @@ -596,6 +950,20 @@ public virtual DeleteScriptResponse DeleteScript(Elastic.Clients.Elasticsearch.I return DoRequest(descriptor); } + /// + /// Deletes a script. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteScriptResponse DeleteScript(DeleteScriptRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Deletes a script. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual DeleteScriptResponse DeleteScript(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) { var descriptor = new DeleteScriptRequestDescriptor(id); @@ -604,6 +972,20 @@ public virtual DeleteScriptResponse DeleteScript(Elastic.Clients.Elasticsearch.I return DoRequest(descriptor); } + /// + /// Deletes a script. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual DeleteScriptResponse DeleteScript(DeleteScriptRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, DeleteScriptResponse, DeleteScriptRequestParameters>(descriptor); + } + + /// + /// Deletes a script. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual DeleteScriptResponse DeleteScript(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { var descriptor = new DeleteScriptRequestDescriptor(id); @@ -612,6 +994,10 @@ public virtual DeleteScriptResponse DeleteScript(Elastic.Clients.Elas return DoRequest, DeleteScriptResponse, DeleteScriptRequestParameters>(descriptor); } + /// + /// Deletes a script. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeleteScriptAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { var descriptor = new DeleteScriptRequestDescriptor(id); @@ -619,6 +1005,20 @@ public virtual Task DeleteScriptAsync(Elastic.Clients.Elas return DoRequestAsync(descriptor); } + /// + /// Deletes a script. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteScriptAsync(DeleteScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Deletes a script. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeleteScriptAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new DeleteScriptRequestDescriptor(id); @@ -627,6 +1027,20 @@ public virtual Task DeleteScriptAsync(Elastic.Clients.Elas return DoRequestAsync(descriptor); } + /// + /// Deletes a script. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task DeleteScriptAsync(DeleteScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, DeleteScriptResponse, DeleteScriptRequestParameters>(descriptor); + } + + /// + /// Deletes a script. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task DeleteScriptAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new DeleteScriptRequestDescriptor(id); @@ -655,6 +1069,10 @@ public virtual Task ExistsAsync(ExistsRequest request, Cancellat return DoRequestAsync(request, cancellationToken); } + /// + /// Returns information about whether a document exists in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) { var descriptor = new ExistsRequestDescriptor(index, id); @@ -662,6 +1080,20 @@ public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.IndexName ind return DoRequest(descriptor); } + /// + /// Returns information about whether a document exists in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExistsResponse Exists(ExistsRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns information about whether a document exists in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action configureRequest) { var descriptor = new ExistsRequestDescriptor(index, id); @@ -670,6 +1102,10 @@ public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.IndexName ind return DoRequest(descriptor); } + /// + /// Returns information about whether a document exists in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Id id) { var descriptor = new ExistsRequestDescriptor(typeof(TDocument), id); @@ -677,6 +1113,10 @@ public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Id return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); } + /// + /// Returns information about whether a document exists in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { var descriptor = new ExistsRequestDescriptor(typeof(TDocument), id); @@ -685,6 +1125,20 @@ public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.Id return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); } + /// + /// Returns information about whether a document exists in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExistsResponse Exists(ExistsRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); + } + + /// + /// Returns information about whether a document exists in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { var descriptor = new ExistsRequestDescriptor(index, id); @@ -693,6 +1147,10 @@ public virtual ExistsResponse Exists(Elastic.Clients.Elasticsearch.In return DoRequest, ExistsResponse, ExistsRequestParameters>(descriptor); } + /// + /// Returns information about whether a document exists in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { var descriptor = new ExistsRequestDescriptor(index, id); @@ -700,6 +1158,20 @@ public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.In return DoRequestAsync(descriptor); } + /// + /// Returns information about whether a document exists in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsAsync(ExistsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns information about whether a document exists in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new ExistsRequestDescriptor(index, id); @@ -708,6 +1180,10 @@ public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.In return DoRequestAsync(descriptor); } + /// + /// Returns information about whether a document exists in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { var descriptor = new ExistsRequestDescriptor(typeof(TDocument), id); @@ -715,6 +1191,10 @@ public virtual Task ExistsAsync(Elastic.Clients.Elast return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor); } + /// + /// Returns information about whether a document exists in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new ExistsRequestDescriptor(typeof(TDocument), id); @@ -723,6 +1203,20 @@ public virtual Task ExistsAsync(Elastic.Clients.Elast return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor); } + /// + /// Returns information about whether a document exists in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsAsync(ExistsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsResponse, ExistsRequestParameters>(descriptor); + } + + /// + /// Returns information about whether a document exists in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ExistsAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new ExistsRequestDescriptor(index, id); @@ -751,6 +1245,10 @@ public virtual Task ExistsSourceAsync(ExistsSourceRequest return DoRequestAsync(request, 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(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) { var descriptor = new ExistsSourceRequestDescriptor(index, id); @@ -758,6 +1256,20 @@ public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elasticsearch.I return DoRequest(descriptor); } + /// + /// Returns information about whether a document source exists in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExistsSourceResponse ExistsSource(ExistsSourceRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns information about whether a document source exists in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action configureRequest) { var descriptor = new ExistsSourceRequestDescriptor(index, id); @@ -766,6 +1278,10 @@ public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elasticsearch.I return DoRequest(descriptor); } + /// + /// Returns information about whether a document source exists in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elasticsearch.Id id) { var descriptor = new ExistsSourceRequestDescriptor(typeof(TDocument), id); @@ -773,6 +1289,10 @@ public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elas return DoRequest, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor); } + /// + /// Returns information about whether a document source exists in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { var descriptor = new ExistsSourceRequestDescriptor(typeof(TDocument), id); @@ -781,6 +1301,20 @@ public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elas return DoRequest, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor); } + /// + /// Returns information about whether a document source exists in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExistsSourceResponse ExistsSource(ExistsSourceRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor); + } + + /// + /// Returns information about whether a document source exists in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { var descriptor = new ExistsSourceRequestDescriptor(index, id); @@ -789,6 +1323,10 @@ public virtual ExistsSourceResponse ExistsSource(Elastic.Clients.Elas return DoRequest, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor); } + /// + /// Returns information about whether a document source exists in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ExistsSourceAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { var descriptor = new ExistsSourceRequestDescriptor(index, id); @@ -796,6 +1334,20 @@ public virtual Task ExistsSourceAsync(Elastic.Clients.Elas return DoRequestAsync(descriptor); } + /// + /// Returns information about whether a document source exists in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsSourceAsync(ExistsSourceRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns information about whether a document source exists in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ExistsSourceAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new ExistsSourceRequestDescriptor(index, id); @@ -804,6 +1356,10 @@ public virtual Task ExistsSourceAsync(Elastic.Clients.Elas return DoRequestAsync(descriptor); } + /// + /// Returns information about whether a document source exists in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ExistsSourceAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { var descriptor = new ExistsSourceRequestDescriptor(typeof(TDocument), id); @@ -811,6 +1367,10 @@ public virtual Task ExistsSourceAsync(Elastic.C return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor); } + /// + /// Returns information about whether a document source exists in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ExistsSourceAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new ExistsSourceRequestDescriptor(typeof(TDocument), id); @@ -819,6 +1379,20 @@ public virtual Task ExistsSourceAsync(Elastic.C return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor); } + /// + /// Returns information about whether a document source exists in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ExistsSourceAsync(ExistsSourceRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, ExistsSourceResponse, ExistsSourceRequestParameters>(descriptor); + } + + /// + /// Returns information about whether a document source exists in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ExistsSourceAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new ExistsSourceRequestDescriptor(index, id); @@ -847,6 +1421,10 @@ public virtual Task> ExplainAsync(ExplainR return DoRequestAsync, ExplainRequestParameters>(request, cancellationToken); } + /// + /// Returns information about why a specific matches (or doesn't match) a query. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ExplainResponse Explain(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) { var descriptor = new ExplainRequestDescriptor(index, id); @@ -854,6 +1432,20 @@ public virtual ExplainResponse Explain(Elastic.Clients.Ela return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); } + /// + /// Returns information about why a specific matches (or doesn't match) a query. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ExplainResponse Explain(ExplainRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); + } + + /// + /// Returns information about why a specific matches (or doesn't match) a query. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ExplainResponse Explain(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { var descriptor = new ExplainRequestDescriptor(index, id); @@ -862,6 +1454,10 @@ public virtual ExplainResponse Explain(Elastic.Clients.Ela return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); } + /// + /// Returns information about why a specific matches (or doesn't match) a query. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ExplainResponse Explain(Elastic.Clients.Elasticsearch.Id id) { var descriptor = new ExplainRequestDescriptor(typeof(TDocument), id); @@ -869,6 +1465,10 @@ public virtual ExplainResponse Explain(Elastic.Clients.Ela return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); } + /// + /// Returns information about why a specific matches (or doesn't match) a query. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ExplainResponse Explain(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { var descriptor = new ExplainRequestDescriptor(typeof(TDocument), id); @@ -877,6 +1477,10 @@ public virtual ExplainResponse Explain(Elastic.Clients.Ela return DoRequest, ExplainResponse, ExplainRequestParameters>(descriptor); } + /// + /// Returns information about why a specific matches (or doesn't match) a query. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> ExplainAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { var descriptor = new ExplainRequestDescriptor(index, id); @@ -884,6 +1488,20 @@ public virtual Task> ExplainAsync(Elastic. return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor); } + /// + /// Returns information about why a specific matches (or doesn't match) a query. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> ExplainAsync(ExplainRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor); + } + + /// + /// Returns information about why a specific matches (or doesn't match) a query. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> ExplainAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new ExplainRequestDescriptor(index, id); @@ -892,6 +1510,10 @@ public virtual Task> ExplainAsync(Elastic. return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor); } + /// + /// Returns information about why a specific matches (or doesn't match) a query. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> ExplainAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { var descriptor = new ExplainRequestDescriptor(typeof(TDocument), id); @@ -899,6 +1521,10 @@ public virtual Task> ExplainAsync(Elastic. return DoRequestAsync, ExplainResponse, ExplainRequestParameters>(descriptor); } + /// + /// Returns information about why a specific matches (or doesn't match) a query. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> ExplainAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new ExplainRequestDescriptor(typeof(TDocument), id); @@ -927,6 +1553,10 @@ public virtual Task FieldCapsAsync(FieldCapsRequest request, return DoRequestAsync(request, 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() { var descriptor = new FieldCapsRequestDescriptor(); @@ -934,6 +1564,20 @@ public virtual FieldCapsResponse FieldCaps() return DoRequest(descriptor); } + /// + /// Returns the information about the capabilities of fields among multiple indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual FieldCapsResponse FieldCaps(FieldCapsRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns the information about the capabilities of fields among multiple indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual FieldCapsResponse FieldCaps(Action configureRequest) { var descriptor = new FieldCapsRequestDescriptor(); @@ -942,6 +1586,20 @@ public virtual FieldCapsResponse FieldCaps(Action co return DoRequest(descriptor); } + /// + /// Returns the information about the capabilities of fields among multiple indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual FieldCapsResponse FieldCaps(FieldCapsRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, FieldCapsResponse, FieldCapsRequestParameters>(descriptor); + } + + /// + /// Returns the information about the capabilities of fields among multiple indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual FieldCapsResponse FieldCaps(Action> configureRequest) { var descriptor = new FieldCapsRequestDescriptor(); @@ -950,6 +1608,10 @@ public virtual FieldCapsResponse FieldCaps(Action, FieldCapsResponse, FieldCapsRequestParameters>(descriptor); } + /// + /// Returns the information about the capabilities of fields among multiple indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task FieldCapsAsync(CancellationToken cancellationToken = default) { var descriptor = new FieldCapsRequestDescriptor(); @@ -957,6 +1619,20 @@ public virtual Task FieldCapsAsync(CancellationToken cancella return DoRequestAsync(descriptor); } + /// + /// Returns the information about the capabilities of fields among multiple indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FieldCapsAsync(FieldCapsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns the information about the capabilities of fields among multiple indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task FieldCapsAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new FieldCapsRequestDescriptor(); @@ -965,6 +1641,20 @@ public virtual Task FieldCapsAsync(Action(descriptor); } + /// + /// Returns the information about the capabilities of fields among multiple indices. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task FieldCapsAsync(FieldCapsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, FieldCapsResponse, FieldCapsRequestParameters>(descriptor); + } + + /// + /// Returns the information about the capabilities of fields among multiple indices. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task FieldCapsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new FieldCapsRequestDescriptor(); @@ -987,19 +1677,37 @@ public virtual GetResponse Get(GetRequest request) /// Returns a document. /// Learn more about this API in the Elasticsearch documentation. /// - public virtual Task> GetAsync(GetRequest request, CancellationToken cancellationToken = default) - { - request.BeforeRequest(); - return DoRequestAsync, GetRequestParameters>(request, cancellationToken); - } - - public virtual GetResponse Get(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) + public virtual Task> GetAsync(GetRequest request, CancellationToken cancellationToken = default) + { + request.BeforeRequest(); + return DoRequestAsync, GetRequestParameters>(request, cancellationToken); + } + + /// + /// Returns a document. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetResponse Get(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) + { + var descriptor = new GetRequestDescriptor(index, id); + descriptor.BeforeRequest(); + return DoRequest, GetResponse, GetRequestParameters>(descriptor); + } + + /// + /// Returns a document. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetResponse Get(GetRequestDescriptor descriptor) { - var descriptor = new GetRequestDescriptor(index, id); descriptor.BeforeRequest(); return DoRequest, GetResponse, GetRequestParameters>(descriptor); } + /// + /// Returns a document. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetResponse Get(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { var descriptor = new GetRequestDescriptor(index, id); @@ -1008,6 +1716,10 @@ public virtual GetResponse Get(Elastic.Clients.Elasticsear return DoRequest, GetResponse, GetRequestParameters>(descriptor); } + /// + /// Returns a document. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetResponse Get(Elastic.Clients.Elasticsearch.Id id) { var descriptor = new GetRequestDescriptor(typeof(TDocument), id); @@ -1015,6 +1727,10 @@ public virtual GetResponse Get(Elastic.Clients.Elasticsear return DoRequest, GetResponse, GetRequestParameters>(descriptor); } + /// + /// Returns a document. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetResponse Get(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { var descriptor = new GetRequestDescriptor(typeof(TDocument), id); @@ -1023,6 +1739,10 @@ public virtual GetResponse Get(Elastic.Clients.Elasticsear return DoRequest, GetResponse, GetRequestParameters>(descriptor); } + /// + /// Returns a document. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { var descriptor = new GetRequestDescriptor(index, id); @@ -1030,6 +1750,20 @@ public virtual Task> GetAsync(Elastic.Clients. return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor); } + /// + /// Returns a document. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetAsync(GetRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor); + } + + /// + /// Returns a document. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new GetRequestDescriptor(index, id); @@ -1038,6 +1772,10 @@ public virtual Task> GetAsync(Elastic.Clients. return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor); } + /// + /// Returns a document. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { var descriptor = new GetRequestDescriptor(typeof(TDocument), id); @@ -1045,6 +1783,10 @@ public virtual Task> GetAsync(Elastic.Clients. return DoRequestAsync, GetResponse, GetRequestParameters>(descriptor); } + /// + /// Returns a document. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> GetAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new GetRequestDescriptor(typeof(TDocument), id); @@ -1073,6 +1815,10 @@ public virtual Task GetScriptContextAsync(GetScriptCon return DoRequestAsync(request, cancellationToken); } + /// + /// Returns all script contexts. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetScriptContextResponse GetScriptContext() { var descriptor = new GetScriptContextRequestDescriptor(); @@ -1080,6 +1826,20 @@ public virtual GetScriptContextResponse GetScriptContext() return DoRequest(descriptor); } + /// + /// Returns all script contexts. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetScriptContextResponse GetScriptContext(GetScriptContextRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns all script contexts. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetScriptContextResponse GetScriptContext(Action configureRequest) { var descriptor = new GetScriptContextRequestDescriptor(); @@ -1088,6 +1848,10 @@ public virtual GetScriptContextResponse GetScriptContext(Action(descriptor); } + /// + /// Returns all script contexts. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetScriptContextAsync(CancellationToken cancellationToken = default) { var descriptor = new GetScriptContextRequestDescriptor(); @@ -1095,6 +1859,20 @@ public virtual Task GetScriptContextAsync(Cancellation return DoRequestAsync(descriptor); } + /// + /// Returns all script contexts. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetScriptContextAsync(GetScriptContextRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns all script contexts. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetScriptContextAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new GetScriptContextRequestDescriptor(); @@ -1123,6 +1901,10 @@ public virtual Task GetScriptLanguagesAsync(GetScrip return DoRequestAsync(request, cancellationToken); } + /// + /// Returns available script types, languages and contexts + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetScriptLanguagesResponse GetScriptLanguages() { var descriptor = new GetScriptLanguagesRequestDescriptor(); @@ -1130,6 +1912,20 @@ public virtual GetScriptLanguagesResponse GetScriptLanguages() return DoRequest(descriptor); } + /// + /// Returns available script types, languages and contexts + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetScriptLanguagesResponse GetScriptLanguages(GetScriptLanguagesRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns available script types, languages and contexts + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetScriptLanguagesResponse GetScriptLanguages(Action configureRequest) { var descriptor = new GetScriptLanguagesRequestDescriptor(); @@ -1138,6 +1934,10 @@ public virtual GetScriptLanguagesResponse GetScriptLanguages(Action(descriptor); } + /// + /// Returns available script types, languages and contexts + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetScriptLanguagesAsync(CancellationToken cancellationToken = default) { var descriptor = new GetScriptLanguagesRequestDescriptor(); @@ -1145,6 +1945,20 @@ public virtual Task GetScriptLanguagesAsync(Cancella return DoRequestAsync(descriptor); } + /// + /// Returns available script types, languages and contexts + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetScriptLanguagesAsync(GetScriptLanguagesRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns available script types, languages and contexts + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetScriptLanguagesAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new GetScriptLanguagesRequestDescriptor(); @@ -1173,6 +1987,10 @@ public virtual Task GetScriptAsync(GetScriptRequest request, return DoRequestAsync(request, cancellationToken); } + /// + /// Returns a script. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetScriptResponse GetScript(Elastic.Clients.Elasticsearch.Id id) { var descriptor = new GetScriptRequestDescriptor(id); @@ -1180,6 +1998,20 @@ public virtual GetScriptResponse GetScript(Elastic.Clients.Elasticsearch.Id id) return DoRequest(descriptor); } + /// + /// Returns a script. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetScriptResponse GetScript(GetScriptRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns a script. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetScriptResponse GetScript(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) { var descriptor = new GetScriptRequestDescriptor(id); @@ -1188,6 +2020,20 @@ public virtual GetScriptResponse GetScript(Elastic.Clients.Elasticsearch.Id id, return DoRequest(descriptor); } + /// + /// Returns a script. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetScriptResponse GetScript(GetScriptRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, GetScriptResponse, GetScriptRequestParameters>(descriptor); + } + + /// + /// Returns a script. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetScriptResponse GetScript(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { var descriptor = new GetScriptRequestDescriptor(id); @@ -1196,6 +2042,10 @@ public virtual GetScriptResponse GetScript(Elastic.Clients.Elasticsea return DoRequest, GetScriptResponse, GetScriptRequestParameters>(descriptor); } + /// + /// Returns a script. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetScriptAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { var descriptor = new GetScriptRequestDescriptor(id); @@ -1203,6 +2053,20 @@ public virtual Task GetScriptAsync(Elastic.Clients.Elasticsea return DoRequestAsync(descriptor); } + /// + /// Returns a script. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetScriptAsync(GetScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns a script. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetScriptAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new GetScriptRequestDescriptor(id); @@ -1211,6 +2075,20 @@ public virtual Task GetScriptAsync(Elastic.Clients.Elasticsea return DoRequestAsync(descriptor); } + /// + /// Returns a script. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task GetScriptAsync(GetScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, GetScriptResponse, GetScriptRequestParameters>(descriptor); + } + + /// + /// Returns a script. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task GetScriptAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new GetScriptRequestDescriptor(id); @@ -1239,6 +2117,10 @@ public virtual Task> GetSourceAsync(GetS return DoRequestAsync, GetSourceRequestParameters>(request, cancellationToken); } + /// + /// Returns the source of a document. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetSourceResponse GetSource(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) { var descriptor = new GetSourceRequestDescriptor(index, id); @@ -1246,6 +2128,20 @@ public virtual GetSourceResponse GetSource(Elastic.Clients return DoRequest, GetSourceResponse, GetSourceRequestParameters>(descriptor); } + /// + /// Returns the source of a document. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual GetSourceResponse GetSource(GetSourceRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, GetSourceResponse, GetSourceRequestParameters>(descriptor); + } + + /// + /// Returns the source of a document. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetSourceResponse GetSource(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { var descriptor = new GetSourceRequestDescriptor(index, id); @@ -1254,6 +2150,10 @@ public virtual GetSourceResponse GetSource(Elastic.Clients return DoRequest, GetSourceResponse, GetSourceRequestParameters>(descriptor); } + /// + /// Returns the source of a document. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetSourceResponse GetSource(Elastic.Clients.Elasticsearch.Id id) { var descriptor = new GetSourceRequestDescriptor(typeof(TDocument), id); @@ -1261,6 +2161,10 @@ public virtual GetSourceResponse GetSource(Elastic.Clients return DoRequest, GetSourceResponse, GetSourceRequestParameters>(descriptor); } + /// + /// Returns the source of a document. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual GetSourceResponse GetSource(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { var descriptor = new GetSourceRequestDescriptor(typeof(TDocument), id); @@ -1269,6 +2173,10 @@ public virtual GetSourceResponse GetSource(Elastic.Clients return DoRequest, GetSourceResponse, GetSourceRequestParameters>(descriptor); } + /// + /// Returns the source of a document. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> GetSourceAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { var descriptor = new GetSourceRequestDescriptor(index, id); @@ -1276,6 +2184,20 @@ public virtual Task> GetSourceAsync(Elas return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor); } + /// + /// Returns the source of a document. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> GetSourceAsync(GetSourceRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor); + } + + /// + /// Returns the source of a document. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> GetSourceAsync(Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new GetSourceRequestDescriptor(index, id); @@ -1284,6 +2206,10 @@ public virtual Task> GetSourceAsync(Elas return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor); } + /// + /// Returns the source of a document. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> GetSourceAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) { var descriptor = new GetSourceRequestDescriptor(typeof(TDocument), id); @@ -1291,6 +2217,10 @@ public virtual Task> GetSourceAsync(Elas return DoRequestAsync, GetSourceResponse, GetSourceRequestParameters>(descriptor); } + /// + /// Returns the source of a document. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> GetSourceAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new GetSourceRequestDescriptor(typeof(TDocument), id); @@ -1319,13 +2249,20 @@ public virtual Task IndexAsync(IndexRequest return DoRequestAsync, IndexResponse, IndexRequestParameters>(request, cancellationToken); } - public virtual IndexResponse Index(TDocument document, Elastic.Clients.Elasticsearch.IndexName index) + /// + /// Creates or updates a document in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual IndexResponse Index(IndexRequestDescriptor descriptor) { - var descriptor = new IndexRequestDescriptor(document, index); descriptor.BeforeRequest(); return DoRequest, IndexResponse, IndexRequestParameters>(descriptor); } + /// + /// Creates or updates a document in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual IndexResponse Index(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) { var descriptor = new IndexRequestDescriptor(document, index); @@ -1334,13 +2271,10 @@ public virtual IndexResponse Index(TDocument document, Elastic.Client return DoRequest, IndexResponse, IndexRequestParameters>(descriptor); } - public virtual IndexResponse Index(TDocument document) - { - var descriptor = new IndexRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequest, IndexResponse, IndexRequestParameters>(descriptor); - } - + /// + /// Creates or updates a document in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual IndexResponse Index(TDocument document, Action> configureRequest) { var descriptor = new IndexRequestDescriptor(document); @@ -1349,28 +2283,32 @@ public virtual IndexResponse Index(TDocument document, Action, IndexResponse, IndexRequestParameters>(descriptor); } - public virtual Task IndexAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) - { - var descriptor = new IndexRequestDescriptor(document, index); - descriptor.BeforeRequest(); - return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor); - } - - public virtual Task IndexAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) + /// + /// Creates or updates a document in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task IndexAsync(IndexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new IndexRequestDescriptor(document, index); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor); } - public virtual Task IndexAsync(TDocument document, CancellationToken cancellationToken = default) + /// + /// Creates or updates a document in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task IndexAsync(TDocument document, Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { - var descriptor = new IndexRequestDescriptor(document); + var descriptor = new IndexRequestDescriptor(document, index); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return DoRequestAsync, IndexResponse, IndexRequestParameters>(descriptor); } + /// + /// Creates or updates a document in an index. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task IndexAsync(TDocument document, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new IndexRequestDescriptor(document); @@ -1399,6 +2337,10 @@ public virtual Task InfoAsync(InfoRequest request, CancellationTok return DoRequestAsync(request, cancellationToken); } + /// + /// Returns basic information about the cluster. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual InfoResponse Info() { var descriptor = new InfoRequestDescriptor(); @@ -1406,6 +2348,20 @@ public virtual InfoResponse Info() return DoRequest(descriptor); } + /// + /// Returns basic information about the cluster. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual InfoResponse Info(InfoRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns basic information about the cluster. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual InfoResponse Info(Action configureRequest) { var descriptor = new InfoRequestDescriptor(); @@ -1414,6 +2370,10 @@ public virtual InfoResponse Info(Action configureRequest) return DoRequest(descriptor); } + /// + /// Returns basic information about the cluster. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task InfoAsync(CancellationToken cancellationToken = default) { var descriptor = new InfoRequestDescriptor(); @@ -1421,6 +2381,20 @@ public virtual Task InfoAsync(CancellationToken cancellationToken return DoRequestAsync(descriptor); } + /// + /// Returns basic information about the cluster. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task InfoAsync(InfoRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns basic information about the cluster. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task InfoAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new InfoRequestDescriptor(); @@ -1449,6 +2423,10 @@ public virtual Task> MultiGetAsync(MultiG return DoRequestAsync, MultiGetRequestParameters>(request, cancellationToken); } + /// + /// Allows to get multiple documents in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual MultiGetResponse MultiGet() { var descriptor = new MultiGetRequestDescriptor(); @@ -1456,6 +2434,20 @@ public virtual MultiGetResponse MultiGet() return DoRequest, MultiGetResponse, MultiGetRequestParameters>(descriptor); } + /// + /// Allows to get multiple documents in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual MultiGetResponse MultiGet(MultiGetRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, MultiGetResponse, MultiGetRequestParameters>(descriptor); + } + + /// + /// Allows to get multiple documents in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual MultiGetResponse MultiGet(Action> configureRequest) { var descriptor = new MultiGetRequestDescriptor(); @@ -1464,6 +2456,10 @@ public virtual MultiGetResponse MultiGet(Action, MultiGetResponse, MultiGetRequestParameters>(descriptor); } + /// + /// Allows to get multiple documents in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> MultiGetAsync(CancellationToken cancellationToken = default) { var descriptor = new MultiGetRequestDescriptor(); @@ -1471,6 +2467,20 @@ public virtual Task> MultiGetAsync(Cancel return DoRequestAsync, MultiGetResponse, MultiGetRequestParameters>(descriptor); } + /// + /// Allows to get multiple documents in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> MultiGetAsync(MultiGetRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, MultiGetResponse, MultiGetRequestParameters>(descriptor); + } + + /// + /// Allows to get multiple documents in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> MultiGetAsync(Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new MultiGetRequestDescriptor(); @@ -1499,6 +2509,10 @@ public virtual Task> MultiSearchAsync( return DoRequestAsync, MultiSearchRequestParameters>(request, cancellationToken); } + /// + /// Allows to execute several search operations in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual MultiSearchResponse MultiSearch() { var descriptor = new MultiSearchRequestDescriptor(); @@ -1506,6 +2520,20 @@ public virtual MultiSearchResponse MultiSearch() return DoRequest, MultiSearchResponse, MultiSearchRequestParameters>(descriptor); } + /// + /// Allows to execute several search operations in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual MultiSearchResponse MultiSearch(MultiSearchRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, MultiSearchResponse, MultiSearchRequestParameters>(descriptor); + } + + /// + /// Allows to execute several search operations in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual MultiSearchResponse MultiSearch(Action> configureRequest) { var descriptor = new MultiSearchRequestDescriptor(); @@ -1514,6 +2542,10 @@ public virtual MultiSearchResponse MultiSearch(Action, MultiSearchResponse, MultiSearchRequestParameters>(descriptor); } + /// + /// Allows to execute several search operations in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> MultiSearchAsync(CancellationToken cancellationToken = default) { var descriptor = new MultiSearchRequestDescriptor(); @@ -1521,6 +2553,20 @@ public virtual Task> MultiSearchAsync( return DoRequestAsync, MultiSearchResponse, MultiSearchRequestParameters>(descriptor); } + /// + /// Allows to execute several search operations in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> MultiSearchAsync(MultiSearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, MultiSearchResponse, MultiSearchRequestParameters>(descriptor); + } + + /// + /// Allows to execute several search operations in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> MultiSearchAsync(Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new MultiSearchRequestDescriptor(); @@ -1549,6 +2595,10 @@ public virtual Task> MultiSearchTemplateA return DoRequestAsync, MultiSearchTemplateRequestParameters>(request, cancellationToken); } + /// + /// Allows to execute several search template operations in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual MultiSearchTemplateResponse MultiSearchTemplate() { var descriptor = new MultiSearchTemplateRequestDescriptor(); @@ -1556,6 +2606,20 @@ public virtual MultiSearchTemplateResponse MultiSearchTemplate, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor); } + /// + /// Allows to execute several search template operations in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual MultiSearchTemplateResponse MultiSearchTemplate(MultiSearchTemplateRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor); + } + + /// + /// Allows to execute several search template operations in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual MultiSearchTemplateResponse MultiSearchTemplate(Action> configureRequest) { var descriptor = new MultiSearchTemplateRequestDescriptor(); @@ -1564,6 +2628,10 @@ public virtual MultiSearchTemplateResponse MultiSearchTemplate, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor); } + /// + /// Allows to execute several search template operations in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> MultiSearchTemplateAsync(CancellationToken cancellationToken = default) { var descriptor = new MultiSearchTemplateRequestDescriptor(); @@ -1571,6 +2639,20 @@ public virtual Task> MultiSearchTemplateA return DoRequestAsync, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor); } + /// + /// Allows to execute several search template operations in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> MultiSearchTemplateAsync(MultiSearchTemplateRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, MultiSearchTemplateResponse, MultiSearchTemplateRequestParameters>(descriptor); + } + + /// + /// Allows to execute several search template operations in one request. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> MultiSearchTemplateAsync(Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new MultiSearchTemplateRequestDescriptor(); @@ -1599,6 +2681,10 @@ public virtual Task OpenPointInTimeAsync(OpenPointInTim return DoRequestAsync(request, 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(Elastic.Clients.Elasticsearch.Indices indices) { var descriptor = new OpenPointInTimeRequestDescriptor(indices); @@ -1606,6 +2692,20 @@ public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticse return DoRequest(descriptor); } + /// + /// 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(OpenPointInTimeRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// 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(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) { var descriptor = new OpenPointInTimeRequestDescriptor(indices); @@ -1614,6 +2714,20 @@ public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Clients.Elasticse return DoRequest(descriptor); } + /// + /// 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(OpenPointInTimeRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor); + } + + /// + /// 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(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) { var descriptor = new OpenPointInTimeRequestDescriptor(indices); @@ -1622,6 +2736,10 @@ public virtual OpenPointInTimeResponse OpenPointInTime(Elastic.Client return DoRequest, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor); } + /// + /// Open a point in time that can be used in subsequent searches + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { var descriptor = new OpenPointInTimeRequestDescriptor(indices); @@ -1629,6 +2747,20 @@ public virtual Task OpenPointInTimeAsync(Elastic.Client return DoRequestAsync(descriptor); } + /// + /// Open a point in time that can be used in subsequent searches + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Open a point in time that can be used in subsequent searches + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new OpenPointInTimeRequestDescriptor(indices); @@ -1637,6 +2769,20 @@ public virtual Task OpenPointInTimeAsync(Elastic.Client return DoRequestAsync(descriptor); } + /// + /// Open a point in time that can be used in subsequent searches + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task OpenPointInTimeAsync(OpenPointInTimeRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, OpenPointInTimeResponse, OpenPointInTimeRequestParameters>(descriptor); + } + + /// + /// Open a point in time that can be used in subsequent searches + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task OpenPointInTimeAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new OpenPointInTimeRequestDescriptor(indices); @@ -1665,6 +2811,10 @@ public virtual Task PingAsync(PingRequest request, CancellationTok return DoRequestAsync(request, cancellationToken); } + /// + /// Returns whether the cluster is running. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual PingResponse Ping() { var descriptor = new PingRequestDescriptor(); @@ -1672,6 +2822,20 @@ public virtual PingResponse Ping() return DoRequest(descriptor); } + /// + /// Returns whether the cluster is running. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual PingResponse Ping(PingRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns whether the cluster is running. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual PingResponse Ping(Action configureRequest) { var descriptor = new PingRequestDescriptor(); @@ -1680,6 +2844,10 @@ public virtual PingResponse Ping(Action configureRequest) return DoRequest(descriptor); } + /// + /// Returns whether the cluster is running. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task PingAsync(CancellationToken cancellationToken = default) { var descriptor = new PingRequestDescriptor(); @@ -1687,6 +2855,20 @@ public virtual Task PingAsync(CancellationToken cancellationToken return DoRequestAsync(descriptor); } + /// + /// Returns whether the cluster is running. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PingAsync(PingRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns whether the cluster is running. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task PingAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new PingRequestDescriptor(); @@ -1715,21 +2897,42 @@ public virtual Task PutScriptAsync(PutScriptRequest request, return DoRequestAsync(request, cancellationToken); } - public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id) + /// + /// Creates or updates a script. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual PutScriptResponse PutScript(PutScriptRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Creates or updates a script. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) { var descriptor = new PutScriptRequestDescriptor(id); + configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); return DoRequest(descriptor); } - public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, Action configureRequest) + /// + /// Creates or updates a script. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual PutScriptResponse PutScript(PutScriptRequestDescriptor descriptor) { - var descriptor = new PutScriptRequestDescriptor(id); - configureRequest?.Invoke(descriptor); descriptor.BeforeRequest(); - return DoRequest(descriptor); + return DoRequest, PutScriptResponse, PutScriptRequestParameters>(descriptor); } + /// + /// Creates or updates a script. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { var descriptor = new PutScriptRequestDescriptor(id); @@ -1738,13 +2941,20 @@ public virtual PutScriptResponse PutScript(Elastic.Clients.Elasticsea return DoRequest, PutScriptResponse, PutScriptRequestParameters>(descriptor); } - public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + /// + /// Creates or updates a script. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutScriptAsync(PutScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new PutScriptRequestDescriptor(id); descriptor.BeforeRequest(); return DoRequestAsync(descriptor); } + /// + /// Creates or updates a script. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Id id, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new PutScriptRequestDescriptor(id); @@ -1753,6 +2963,20 @@ public virtual Task PutScriptAsync(Elastic.Clients.Elasticsea return DoRequestAsync(descriptor); } + /// + /// Creates or updates a script. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task PutScriptAsync(PutScriptRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, PutScriptResponse, PutScriptRequestParameters>(descriptor); + } + + /// + /// Creates or updates a script. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task PutScriptAsync(Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new PutScriptRequestDescriptor(id); @@ -1781,6 +3005,10 @@ public virtual Task RankEvalAsync(RankEvalRequest request, Can return DoRequestAsync(request, 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() { var descriptor = new RankEvalRequestDescriptor(); @@ -1788,6 +3016,20 @@ public virtual RankEvalResponse RankEval() return DoRequest(descriptor); } + /// + /// 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(RankEvalRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// 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(Action configureRequest) { var descriptor = new RankEvalRequestDescriptor(); @@ -1796,6 +3038,20 @@ public virtual RankEvalResponse RankEval(Action confi return DoRequest(descriptor); } + /// + /// 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(RankEvalRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, RankEvalResponse, RankEvalRequestParameters>(descriptor); + } + + /// + /// 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(Action> configureRequest) { var descriptor = new RankEvalRequestDescriptor(); @@ -1804,6 +3060,10 @@ public virtual RankEvalResponse RankEval(Action, RankEvalResponse, RankEvalRequestParameters>(descriptor); } + /// + /// 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 Task RankEvalAsync(CancellationToken cancellationToken = default) { var descriptor = new RankEvalRequestDescriptor(); @@ -1811,6 +3071,20 @@ public virtual Task RankEvalAsync(CancellationToken cancellati return DoRequestAsync(descriptor); } + /// + /// 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 Task RankEvalAsync(RankEvalRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// 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 Task RankEvalAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new RankEvalRequestDescriptor(); @@ -1819,6 +3093,20 @@ public virtual Task RankEvalAsync(Action(descriptor); } + /// + /// 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 Task RankEvalAsync(RankEvalRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, RankEvalResponse, RankEvalRequestParameters>(descriptor); + } + + /// + /// 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 Task RankEvalAsync(Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new RankEvalRequestDescriptor(); @@ -1847,13 +3135,20 @@ public virtual Task ReindexAsync(ReindexRequest request, Cancel return DoRequestAsync(request, cancellationToken); } - public virtual ReindexResponse Reindex() + /// + /// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
+ public virtual ReindexResponse Reindex(ReindexRequestDescriptor descriptor) { - var descriptor = new ReindexRequestDescriptor(); descriptor.BeforeRequest(); return DoRequest(descriptor); } + /// + /// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
public virtual ReindexResponse Reindex(Action configureRequest) { var descriptor = new ReindexRequestDescriptor(); @@ -1862,6 +3157,20 @@ public virtual ReindexResponse Reindex(Action configur return DoRequest(descriptor); } + /// + /// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
+ public virtual ReindexResponse Reindex(ReindexRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, ReindexResponse, ReindexRequestParameters>(descriptor); + } + + /// + /// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
public virtual ReindexResponse Reindex(Action> configureRequest) { var descriptor = new ReindexRequestDescriptor(); @@ -1870,13 +3179,20 @@ public virtual ReindexResponse Reindex(Action, ReindexResponse, ReindexRequestParameters>(descriptor); } - public virtual Task ReindexAsync(CancellationToken cancellationToken = default) + /// + /// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
+ public virtual Task ReindexAsync(ReindexRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new ReindexRequestDescriptor(); descriptor.BeforeRequest(); return DoRequestAsync(descriptor); } + /// + /// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
public virtual Task ReindexAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new ReindexRequestDescriptor(); @@ -1885,6 +3201,20 @@ public virtual Task ReindexAsync(Action(descriptor); } + /// + /// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
+ public virtual Task ReindexAsync(ReindexRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, ReindexResponse, ReindexRequestParameters>(descriptor); + } + + /// + /// Allows to copy documents from one index to another, optionally filtering the source
documents by a query, changing the destination index settings, or fetching the
documents from a remote cluster.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
public virtual Task ReindexAsync(Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new ReindexRequestDescriptor(); @@ -1913,6 +3243,10 @@ public virtual Task ReindexRethrottleAsync(ReindexRet return DoRequestAsync(request, cancellationToken); } + /// + /// Changes the number of requests per second for a particular Reindex operation. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ReindexRethrottleResponse ReindexRethrottle(Elastic.Clients.Elasticsearch.Id task_id) { var descriptor = new ReindexRethrottleRequestDescriptor(task_id); @@ -1920,6 +3254,20 @@ public virtual ReindexRethrottleResponse ReindexRethrottle(Elastic.Clients.Elast return DoRequest(descriptor); } + /// + /// Changes the number of requests per second for a particular Reindex operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual ReindexRethrottleResponse ReindexRethrottle(ReindexRethrottleRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Changes the number of requests per second for a particular Reindex operation. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual ReindexRethrottleResponse ReindexRethrottle(Elastic.Clients.Elasticsearch.Id task_id, Action configureRequest) { var descriptor = new ReindexRethrottleRequestDescriptor(task_id); @@ -1928,6 +3276,10 @@ public virtual ReindexRethrottleResponse ReindexRethrottle(Elastic.Clients.Elast return DoRequest(descriptor); } + /// + /// Changes the number of requests per second for a particular Reindex operation. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ReindexRethrottleAsync(Elastic.Clients.Elasticsearch.Id task_id, CancellationToken cancellationToken = default) { var descriptor = new ReindexRethrottleRequestDescriptor(task_id); @@ -1935,6 +3287,20 @@ public virtual Task ReindexRethrottleAsync(Elastic.Cl return DoRequestAsync(descriptor); } + /// + /// Changes the number of requests per second for a particular Reindex operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task ReindexRethrottleAsync(ReindexRethrottleRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Changes the number of requests per second for a particular Reindex operation. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task ReindexRethrottleAsync(Elastic.Clients.Elasticsearch.Id task_id, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new ReindexRethrottleRequestDescriptor(task_id); @@ -1963,6 +3329,10 @@ public virtual Task> ScrollAsync(ScrollRequ return DoRequestAsync, ScrollRequestParameters>(request, 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() { var descriptor = new ScrollRequestDescriptor(); @@ -1970,6 +3340,20 @@ public virtual ScrollResponse Scroll() return DoRequest, ScrollRequestParameters>(descriptor); } + /// + /// 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(ScrollRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, ScrollRequestParameters>(descriptor); + } + + /// + /// 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(Action configureRequest) { var descriptor = new ScrollRequestDescriptor(); @@ -1978,6 +3362,10 @@ public virtual ScrollResponse Scroll(Action, ScrollRequestParameters>(descriptor); } + /// + /// Allows to retrieve a large numbers of results from a single search request. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> ScrollAsync(CancellationToken cancellationToken = default) { var descriptor = new ScrollRequestDescriptor(); @@ -1985,6 +3373,20 @@ public virtual Task> ScrollAsync(Cancellati return DoRequestAsync, ScrollRequestParameters>(descriptor); } + /// + /// Allows to retrieve a large numbers of results from a single search request. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> ScrollAsync(ScrollRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, ScrollRequestParameters>(descriptor); + } + + /// + /// Allows to retrieve a large numbers of results from a single search request. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> ScrollAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new ScrollRequestDescriptor(); @@ -2013,6 +3415,10 @@ public virtual Task> SearchAsync(SearchRequ return DoRequestAsync, SearchRequestParameters>(request, cancellationToken); } + /// + /// Returns results matching a query. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual SearchResponse Search() { var descriptor = new SearchRequestDescriptor(); @@ -2020,6 +3426,20 @@ public virtual SearchResponse Search() return DoRequest, SearchResponse, SearchRequestParameters>(descriptor); } + /// + /// Returns results matching a query. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual SearchResponse Search(SearchRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, SearchResponse, SearchRequestParameters>(descriptor); + } + + /// + /// Returns results matching a query. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual SearchResponse Search(Action> configureRequest) { var descriptor = new SearchRequestDescriptor(); @@ -2028,6 +3448,10 @@ public virtual SearchResponse Search(Action, SearchResponse, SearchRequestParameters>(descriptor); } + /// + /// Returns results matching a query. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> SearchAsync(CancellationToken cancellationToken = default) { var descriptor = new SearchRequestDescriptor(); @@ -2035,6 +3459,20 @@ public virtual Task> SearchAsync(Cancellati return DoRequestAsync, SearchResponse, SearchRequestParameters>(descriptor); } + /// + /// Returns results matching a query. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> SearchAsync(SearchRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, SearchResponse, SearchRequestParameters>(descriptor); + } + + /// + /// Returns results matching a query. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> SearchAsync(Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new SearchRequestDescriptor(); @@ -2063,13 +3501,31 @@ public virtual Task SearchShardsAsync(SearchShardsRequest return DoRequestAsync(request, cancellationToken); } + /// + /// Returns information about the indices and shards that a search request would be executed against. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual SearchShardsResponse SearchShards() { - var descriptor = new SearchShardsRequestDescriptor(); + var descriptor = new SearchShardsRequestDescriptor(); + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Returns information about the indices and shards that a search request would be executed against. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual SearchShardsResponse SearchShards(SearchShardsRequestDescriptor descriptor) + { descriptor.BeforeRequest(); return DoRequest(descriptor); } + /// + /// Returns information about the indices and shards that a search request would be executed against. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual SearchShardsResponse SearchShards(Action configureRequest) { var descriptor = new SearchShardsRequestDescriptor(); @@ -2078,6 +3534,20 @@ public virtual SearchShardsResponse SearchShards(Action(descriptor); } + /// + /// Returns information about the indices and shards that a search request would be executed against. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual SearchShardsResponse SearchShards(SearchShardsRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, SearchShardsResponse, SearchShardsRequestParameters>(descriptor); + } + + /// + /// Returns information about the indices and shards that a search request would be executed against. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual SearchShardsResponse SearchShards(Action> configureRequest) { var descriptor = new SearchShardsRequestDescriptor(); @@ -2086,6 +3556,10 @@ public virtual SearchShardsResponse SearchShards(Action, SearchShardsResponse, SearchShardsRequestParameters>(descriptor); } + /// + /// Returns information about the indices and shards that a search request would be executed against. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task SearchShardsAsync(CancellationToken cancellationToken = default) { var descriptor = new SearchShardsRequestDescriptor(); @@ -2093,6 +3567,20 @@ public virtual Task SearchShardsAsync(CancellationToken ca return DoRequestAsync(descriptor); } + /// + /// Returns information about the indices and shards that a search request would be executed against. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task SearchShardsAsync(SearchShardsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Returns information about the indices and shards that a search request would be executed against. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task SearchShardsAsync(Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new SearchShardsRequestDescriptor(); @@ -2101,6 +3589,20 @@ public virtual Task SearchShardsAsync(Action(descriptor); } + /// + /// Returns information about the indices and shards that a search request would be executed against. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task SearchShardsAsync(SearchShardsRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, SearchShardsResponse, SearchShardsRequestParameters>(descriptor); + } + + /// + /// Returns information about the indices and shards that a search request would be executed against. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task SearchShardsAsync(Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new SearchShardsRequestDescriptor(); @@ -2129,6 +3631,10 @@ public virtual Task TermsEnumAsync(TermsEnumRequest request, return DoRequestAsync(request, 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(Elastic.Clients.Elasticsearch.IndexName index) { var descriptor = new TermsEnumRequestDescriptor(index); @@ -2136,6 +3642,20 @@ public virtual TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsearch.IndexNa return DoRequest(descriptor); } + /// + /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual TermsEnumResponse TermsEnum(TermsEnumRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest) { var descriptor = new TermsEnumRequestDescriptor(index); @@ -2144,6 +3664,10 @@ public virtual TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsearch.IndexNa return DoRequest(descriptor); } + /// + /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual TermsEnumResponse TermsEnum() { var descriptor = new TermsEnumRequestDescriptor(typeof(TDocument)); @@ -2151,6 +3675,10 @@ public virtual TermsEnumResponse TermsEnum() return DoRequest, TermsEnumResponse, TermsEnumRequestParameters>(descriptor); } + /// + /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual TermsEnumResponse TermsEnum(Action> configureRequest) { var descriptor = new TermsEnumRequestDescriptor(typeof(TDocument)); @@ -2159,6 +3687,20 @@ public virtual TermsEnumResponse TermsEnum(Action, TermsEnumResponse, TermsEnumRequestParameters>(descriptor); } + /// + /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual TermsEnumResponse TermsEnum(TermsEnumRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, TermsEnumResponse, TermsEnumRequestParameters>(descriptor); + } + + /// + /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest) { var descriptor = new TermsEnumRequestDescriptor(index); @@ -2167,6 +3709,10 @@ public virtual TermsEnumResponse TermsEnum(Elastic.Clients.Elasticsea return DoRequest, TermsEnumResponse, TermsEnumRequestParameters>(descriptor); } + /// + /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsearch.IndexName index, CancellationToken cancellationToken = default) { var descriptor = new TermsEnumRequestDescriptor(index); @@ -2174,6 +3720,20 @@ public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsea return DoRequestAsync(descriptor); } + /// + /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task TermsEnumAsync(TermsEnumRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsearch.IndexName index, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new TermsEnumRequestDescriptor(index); @@ -2182,6 +3742,10 @@ public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsea return DoRequestAsync(descriptor); } + /// + /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task TermsEnumAsync(CancellationToken cancellationToken = default) { var descriptor = new TermsEnumRequestDescriptor(typeof(TDocument)); @@ -2189,6 +3753,10 @@ public virtual Task TermsEnumAsync(CancellationTok return DoRequestAsync, TermsEnumResponse, TermsEnumRequestParameters>(descriptor); } + /// + /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task TermsEnumAsync(Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new TermsEnumRequestDescriptor(typeof(TDocument)); @@ -2197,6 +3765,20 @@ public virtual Task TermsEnumAsync(Action, TermsEnumResponse, TermsEnumRequestParameters>(descriptor); } + /// + /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task TermsEnumAsync(TermsEnumRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, TermsEnumResponse, TermsEnumRequestParameters>(descriptor); + } + + /// + /// The terms enum API can be used to discover terms in the index that begin with the provided string. It is designed for low-latency look-ups used in auto-complete scenarios. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task TermsEnumAsync(Elastic.Clients.Elasticsearch.IndexName index, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new TermsEnumRequestDescriptor(index); @@ -2225,6 +3807,10 @@ public virtual Task UpdateByQueryAsync(UpdateByQueryReque return DoRequestAsync(request, cancellationToken); } + /// + /// 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(Elastic.Clients.Elasticsearch.Indices indices) { var descriptor = new UpdateByQueryRequestDescriptor(indices); @@ -2232,6 +3818,20 @@ public virtual UpdateByQueryResponse UpdateByQuery(Elastic.Clients.Elasticsearch return DoRequest(descriptor); } + /// + /// Performs an update on every document in the index without changing the source,
for example to pick up a mapping change.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
+ public virtual UpdateByQueryResponse UpdateByQuery(UpdateByQueryRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Performs an update on every document in the index without changing the source,
for example to pick up a mapping change.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
public virtual UpdateByQueryResponse UpdateByQuery(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest) { var descriptor = new UpdateByQueryRequestDescriptor(indices); @@ -2240,6 +3840,20 @@ public virtual UpdateByQueryResponse UpdateByQuery(Elastic.Clients.Elasticsearch return DoRequest(descriptor); } + /// + /// Performs an update on every document in the index without changing the source,
for example to pick up a mapping change.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
+ public virtual UpdateByQueryResponse UpdateByQuery(UpdateByQueryRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor); + } + + /// + /// Performs an update on every document in the index without changing the source,
for example to pick up a mapping change.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
public virtual UpdateByQueryResponse UpdateByQuery(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest) { var descriptor = new UpdateByQueryRequestDescriptor(indices); @@ -2248,6 +3862,10 @@ public virtual UpdateByQueryResponse UpdateByQuery(Elastic.Clients.El return DoRequest, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor); } + /// + /// Performs an update on every document in the index without changing the source,
for example to pick up a mapping change.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
public virtual Task UpdateByQueryAsync(Elastic.Clients.Elasticsearch.Indices indices, CancellationToken cancellationToken = default) { var descriptor = new UpdateByQueryRequestDescriptor(indices); @@ -2255,6 +3873,20 @@ public virtual Task UpdateByQueryAsync(Elastic.Clients.El return DoRequestAsync(descriptor); } + /// + /// Performs an update on every document in the index without changing the source,
for example to pick up a mapping change.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
+ public virtual Task UpdateByQueryAsync(UpdateByQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Performs an update on every document in the index without changing the source,
for example to pick up a mapping change.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
public virtual Task UpdateByQueryAsync(Elastic.Clients.Elasticsearch.Indices indices, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new UpdateByQueryRequestDescriptor(indices); @@ -2263,6 +3895,20 @@ public virtual Task UpdateByQueryAsync(Elastic.Clients.El return DoRequestAsync(descriptor); } + /// + /// Performs an update on every document in the index without changing the source,
for example to pick up a mapping change.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
+ public virtual Task UpdateByQueryAsync(UpdateByQueryRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync, UpdateByQueryResponse, UpdateByQueryRequestParameters>(descriptor); + } + + /// + /// Performs an update on every document in the index without changing the source,
for example to pick up a mapping change.
+ /// Learn more about this API in the Elasticsearch documentation. + ///
public virtual Task UpdateByQueryAsync(Elastic.Clients.Elasticsearch.Indices indices, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new UpdateByQueryRequestDescriptor(indices); @@ -2291,6 +3937,10 @@ public virtual Task UpdateByQueryRethrottleAsyn return DoRequestAsync(request, cancellationToken); } + /// + /// Changes the number of requests per second for a particular Update By Query operation. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(Elastic.Clients.Elasticsearch.Id task_id) { var descriptor = new UpdateByQueryRethrottleRequestDescriptor(task_id); @@ -2298,6 +3948,20 @@ public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(Elastic.C return DoRequest(descriptor); } + /// + /// Changes the number of requests per second for a particular Update By Query operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(UpdateByQueryRethrottleRequestDescriptor descriptor) + { + descriptor.BeforeRequest(); + return DoRequest(descriptor); + } + + /// + /// Changes the number of requests per second for a particular Update By Query operation. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(Elastic.Clients.Elasticsearch.Id task_id, Action configureRequest) { var descriptor = new UpdateByQueryRethrottleRequestDescriptor(task_id); @@ -2306,6 +3970,10 @@ public virtual UpdateByQueryRethrottleResponse UpdateByQueryRethrottle(Elastic.C return DoRequest(descriptor); } + /// + /// Changes the number of requests per second for a particular Update By Query operation. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task UpdateByQueryRethrottleAsync(Elastic.Clients.Elasticsearch.Id task_id, CancellationToken cancellationToken = default) { var descriptor = new UpdateByQueryRethrottleRequestDescriptor(task_id); @@ -2313,6 +3981,20 @@ public virtual Task UpdateByQueryRethrottleAsyn return DoRequestAsync(descriptor); } + /// + /// Changes the number of requests per second for a particular Update By Query operation. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task UpdateByQueryRethrottleAsync(UpdateByQueryRethrottleRequestDescriptor descriptor, CancellationToken cancellationToken = default) + { + descriptor.BeforeRequest(); + return DoRequestAsync(descriptor); + } + + /// + /// Changes the number of requests per second for a particular Update By Query operation. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task UpdateByQueryRethrottleAsync(Elastic.Clients.Elasticsearch.Id task_id, Action configureRequest, CancellationToken cancellationToken = default) { var descriptor = new UpdateByQueryRethrottleRequestDescriptor(task_id); @@ -2341,13 +4023,20 @@ public virtual Task> UpdateAsync, UpdateResponse, UpdateRequestParameters>(request, cancellationToken); } - public virtual UpdateResponse Update(TDocument document, TPartialDocument partialDocument, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id) + /// + /// Updates a document with a script or partial document. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual UpdateResponse Update(UpdateRequestDescriptor descriptor) { - var descriptor = new UpdateRequestDescriptor(document, index, id); descriptor.BeforeRequest(); return DoRequest, UpdateResponse, UpdateRequestParameters>(descriptor); } + /// + /// Updates a document with a script or partial document. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual UpdateResponse Update(TDocument document, TPartialDocument partialDocument, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest) { var descriptor = new UpdateRequestDescriptor(document, index, id); @@ -2356,13 +4045,10 @@ public virtual UpdateResponse Update(TDo return DoRequest, UpdateResponse, UpdateRequestParameters>(descriptor); } - public virtual UpdateResponse Update(TDocument document, TPartialDocument partialDocument) - { - var descriptor = new UpdateRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequest, UpdateResponse, UpdateRequestParameters>(descriptor); - } - + /// + /// Updates a document with a script or partial document. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual UpdateResponse Update(TDocument document, TPartialDocument partialDocument, Action> configureRequest) { var descriptor = new UpdateRequestDescriptor(document); @@ -2371,13 +4057,20 @@ public virtual UpdateResponse Update(TDo return DoRequest, UpdateResponse, UpdateRequestParameters>(descriptor); } - public virtual Task> UpdateAsync(TDocument document, TPartialDocument partialDocument, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, CancellationToken cancellationToken = default) + /// + /// Updates a document with a script or partial document. + /// Learn more about this API in the Elasticsearch documentation. + /// + public virtual Task> UpdateAsync(UpdateRequestDescriptor descriptor, CancellationToken cancellationToken = default) { - var descriptor = new UpdateRequestDescriptor(document, index, id); descriptor.BeforeRequest(); return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor); } + /// + /// Updates a document with a script or partial document. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> UpdateAsync(TDocument document, TPartialDocument partialDocument, Elastic.Clients.Elasticsearch.IndexName index, Elastic.Clients.Elasticsearch.Id id, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new UpdateRequestDescriptor(document, index, id); @@ -2386,13 +4079,10 @@ public virtual Task> UpdateAsync, UpdateResponse, UpdateRequestParameters>(descriptor); } - public virtual Task> UpdateAsync(TDocument document, TPartialDocument partialDocument, CancellationToken cancellationToken = default) - { - var descriptor = new UpdateRequestDescriptor(document); - descriptor.BeforeRequest(); - return DoRequestAsync, UpdateResponse, UpdateRequestParameters>(descriptor); - } - + /// + /// Updates a document with a script or partial document. + /// Learn more about this API in the Elasticsearch documentation. + /// public virtual Task> UpdateAsync(TDocument document, TPartialDocument partialDocument, Action> configureRequest, CancellationToken cancellationToken = default) { var descriptor = new UpdateRequestDescriptor(document);