Skip to content
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,8 +1,8 @@
{
"snapshot.get_features":{
"features.get_features":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html",
"description":"Returns a list of features which can be snapshotted in this cluster."
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/get-features-api.html",
"description":"Gets a list of features which can be included in snapshots using the feature_states field when creating a snapshot"
},
"stability":"stable",
"visibility":"public",
Expand All @@ -12,7 +12,7 @@
"url":{
"paths":[
{
"path":"/_snapshottable_features",
"path":"/_features",
"methods":[
"GET"
]
Expand Down
2 changes: 1 addition & 1 deletion src/ApiGenerator/last_downloaded_version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
61c3b8cb7bf3e410ee21657756f079ea035d15f5
31117358596113f881de5b58d75ebd2a4388a82b
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
// -----------------------------------------------
//
// 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.FeaturesApi
{
///<summary>Request options for Get <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/get-features-api.html</para></summary>
public class GetFeaturesRequestParameters : RequestParameters<GetFeaturesRequestParameters>
{
public override HttpMethod DefaultHttpMethod => HttpMethod.GET;
public override bool SupportsBody => false;
///<summary>Explicit operation timeout for connection to master node</summary>
public TimeSpan MasterTimeout
{
get => Q<TimeSpan>("master_timeout");
set => Q("master_timeout", value);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -164,19 +164,6 @@ public bool? Verbose
}
}

///<summary>Request options for GetFeatures <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html</para></summary>
public class GetFeaturesRequestParameters : RequestParameters<GetFeaturesRequestParameters>
{
public override HttpMethod DefaultHttpMethod => HttpMethod.GET;
public override bool SupportsBody => false;
///<summary>Explicit operation timeout for connection to master node</summary>
public TimeSpan MasterTimeout
{
get => Q<TimeSpan>("master_timeout");
set => Q("master_timeout", value);
}
}

///<summary>Request options for GetRepository <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html</para></summary>
public class GetRepositoryRequestParameters : RequestParameters<GetRepositoryRequestParameters>
{
Expand Down
56 changes: 56 additions & 0 deletions src/Elasticsearch.Net/ElasticLowLevelClient.Features.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
// -----------------------------------------------
//
// 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.FeaturesApi
{
///<summary>
/// Features APIs.
/// <para>Not intended to be instantiated directly. Use the <see cref = "IElasticLowLevelClient.Features"/> property
/// on <see cref = "IElasticLowLevelClient"/>.
///</para>
///</summary>
public partial class LowLevelFeaturesNamespace : NamespacedClientProxy
{
internal LowLevelFeaturesNamespace(ElasticLowLevelClient client): base(client)
{
}

///<summary>GET on /_features <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/get-features-api.html</para></summary>
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
public TResponse Get<TResponse>(GetFeaturesRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => DoRequest<TResponse>(GET, "_features", null, RequestParams(requestParameters));
///<summary>GET on /_features <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/get-features-api.html</para></summary>
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
[MapsApi("features.get_features", "")]
public Task<TResponse> GetAsync<TResponse>(GetFeaturesRequestParameters requestParameters = null, CancellationToken ctx = default)
where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync<TResponse>(GET, "_features", 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 @@ -31,6 +31,7 @@
using Elasticsearch.Net.Specification.DanglingIndicesApi;
using Elasticsearch.Net.Specification.EnrichApi;
using Elasticsearch.Net.Specification.EqlApi;
using Elasticsearch.Net.Specification.FeaturesApi;
using Elasticsearch.Net.Specification.GraphApi;
using Elasticsearch.Net.Specification.IndexLifecycleManagementApi;
using Elasticsearch.Net.Specification.IndicesApi;
Expand Down Expand Up @@ -110,6 +111,12 @@ public LowLevelEqlNamespace Eql
private set;
}

public LowLevelFeaturesNamespace Features
{
get;
private set;
}

public LowLevelGraphNamespace Graph
{
get;
Expand Down Expand Up @@ -240,6 +247,7 @@ partial void SetupNamespaces()
DanglingIndices = new LowLevelDanglingIndicesNamespace(this);
Enrich = new LowLevelEnrichNamespace(this);
Eql = new LowLevelEqlNamespace(this);
Features = new LowLevelFeaturesNamespace(this);
Graph = new LowLevelGraphNamespace(this);
IndexLifecycleManagement = new LowLevelIndexLifecycleManagementNamespace(this);
Indices = new LowLevelIndicesNamespace(this);
Expand Down
9 changes: 0 additions & 9 deletions src/Elasticsearch.Net/ElasticLowLevelClient.Snapshot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,6 @@ public TResponse Get<TResponse>(string repository, string snapshot, GetSnapshotR
[MapsApi("snapshot.get", "repository, snapshot")]
public Task<TResponse> GetAsync<TResponse>(string repository, string snapshot, GetSnapshotRequestParameters requestParameters = null, CancellationToken ctx = default)
where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync<TResponse>(GET, Url($"_snapshot/{repository:repository}/{snapshot:snapshot}"), ctx, null, RequestParams(requestParameters));
///<summary>GET on /_snapshottable_features <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html</para></summary>
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
public TResponse GetFeatures<TResponse>(GetFeaturesRequestParameters requestParameters = null)
where TResponse : class, IElasticsearchResponse, new() => DoRequest<TResponse>(GET, "_snapshottable_features", null, RequestParams(requestParameters));
///<summary>GET on /_snapshottable_features <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html</para></summary>
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
[MapsApi("snapshot.get_features", "")]
public Task<TResponse> GetFeaturesAsync<TResponse>(GetFeaturesRequestParameters requestParameters = null, CancellationToken ctx = default)
where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync<TResponse>(GET, "_snapshottable_features", ctx, null, RequestParams(requestParameters));
///<summary>GET on /_snapshot <para>https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html</para></summary>
///<param name = "requestParameters">Request specific configuration such as querystring parameters &amp; request specific connection settings.</param>
public TResponse GetRepository<TResponse>(GetRepositoryRequestParameters requestParameters = null)
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 @@ -31,6 +31,7 @@
using Elasticsearch.Net.Specification.DanglingIndicesApi;
using Elasticsearch.Net.Specification.EnrichApi;
using Elasticsearch.Net.Specification.EqlApi;
using Elasticsearch.Net.Specification.FeaturesApi;
using Elasticsearch.Net.Specification.GraphApi;
using Elasticsearch.Net.Specification.IndexLifecycleManagementApi;
using Elasticsearch.Net.Specification.IndicesApi;
Expand Down Expand Up @@ -107,6 +108,12 @@ LowLevelEqlNamespace Eql
get;
}

///<summary>Features APIs</summary>
LowLevelFeaturesNamespace Features
{
get;
}

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