Skip to content

Commit 9e388a6

Browse files
github-actions[bot]Mpdreamzstevejgordon
authored
[codegen] master synchronization (#5538)
* [codegen] master synchronization * Remove retired node.remote_cluster_client setting Co-authored-by: Mpdreamz <Mpdreamz@users.noreply.github.com> Co-authored-by: Steve Gordon <sgordon@hotmail.co.uk>
1 parent 042793d commit 9e388a6

File tree

9 files changed

+179
-5
lines changed

9 files changed

+179
-5
lines changed

src/ApiGenerator/RestSpecification/Core/cluster.get_settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"cluster.get_settings":{
33
"documentation":{
4-
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html",
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-get-settings.html",
55
"description":"Returns cluster settings."
66
},
77
"stability":"stable",
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"fleet.global_checkpoints":{
3+
"documentation":{
4+
"url": null,
5+
"description": "Returns the current global checkpoints for an index. This API is design for internal use by the fleet server project."
6+
},
7+
"stability":"experimental",
8+
"visibility":"public",
9+
"headers":{
10+
"accept": [ "application/json"],
11+
"content_type": ["application/json"]
12+
},
13+
"url":{
14+
"paths":[
15+
{
16+
"path":"/{index}/_fleet/global_checkpoints",
17+
"methods":[
18+
"GET"
19+
],
20+
"parts":{
21+
"index":{
22+
"type":"string",
23+
"description":"The name of the index."
24+
}
25+
}
26+
}
27+
]
28+
},
29+
"params":{
30+
"wait_for_advance":{
31+
"type":"boolean",
32+
"description":"Whether to wait for the global checkpoint to advance past the specified current checkpoints",
33+
"default":"false"
34+
},
35+
"checkpoints":{
36+
"type":"list",
37+
"description":"Comma separated list of checkpoints",
38+
"default":""
39+
},
40+
"timeout":{
41+
"type":"time",
42+
"description":"Timeout to wait for global checkpoint to advance",
43+
"default":"30s"
44+
}
45+
}
46+
}
47+
}

src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Cluster.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public TimeSpan MasterTimeout
108108
}
109109
}
110110

