diff --git a/src/ApiGenerator/RestSpecification/Core/cluster.get_settings.json b/src/ApiGenerator/RestSpecification/Core/cluster.get_settings.json
index 9708a8606fd..5862804257c 100644
--- a/src/ApiGenerator/RestSpecification/Core/cluster.get_settings.json
+++ b/src/ApiGenerator/RestSpecification/Core/cluster.get_settings.json
@@ -1,7 +1,7 @@
{
"cluster.get_settings":{
"documentation":{
- "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html",
+ "url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-get-settings.html",
"description":"Returns cluster settings."
},
"stability":"stable",
diff --git a/src/ApiGenerator/RestSpecification/Core/fleet.global_checkpoints.json b/src/ApiGenerator/RestSpecification/Core/fleet.global_checkpoints.json
new file mode 100644
index 00000000000..4f3ccf01fa4
--- /dev/null
+++ b/src/ApiGenerator/RestSpecification/Core/fleet.global_checkpoints.json
@@ -0,0 +1,47 @@
+{
+ "fleet.global_checkpoints":{
+ "documentation":{
+ "url": null,
+ "description": "Returns the current global checkpoints for an index. This API is design for internal use by the fleet server project."
+ },
+ "stability":"experimental",
+ "visibility":"public",
+ "headers":{
+ "accept": [ "application/json"],
+ "content_type": ["application/json"]
+ },
+ "url":{
+ "paths":[
+ {
+ "path":"/{index}/_fleet/global_checkpoints",
+ "methods":[
+ "GET"
+ ],
+ "parts":{
+ "index":{
+ "type":"string",
+ "description":"The name of the index."
+ }
+ }
+ }
+ ]
+ },
+ "params":{
+ "wait_for_advance":{
+ "type":"boolean",
+ "description":"Whether to wait for the global checkpoint to advance past the specified current checkpoints",
+ "default":"false"
+ },
+ "checkpoints":{
+ "type":"list",
+ "description":"Comma separated list of checkpoints",
+ "default":""
+ },
+ "timeout":{
+ "type":"time",
+ "description":"Timeout to wait for global checkpoint to advance",
+ "default":"30s"
+ }
+ }
+ }
+}
diff --git a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Cluster.cs b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Cluster.cs
index b4dc3b331ac..3926ca245b0 100644
--- a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Cluster.cs
+++ b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Cluster.cs
@@ -117,7 +117,7 @@ public TimeSpan MasterTimeout
}
}
- ///Request options for GetSettings https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html
+ ///Request options for GetSettings https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-get-settings.html
public class ClusterGetSettingsRequestParameters : RequestParameters
{
public override HttpMethod DefaultHttpMethod => HttpMethod.GET;
diff --git a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Fleet.cs b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Fleet.cs
new file mode 100644
index 00000000000..745259a2d22
--- /dev/null
+++ b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Fleet.cs
@@ -0,0 +1,53 @@
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// -----------------------------------------------
+//
+// This file is automatically generated
+// Please do not edit these files manually
+// Run the following in the root of the repos:
+//
+// *NIX : ./build.sh codegen
+// Windows : build.bat codegen
+//
+// -----------------------------------------------
+// ReSharper disable RedundantUsingDirective
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Linq.Expressions;
+
+// ReSharper disable once CheckNamespace
+namespace Elasticsearch.Net.Specification.FleetApi
+{
+ ///Request options for GlobalCheckpoints
+ public class GlobalCheckpointsRequestParameters : RequestParameters
+ {
+ public override HttpMethod DefaultHttpMethod => HttpMethod.GET;
+ public override bool SupportsBody => false;
+ ///Comma separated list of checkpoints
+ public string[] Checkpoints
+ {
+ get => Q("checkpoints");
+ set => Q("checkpoints", value);
+ }
+
+ ///Timeout to wait for global checkpoint to advance
+ public TimeSpan Timeout
+ {
+ get => Q("timeout");
+ set => Q("timeout", value);
+ }
+
+ ///Whether to wait for the global checkpoint to advance past the specified current checkpoints
+ public bool? WaitForAdvance
+ {
+ get => Q("wait_for_advance");
+ set => Q("wait_for_advance", value);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/Elasticsearch.Net/ElasticLowLevelClient.Cluster.cs b/src/Elasticsearch.Net/ElasticLowLevelClient.Cluster.cs
index 486bc6b4ec0..b5e35d401f8 100644
--- a/src/Elasticsearch.Net/ElasticLowLevelClient.Cluster.cs
+++ b/src/Elasticsearch.Net/ElasticLowLevelClient.Cluster.cs
@@ -105,11 +105,11 @@ public TResponse GetComponentTemplate(string name, GetComponentTempla
[MapsApi("cluster.get_component_template", "name")]
public Task GetComponentTemplateAsync(string name, GetComponentTemplateRequestParameters requestParameters = null, CancellationToken ctx = default)
where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, Url($"_component_template/{name:name}"), ctx, null, RequestParams(requestParameters));
- ///GET on /_cluster/settings https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html
+ ///GET on /_cluster/settings https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-get-settings.html
///Request specific configuration such as querystring parameters & request specific connection settings.
public TResponse GetSettings(ClusterGetSettingsRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, "_cluster/settings", null, RequestParams(requestParameters));
- ///GET on /_cluster/settings https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html
+ ///GET on /_cluster/settings https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-get-settings.html
///Request specific configuration such as querystring parameters & request specific connection settings.
[MapsApi("cluster.get_settings", "")]
public Task GetSettingsAsync(ClusterGetSettingsRequestParameters requestParameters = null, CancellationToken ctx = default)
diff --git a/src/Elasticsearch.Net/ElasticLowLevelClient.Fleet.cs b/src/Elasticsearch.Net/ElasticLowLevelClient.Fleet.cs
new file mode 100644
index 00000000000..05e201f3610
--- /dev/null
+++ b/src/Elasticsearch.Net/ElasticLowLevelClient.Fleet.cs
@@ -0,0 +1,60 @@
+// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
+// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
+// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
+// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
+// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
+// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
+// -----------------------------------------------
+//
+// This file is automatically generated
+// Please do not edit these files manually
+// Run the following in the root of the repos:
+//
+// *NIX : ./build.sh codegen
+// Windows : build.bat codegen
+//
+// -----------------------------------------------
+// ReSharper disable RedundantUsingDirective
+using System;
+using System.Collections.Generic;
+using System.Collections.Specialized;
+using System.Linq;
+using System.Text;
+using System.Threading;
+using System.Threading.Tasks;
+using Elasticsearch.Net;
+using static Elasticsearch.Net.HttpMethod;
+
+// ReSharper disable InterpolatedStringExpressionIsNotIFormattable
+// ReSharper disable once CheckNamespace
+// ReSharper disable InterpolatedStringExpressionIsNotIFormattable
+// ReSharper disable RedundantExtendsListEntry
+namespace Elasticsearch.Net.Specification.FleetApi
+{
+ ///
+ /// Fleet APIs.
+ /// Not intended to be instantiated directly. Use the property
+ /// on .
+ ///
+ ///
+ public partial class LowLevelFleetNamespace : NamespacedClientProxy
+ {
+ internal LowLevelFleetNamespace(ElasticLowLevelClient client): base(client)
+ {
+ }
+
+ ///GET on /{index}/_fleet/global_checkpoints
+ ///The name of the index.
+ ///Request specific configuration such as querystring parameters & request specific connection settings.
+ ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded.
+ public TResponse GlobalCheckpoints(string index, GlobalCheckpointsRequestParameters requestParameters = null)
+ where TResponse : class, IElasticsearchResponse, new() => DoRequest(GET, Url($"{index:index}/_fleet/global_checkpoints"), null, RequestParams(requestParameters));
+ ///GET on /{index}/_fleet/global_checkpoints
+ ///The name of the index.
+ ///Request specific configuration such as querystring parameters & request specific connection settings.
+ ///Note: Experimental within the Elasticsearch server, this functionality is Experimental and may be changed or removed completely in a future release. Elastic will take a best effort approach to fix any issues, but experimental features are not subject to the support SLA of official GA features. This functionality is subject to potential breaking changes within a minor version, meaning that your referencing code may break when this library is upgraded.
+ [MapsApi("fleet.global_checkpoints", "index")]
+ public Task GlobalCheckpointsAsync(string index, GlobalCheckpointsRequestParameters requestParameters = null, CancellationToken ctx = default)
+ where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync(GET, Url($"{index:index}/_fleet/global_checkpoints"), ctx, null, RequestParams(requestParameters));
+ }
+}
\ No newline at end of file
diff --git a/src/Elasticsearch.Net/ElasticLowLevelClient.NoNamespace.cs b/src/Elasticsearch.Net/ElasticLowLevelClient.NoNamespace.cs
index 934aa2eee8d..3081bd311e4 100644
--- a/src/Elasticsearch.Net/ElasticLowLevelClient.NoNamespace.cs
+++ b/src/Elasticsearch.Net/ElasticLowLevelClient.NoNamespace.cs
@@ -32,6 +32,7 @@
using Elasticsearch.Net.Specification.EnrichApi;
using Elasticsearch.Net.Specification.EqlApi;
using Elasticsearch.Net.Specification.FeaturesApi;
+using Elasticsearch.Net.Specification.FleetApi;
using Elasticsearch.Net.Specification.GraphApi;
using Elasticsearch.Net.Specification.IndexLifecycleManagementApi;
using Elasticsearch.Net.Specification.IndicesApi;
@@ -118,6 +119,12 @@ public LowLevelFeaturesNamespace Features
private set;
}
+ public LowLevelFleetNamespace Fleet
+ {
+ get;
+ private set;
+ }
+
public LowLevelGraphNamespace Graph
{
get;
@@ -255,6 +262,7 @@ partial void SetupNamespaces()
Enrich = new LowLevelEnrichNamespace(this);
Eql = new LowLevelEqlNamespace(this);
Features = new LowLevelFeaturesNamespace(this);
+ Fleet = new LowLevelFleetNamespace(this);
Graph = new LowLevelGraphNamespace(this);
IndexLifecycleManagement = new LowLevelIndexLifecycleManagementNamespace(this);
Indices = new LowLevelIndicesNamespace(this);
diff --git a/src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs b/src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs
index 8feaaebdcc8..dfade2dadf9 100644
--- a/src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs
+++ b/src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs
@@ -32,6 +32,7 @@
using Elasticsearch.Net.Specification.EnrichApi;
using Elasticsearch.Net.Specification.EqlApi;
using Elasticsearch.Net.Specification.FeaturesApi;
+using Elasticsearch.Net.Specification.FleetApi;
using Elasticsearch.Net.Specification.GraphApi;
using Elasticsearch.Net.Specification.IndexLifecycleManagementApi;
using Elasticsearch.Net.Specification.IndicesApi;
@@ -115,6 +116,12 @@ LowLevelFeaturesNamespace Features
get;
}
+ ///Fleet APIs
+ LowLevelFleetNamespace Fleet
+ {
+ get;
+ }
+
///Graph APIs
LowLevelGraphNamespace Graph
{