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);
}
+ ///
+ ///