111-
///<summary>Request options for GetSettings <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html</para></summary>
111+
///<summary>Request options for GetSettings <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-get-settings.html</para></summary>
112112
public class ClusterGetSettingsRequestParameters : RequestParameters<ClusterGetSettingsRequestParameters>
113113
{
114114
///<summary>Return settings in flat format (default: false)</summary>
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
2+
// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
3+
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
4+
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
5+
// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
6+
// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
7+
// -----------------------------------------------
8+
//
9+
// This file is automatically generated
10+
// Please do not edit these files manually
11+
// Run the following in the root of the repos:
12+
//
13+
// *NIX : ./build.sh codegen
14+
// Windows : build.bat codegen
15+
//
16+
// -----------------------------------------------
17+
// ReSharper disable RedundantUsingDirective
18+
using System;
19+
using System.Collections.Generic;
20+
using System.Linq;
21+
using System.Text;
22+
using System.Linq.Expressions;
23+
using Elastic.Transport;
24+
25+
// ReSharper disable once CheckNamespace
26+
namespace Elasticsearch.Net.Specification.FleetApi
27+
{
28+
///<summary>Request options for GlobalCheckpoints</summary>
29+
public class GlobalCheckpointsRequestParameters : RequestParameters<GlobalCheckpointsRequestParameters>
30+
{
31+
///<summary>Comma separated list of checkpoints</summary>
32+
public string[] Checkpoints
33+
{
34+
get => Q<string[]>("checkpoints");
35+
set => Q("checkpoints", value);
36+
}
37+
38+
///<summary>Timeout to wait for global checkpoint to advance</summary>
39+
public TimeSpan Timeout
40+
{
41+
get => Q<TimeSpan>("timeout");
42+
set => Q("timeout", value);
43+
}
44+
45+
///<summary>Whether to wait for the global checkpoint to advance past the specified current checkpoints</summary>
46+
public bool? WaitForAdvance
47+
{
48+
get => Q<bool? >("wait_for_advance");
49+
set => Q("wait_for_advance", value);
50+
}
51+
}
52+
}

src/Elasticsearch.Net/ElasticLowLevelClient.Cluster.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ public TResponse GetComponentTemplate<TResponse>(string name, GetComponentTempla
106106
[MapsApi("cluster.get_component_template", "name")]
107107
public Task<TResponse> GetComponentTemplateAsync<TResponse>(string name, GetComponentTemplateRequestParameters requestParameters = null, CancellationToken ctx = default)
108108
where TResponse : class, ITransportResponse, new() => DoRequestAsync<TResponse>(GET, Url($"_component_template/{name:name}"), ctx, null, RequestParams(requestParameters));
109-
///<summary>GET on /_cluster/settings <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html</para></summary>
109+
///<summary>GET on /_cluster/settings <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-get-settings.html</para></summary>
110110
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
111111
public TResponse GetSettings<TResponse>(ClusterGetSettingsRequestParameters requestParameters = null)
112112
where TResponse : class, ITransportResponse, new() => DoRequest<TResponse>(GET, "_cluster/settings", null, RequestParams(requestParameters));
113-
///<summary>GET on /_cluster/settings <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html</para></summary>
113+
///<summary>GET on /_cluster/settings <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-get-settings.html</para></summary>
114114
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
115115
[MapsApi("cluster.get_settings", "")]
116116
public Task<TResponse> GetSettingsAsync<TResponse>(ClusterGetSettingsRequestParameters requestParameters = null, CancellationToken ctx = default)
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
2+
// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
3+
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
4+
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
5+
// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
6+
// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
7+
// -----------------------------------------------
8+
//
9+
// This file is automatically generated
10+
// Please do not edit these files manually
11+
// Run the following in the root of the repos:
12+
//
13+
// *NIX : ./build.sh codegen
14+
// Windows : build.bat codegen
15+
//
16+
// -----------------------------------------------
17+
// ReSharper disable RedundantUsingDirective
18+
using System;
19+
using System.Collections.Generic;
20+
using System.Collections.Specialized;
21+
using System.Linq;
22+
using System.Text;
23+
using System.Threading;
24+
using System.Threading.Tasks;
25+
using Elasticsearch.Net;
26+
using Elastic.Transport;
27+
using static Elastic.Transport.HttpMethod;
28+
29+
// ReSharper disable InterpolatedStringExpressionIsNotIFormattable
30+
// ReSharper disable once CheckNamespace
31+
// ReSharper disable InterpolatedStringExpressionIsNotIFormattable
32+
// ReSharper disable RedundantExtendsListEntry
33+
namespace Elasticsearch.Net.Specification.FleetApi
34+
{
35+
///<summary>
36+
/// Fleet APIs.
37+
/// <para>Not intended to be instantiated directly. Use the <see cref = "IElasticLowLevelClient.Fleet"/> property
38+
/// on <see cref = "IElasticLowLevelClient"/>.
39+
///</para>
40+
///</summary>
41+
public class LowLevelFleetNamespace : NamespacedClientProxy
42+
{
43+
internal LowLevelFleetNamespace(ElasticLowLevelClient client): base(client)
44+
{
45+
}
46+
47+
///<summary>GET on /{index}/_fleet/global_checkpoints</summary>
48+
///<param name = "index">The name of the index.</param>
49+
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
50+
///<remarks>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.</remarks>
51+
public TResponse GlobalCheckpoints<TResponse>(string index, GlobalCheckpointsRequestParameters requestParameters = null)
52+
where TResponse : class, ITransportResponse, new() => DoRequest<TResponse>(GET, Url($"{index:index}/_fleet/global_checkpoints"), null, RequestParams(requestParameters));
53+
///<summary>GET on /{index}/_fleet/global_checkpoints</summary>
54+
///<param name = "index">The name of the index.</param>
55+
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
56+
///<remarks>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.</remarks>
57+
[MapsApi("fleet.global_checkpoints", "index")]
58+
public Task<TResponse> GlobalCheckpointsAsync<TResponse>(string index, GlobalCheckpointsRequestParameters requestParameters = null, CancellationToken ctx = default)
59+
where TResponse : class, ITransportResponse, new() => DoRequestAsync<TResponse>(GET, Url($"{index:index}/_fleet/global_checkpoints"), ctx, null, RequestParams(requestParameters));
60+
}
61+
}

src/Elasticsearch.Net/ElasticLowLevelClient.NoNamespace.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
using Elasticsearch.Net.Specification.EnrichApi;
3434
using Elasticsearch.Net.Specification.EqlApi;
3535
using Elasticsearch.Net.Specification.FeaturesApi;
36+
using Elasticsearch.Net.Specification.FleetApi;
3637
using Elasticsearch.Net.Specification.GraphApi;
3738
using Elasticsearch.Net.Specification.IndexLifecycleManagementApi;
3839
using Elasticsearch.Net.Specification.IndicesApi;
@@ -119,6 +120,12 @@ public LowLevelFeaturesNamespace Features
119120
private set;
120121
}
121122

123+
public LowLevelFleetNamespace Fleet
124+
{
125+
get;
126+
private set;
127+
}
128+
122129
public LowLevelGraphNamespace Graph
123130
{
124131
get;
@@ -256,6 +263,7 @@ partial void SetupNamespaces()
256263
Enrich = new LowLevelEnrichNamespace(this);
257264
Eql = new LowLevelEqlNamespace(this);
258265
Features = new LowLevelFeaturesNamespace(this);
266+
Fleet = new LowLevelFleetNamespace(this);
259267
Graph = new LowLevelGraphNamespace(this);
260268
IndexLifecycleManagement = new LowLevelIndexLifecycleManagementNamespace(this);
261269
Indices = new LowLevelIndicesNamespace(this);

src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
using Elasticsearch.Net.Specification.EnrichApi;
3434
using Elasticsearch.Net.Specification.EqlApi;
3535
using Elasticsearch.Net.Specification.FeaturesApi;
36+
using Elasticsearch.Net.Specification.FleetApi;
3637
using Elasticsearch.Net.Specification.GraphApi;
3738
using Elasticsearch.Net.Specification.IndexLifecycleManagementApi;
3839
using Elasticsearch.Net.Specification.IndicesApi;
@@ -116,6 +117,12 @@ LowLevelFeaturesNamespace Features
116117
get;
117118
}
118119

120+
///<summary>Fleet APIs</summary>
121+
LowLevelFleetNamespace Fleet
122+
{
123+
get;
124+
}
125+
119126
///<summary>Graph APIs</summary>
120127
LowLevelGraphNamespace Graph
121128
{

tests/Tests.Core/ManagedElasticsearch/Clusters/ClientTestClusterBase.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ params ElasticsearchPlugin[] plugins
5757
Add(AttributeKey("testingcluster"), "true");
5858
Add(AttributeKey("gateway"), "true");
5959
Add("search.remote.connect", "true", "<8.0.0");
60-
Add("node.remote_cluster_client", "true", ">=8.0.0-SNAPSHOT");
6160

6261
Add($"script.max_compilations_per_minute", "10000", "<6.0.0-rc1");
6362
Add($"script.max_compilations_rate", "10000/1m", ">=6.0.0-rc1 <7.9.0-SNAPSHOT");

0 commit comments

Comments
 (0)