|
| 1 | +using System; |
| 2 | +using System.Threading; |
| 3 | +using System.Threading.Tasks; |
| 4 | +using static Elasticsearch.Net.HttpMethod; |
| 5 | + |
| 6 | +namespace Elasticsearch.Net |
| 7 | +{ |
| 8 | + public partial class ElasticLowLevelClient |
| 9 | + { |
| 10 | + ///<summary>GET on /_xpack/migration/deprecations <para>http://www.elastic.co/guide/en/migration/current/migration-api-deprecation.html</para></summary> |
| 11 | + ///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param> |
| 12 | + [Obsolete("Use XpackMigrationDeprecations")] |
| 13 | + public TResponse XpackDeprecationInfo<TResponse>(DeprecationInfoRequestParameters requestParameters = null) |
| 14 | + where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"_xpack/migration/deprecations"), null, _params(requestParameters)); |
| 15 | + |
| 16 | + ///<summary>GET on /_xpack/migration/deprecations <para>http://www.elastic.co/guide/en/migration/current/migration-api-deprecation.html</para></summary> |
| 17 | + ///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param> |
| 18 | + [Obsolete("Use XpackMigrationDeprecationsAsync")] |
| 19 | + public Task<TResponse> XpackDeprecationInfoAsync<TResponse>(DeprecationInfoRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) |
| 20 | + where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"_xpack/migration/deprecations"), ctx, null, _params(requestParameters)); |
| 21 | + |
| 22 | + ///<summary>GET on /{index}/_xpack/migration/deprecations <para>http://www.elastic.co/guide/en/migration/current/migration-api-deprecation.html</para></summary> |
| 23 | + ///<param name="index">Index pattern</param> |
| 24 | + ///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param> |
| 25 | + [Obsolete("Use XpackMigrationDeprecations")] |
| 26 | + public TResponse XpackDeprecationInfo<TResponse>(string index, DeprecationInfoRequestParameters requestParameters = null) |
| 27 | + where TResponse : class, IElasticsearchResponse, new() => this.DoRequest<TResponse>(GET, Url($"{index.NotNull("index")}/_xpack/migration/deprecations"), null, _params(requestParameters)); |
| 28 | + |
| 29 | + ///<summary>GET on /{index}/_xpack/migration/deprecations <para>http://www.elastic.co/guide/en/migration/current/migration-api-deprecation.html</para></summary> |
| 30 | + ///<param name="index">Index pattern</param> |
| 31 | + ///<param name="requestParameters">A func that allows you to describe the querystring parameters & request specific connection settings.</param> |
| 32 | + [Obsolete("Use XpackMigrationDeprecationsAsync")] |
| 33 | + public Task<TResponse> XpackDeprecationInfoAsync<TResponse>(string index, DeprecationInfoRequestParameters requestParameters = null, CancellationToken ctx = default(CancellationToken)) |
| 34 | + where TResponse : class, IElasticsearchResponse, new() => this.DoRequestAsync<TResponse>(GET, Url($"{index.NotNull("index")}/_xpack/migration/deprecations"), ctx, null, _params(requestParameters)); |
| 35 | + } |
| 36 | +} |
0 commit comments