Skip to content

[codegen] 7.x synchronization #5540

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public TimeSpan MasterTimeout
}
}

///<summary>Request options for GetSettings <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html</para></summary>
///<summary>Request options for GetSettings <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-get-settings.html</para></summary>
public class ClusterGetSettingsRequestParameters : RequestParameters<ClusterGetSettingsRequestParameters>
{
public override HttpMethod DefaultHttpMethod => HttpMethod.GET;
Expand Down
Original file line number Diff line number Diff line change
@@ -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
{
///<summary>Request options for GlobalCheckpoints</summary>
public class GlobalCheckpointsRequestParameters : RequestParameters<GlobalCheckpointsRequestParameters>
{
public override HttpMethod DefaultHttpMethod => HttpMethod.GET;
public override bool SupportsBody => false;
///<summary>Comma separated list of checkpoints</summary>
public string[] Checkpoints
{
get => Q<string[]>("checkpoints");
set => Q("checkpoints", value);
}

///<summary>Timeout to wait for global checkpoint to advance</summary>
public TimeSpan Timeout
{
get => Q<TimeSpan>("timeout");
set => Q("timeout", value);
}

///<summary>Whether to wait for the global checkpoint to advance past the specified current checkpoints</summary>
public bool? WaitForAdvance
{
get => Q<bool? >("wait_for_advance");
set => Q("wait_for_advance", value);
}
}
}
4 changes: 2 additions & 2 deletions src/Elasticsearch.Net/ElasticLowLevelClient.Cluster.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ public TResponse GetComponentTemplate<TResponse>(string name, GetComponentTempla
[MapsApi("cluster.get_component_template", "name")]
public Task<TResponse> GetComponentTemplateAsync<TResponse>(string name, GetComponentTemplateRequestParameters requestParameters = null, CancellationToken ctx = default)
where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync<TResponse>(GET, Url($"_component_template/{name:name}"), ctx, null, RequestParams(requestParameters));
///<summary>GET on /_cluster/settings <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html</para></summary>
///<summary>GET on /_cluster/settings <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-get-settings.html</para></summary>
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
public TResponse GetSettings<TResponse>(ClusterGetSettingsRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => DoRequest<TResponse>(GET, "_cluster/settings", null, RequestParams(requestParameters));
///<summary>GET on /_cluster/settings <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html</para></summary>
///<summary>GET on /_cluster/settings <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-get-settings.html</para></summary>
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
[MapsApi("cluster.get_settings", "")]
public Task<TResponse> GetSettingsAsync<TResponse>(ClusterGetSettingsRequestParameters requestParameters = null, CancellationToken ctx = default)
Expand Down
60 changes: 60 additions & 0 deletions src/Elasticsearch.Net/ElasticLowLevelClient.Fleet.cs
Original file line number Diff line number Diff line change
@@ -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
{
///<summary>
/// Fleet APIs.
/// <para>Not intended to be instantiated directly. Use the <see cref = "IElasticLowLevelClient.Fleet"/> property
/// on <see cref = "IElasticLowLevelClient"/>.
///</para>
///</summary>
public partial class LowLevelFleetNamespace : NamespacedClientProxy
{
internal LowLevelFleetNamespace(ElasticLowLevelClient client): base(client)
{
}

///<summary>GET on /{index}/_fleet/global_checkpoints</summary>
///<param name = "index">The name of the index.</param>
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
///<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>
public TResponse GlobalCheckpoints<TResponse>(string index, GlobalCheckpointsRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => DoRequest<TResponse>(GET, Url($"{index:index}/_fleet/global_checkpoints"), null, RequestParams(requestParameters));
///<summary>GET on /{index}/_fleet/global_checkpoints</summary>
///<param name = "index">The name of the index.</param>
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
///<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>
[MapsApi("fleet.global_checkpoints", "index")]
public Task<TResponse> GlobalCheckpointsAsync<TResponse>(string index, GlobalCheckpointsRequestParameters requestParameters = null, CancellationToken ctx = default)
where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync<TResponse>(GET, Url($"{index:index}/_fleet/global_checkpoints"), ctx, null, RequestParams(requestParameters));
}
}
8 changes: 8 additions & 0 deletions src/Elasticsearch.Net/ElasticLowLevelClient.NoNamespace.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -118,6 +119,12 @@ public LowLevelFeaturesNamespace Features
private set;
}

public LowLevelFleetNamespace Fleet
{
get;
private set;
}

public LowLevelGraphNamespace Graph
{
get;
Expand Down Expand Up @@ -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);
Expand Down
7 changes: 7 additions & 0 deletions src/Elasticsearch.Net/IElasticLowLevelClient.Generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -115,6 +116,12 @@ LowLevelFeaturesNamespace Features
get;
}

///<summary>Fleet APIs</summary>
LowLevelFleetNamespace Fleet
{
get;
}

///<summary>Graph APIs</summary>
LowLevelGraphNamespace Graph
{
Expand Down