-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Final code-gen for API changes (#5444)
- Loading branch information
1 parent
5898d79
commit dd5e786
Showing
8 changed files
with
115 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
61c3b8cb7bf3e410ee21657756f079ea035d15f5 | ||
31117358596113f881de5b58d75ebd2a4388a82b |
39 changes: 39 additions & 0 deletions
39
src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Features.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 & 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 & 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)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters