diff --git a/benchmarks/Benchmarks/Program.cs b/benchmarks/Benchmarks/Program.cs
index 0e1be799c90..ba4b7dc9ef7 100644
--- a/benchmarks/Benchmarks/Program.cs
+++ b/benchmarks/Benchmarks/Program.cs
@@ -8,13 +8,10 @@
using BenchmarkDotNet.Reports;
using BenchmarkDotNet.Running;
using Elastic.Clients.Elasticsearch;
-using Elastic.Clients.Elasticsearch.Enrich;
-using Elastic.Clients.Elasticsearch.QueryDsl;
using Elastic.Transport;
using Nest;
using System.Globalization;
using System.Text;
-using Policy = Elastic.Clients.Elasticsearch.Enrich.Policy;
var config = ManualConfig.Create(DefaultConfig.Instance);
config.SummaryStyle = new SummaryStyle(CultureInfo.CurrentCulture, true, BenchmarkDotNet.Columns.SizeUnit.B, null);
diff --git a/src/Elastic.Clients.Elasticsearch/Common/Query/Query.cs b/src/Elastic.Clients.Elasticsearch/Common/Query/Query.cs
index 6320a2b7ced..d1ea24c91d4 100644
--- a/src/Elastic.Clients.Elasticsearch/Common/Query/Query.cs
+++ b/src/Elastic.Clients.Elasticsearch/Common/Query/Query.cs
@@ -2,629 +2,9 @@
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
// See the LICENSE file in the project root for more information.
-using System;
-using System.IO;
-using System.Text.Json;
-using System.Text.RegularExpressions;
-using Elastic.Clients.Elasticsearch.Enrich;
-using Elastic.Transport;
-
namespace Elastic.Clients.Elasticsearch.QueryDsl
{
- //public interface IQuery
- //{
- // ///
- // /// Provides a boost to this query to influence its relevance score.
- // /// For example, a query with a boost of 2 is twice as important as a query with a boost of 1,
- // /// although the actual boost value that is applied undergoes normalization and internal optimization.
- // ///
- // //float? Boost { get; set; } // Was defined as a double before the code gen work
-
- // /////
- // ///// Whether the query is conditionless. A conditionless query is not serialized as part of the request
- // ///// sent to Elasticsearch.
- // /////
- // //[JsonIgnore]
- // //bool Conditionless { get; }
-
- // /////
- // ///// Whether the query should be treated as strict. A strict query will throw an exception when serialized
- // ///// if it is .
- // /////
- // //[JsonIgnore]
- // //bool IsStrict { get; set; }
-
- // /////
- // ///// Whether the query should be treated as verbatim. A verbatim query will be serialized as part of the request,
- // ///// irrespective
- // ///// of whether it is or not.
- // /////
- // //[JsonIgnore]
- // //bool IsVerbatim { get; set; }
-
- // ///
- // /// Whether the query should be treated as writable. Used when determining how to combine queries.
- // ///
- // //[JsonIgnore]
- // //bool IsWritable { get; }
-
- // ///
- // /// The name of the query. Allows you to retrieve for each document what part of the query it matched on.
- // ///
- // //string Name { get; set; }
- //}
-
- //internal interface IFieldNameQueryDescriptor where T : Descriptor
- //{
- // T Field(Field field);
- //}
-
- //public partial class QueryContainerDescriptor
- //{
- // private void Set(Action> descriptorAction, string variantName)
- // where T : Descriptor, IFieldNameQueryDescriptor
- // {
- // if (ContainsVariant)
- // throw new Exception("TODO");
- // ContainedVariantName = variantName;
- // ContainsVariant = true;
- // DescriptorType = typeof(T);
- // var descriptor = (T)Activator.CreateInstance(typeof(T), true);
- // descriptorAction?.Invoke(descriptor);
- // Descriptor = descriptor;
- // }
-
- // private void Set(Field field, Action> descriptorAction, string variantName)
- // where T : Descriptor, IFieldNameQueryDescriptor
- // {
- // if (ContainsVariant)
- // throw new Exception("TODO");
- // ContainedVariantName = variantName;
- // ContainsVariant = true;
- // DescriptorType = typeof(T);
- // var descriptor = (T)Activator.CreateInstance(typeof(T), true);
- // descriptor.Field(field);
- // descriptorAction?.Invoke(descriptor);
- // Descriptor = descriptor;
- // }
- //}
-
- // Leaving descriptor value experiments for future pick up work
-
- // RESULT OF EXPERIMENTS:
- //| Method | Mean [ns] | Error [ns] | StdDev [ns] | Gen 0 | Gen 1 | Allocated [B] |
- //|------------------ |-----------:|-----------:|------------:|-------:|-------:|--------------:|
- //| Existing | 116.408 ns | 2.1955 ns | 2.1563 ns | 0.0942 | 0.0002 | 592 B |
- //| NewV1 | 113.021 ns | 1.8475 ns | 1.8145 ns | 0.0943 | 0.0004 | 592 B |
- //| NewV2 | 115.728 ns | 2.2291 ns | 2.0851 ns | 0.0905 | 0.0002 | 568 B |
- //| NewV3 | 112.813 ns | 2.2198 ns | 3.1118 ns | 0.0867 | 0.0002 | 544 B |
- //| SetExisting | 1.688 ns | 0.0384 ns | 0.0340 ns | - | - | - |
- //| SetNewV1 | 2.200 ns | 0.0232 ns | 0.0217 ns | - | - | - |
- //| SetNewV2 | 2.555 ns | 0.0289 ns | 0.0256 ns | - | - | - |
- //| SetNewV3 | 1.691 ns | 0.0306 ns | 0.0286 ns | - | - | - |
- //| SerialiseExisting | 461.120 ns | 9.0066 ns | 8.4248 ns | 0.0687 | - | 432 B |
- //| SerialiseNewV1 | 472.239 ns | 8.4655 ns | 7.9186 ns | 0.0687 | - | 432 B |
- //| SerialiseNewV2 | 476.059 ns | 9.2350 ns | 10.2647 ns | 0.0687 | - | 432 B |
- //| SerialiseNewV3 | 483.717 ns | 9.5424 ns | 8.9260 ns | 0.0687 | - | 432 B |
-
- // We can save 16 bytes per descriptor property (when those properties themselves support descriptors).
- // We would need to consider cases for types which do not have a descriptor and if we continue with a raw value property directly.
- // This is probably the best choice. Performance for setting and serialising is generally on par. Serialisation for V3 is slower so
- // is a trade off with the allocation reduction. Inlining may help there?
-
- //public sealed class Existing
- //{
- // private Elastic.Clients.Elasticsearch.Enrich.Policy? GeoMatchValue { get; set; }
- // private PolicyDescriptor GeoMatchDescriptor { get; set; }
- // private Action> GeoMatchDescriptorAction { get; set; }
- // private Elastic.Clients.Elasticsearch.Enrich.Policy? MatchValue { get; set; }
- // private PolicyDescriptor MatchDescriptor { get; set; }
- // private Action> MatchDescriptorAction { get; set; }
- // private Elastic.Clients.Elasticsearch.Enrich.Policy? RangeValue { get; set; }
- // private PolicyDescriptor RangeDescriptor { get; set; }
- // private Action> RangeDescriptorAction { get; set; }
- //}
-
- //public sealed class NewV1
- //{
- // private DescriptorValue> GeoMatchValue { get; set; }
- // private DescriptorValue> MatchValue { get; set; }
- // private DescriptorValue> RangeValue { get; set; }
- //}
-
- //public sealed class NewV2
- //{
- // private DescriptorValueV2> GeoMatchValue { get; set; }
- // private DescriptorValueV2> MatchValue { get; set; }
- // private DescriptorValueV2> RangeValue { get; set; }
- //}
-
- //public sealed partial class EnrichPutPolicyRequestDescriptorV2 : RequestDescriptorBase, EnrichPutPolicyRequestParameters>
- //{
- // internal EnrichPutPolicyRequestDescriptorV2(Action> configure) => configure.Invoke(this);
-
- // public EnrichPutPolicyRequestDescriptorV2(Name name) : base(r => r.Required("name", name))
- // {
- // }
-
- // internal EnrichPutPolicyRequestDescriptorV2()
- // {
- // }
-
- // internal override ApiUrls ApiUrls => ApiUrlsLookups.EnrichPutPolicy;
- // protected override HttpMethod HttpMethod => HttpMethod.PUT;
- // protected override bool SupportsBody => true;
-
- // public EnrichPutPolicyRequestDescriptorV2 Name(Name name)
- // {
- // RouteValues.Required("name", name);
- // return Self;
- // }
-
- // private DescriptorValue> GeoMatchValue { get; set; } = default;
- // private DescriptorValue> MatchValue { get; set; } = default;
- // private DescriptorValue> RangeValue { get; set; } = default;
-
- // public EnrichPutPolicyRequestDescriptorV2 GeoMatch(Policy? geoMatch)
- // {
- // GeoMatchValue = DescriptorValue>.Create(geoMatch);
- // return Self;
- // }
-
- // public EnrichPutPolicyRequestDescriptorV2 GeoMatch(PolicyDescriptor descriptor)
- // {
- // GeoMatchValue = DescriptorValue>.Create(descriptor);
- // return Self;
- // }
-
- // public EnrichPutPolicyRequestDescriptorV2 GeoMatch(Action> configure)
- // {
- // GeoMatchValue = DescriptorValue>.Create(configure);
- // return Self;
- // }
-
- // public EnrichPutPolicyRequestDescriptorV2 Match(Policy? match)
- // {
- // MatchValue = DescriptorValue>.Create(match);
- // return Self;
- // }
-
- // public EnrichPutPolicyRequestDescriptorV2 Match(PolicyDescriptor descriptor)
- // {
- // MatchValue = DescriptorValue>.Create(descriptor);
- // return Self;
- // }
-
- // public EnrichPutPolicyRequestDescriptorV2 Match(Action> configure)
- // {
- // MatchValue = DescriptorValue>.Create(configure);
- // return Self;
- // }
-
- // public EnrichPutPolicyRequestDescriptorV2 Range(Policy? range)
- // {
- // RangeValue = DescriptorValue>.Create(range);
- // return Self;
- // }
-
- // public EnrichPutPolicyRequestDescriptorV2 Range(PolicyDescriptor descriptor)
- // {
- // RangeValue = DescriptorValue>.Create(descriptor);
- // return Self;
- // }
-
- // public EnrichPutPolicyRequestDescriptorV2 Range(Action> configure)
- // {
- // RangeValue = DescriptorValue>.Create(configure);
- // return Self;
- // }
-
- // protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
- // {
- // writer.WriteStartObject();
- // GeoMatchValue.Serialize("geo_match", writer, options);
- // MatchValue.Serialize("match", writer, options);
- // RangeValue.Serialize("range", writer, options);
- // writer.WriteEndObject();
- // }
- //}
-
- //public sealed partial class EnrichPutPolicyRequestDescriptorV3 : RequestDescriptorBase, EnrichPutPolicyRequestParameters>
- //{
- // internal EnrichPutPolicyRequestDescriptorV3(Action> configure) => configure.Invoke(this);
-
- // public EnrichPutPolicyRequestDescriptorV3(Name name) : base(r => r.Required("name", name))
- // {
- // }
-
- // internal EnrichPutPolicyRequestDescriptorV3()
- // {
- // }
-
- // internal override ApiUrls ApiUrls => ApiUrlsLookups.EnrichPutPolicy;
- // protected override HttpMethod HttpMethod => HttpMethod.PUT;
- // protected override bool SupportsBody => true;
-
- // public EnrichPutPolicyRequestDescriptorV3 Name(Name name)
- // {
- // RouteValues.Required("name", name);
- // return Self;
- // }
-
- // private DescriptorValueV2> GeoMatchValue { get; set; } = default;
- // private DescriptorValueV2> MatchValue { get; set; } = default;
- // private DescriptorValueV2> RangeValue { get; set; } = default;
-
- // public EnrichPutPolicyRequestDescriptorV3 GeoMatch(Policy? geoMatch)
- // {
- // GeoMatchValue = DescriptorValueV2>.Create(geoMatch);
- // return Self;
- // }
-
- // public EnrichPutPolicyRequestDescriptorV3 GeoMatch(PolicyDescriptor descriptor)
- // {
- // GeoMatchValue = DescriptorValueV2>.Create(descriptor);
- // return Self;
- // }
-
- // public EnrichPutPolicyRequestDescriptorV3 GeoMatch(Action> configure)
- // {
- // GeoMatchValue = DescriptorValueV2>.Create(configure);
- // return Self;
- // }
-
- // public EnrichPutPolicyRequestDescriptorV3 Match(Policy? match)
- // {
- // MatchValue = DescriptorValueV2>.Create(match);
- // return Self;
- // }
-
- // public EnrichPutPolicyRequestDescriptorV3 Match(PolicyDescriptor descriptor)
- // {
- // MatchValue = DescriptorValueV2>.Create(descriptor);
- // return Self;
- // }
-
- // public EnrichPutPolicyRequestDescriptorV3 Match(Action> configure)
- // {
- // MatchValue = DescriptorValueV2>.Create(configure);
- // return Self;
- // }
-
- // public EnrichPutPolicyRequestDescriptorV3 Range(Policy? range)
- // {
- // RangeValue = DescriptorValueV2>.Create(range);
- // return Self;
- // }
-
- // public EnrichPutPolicyRequestDescriptorV3 Range(PolicyDescriptor descriptor)
- // {
- // RangeValue = DescriptorValueV2>.Create(descriptor);
- // return Self;
- // }
-
- // public EnrichPutPolicyRequestDescriptorV3 Range(Action> configure)
- // {
- // RangeValue = DescriptorValueV2>.Create(configure);
- // return Self;
- // }
-
- // protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
- // {
- // writer.WriteStartObject();
- // GeoMatchValue.Serialize("geo_match", writer, options);
- // MatchValue.Serialize("geo_match", writer, options);
- // RangeValue.Serialize("geo_match", writer, options);
- // writer.WriteEndObject();
- // }
- //}
-
- //public sealed partial class EnrichPutPolicyRequestDescriptorV4 : RequestDescriptorBase, EnrichPutPolicyRequestParameters>
- //{
- // internal EnrichPutPolicyRequestDescriptorV4(Action> configure) => configure.Invoke(this);
-
- // public EnrichPutPolicyRequestDescriptorV4(Name name) : base(r => r.Required("name", name))
- // {
- // }
-
- // internal EnrichPutPolicyRequestDescriptorV4()
- // {
- // }
-
- // internal override ApiUrls ApiUrls => ApiUrlsLookups.EnrichPutPolicy;
- // protected override HttpMethod HttpMethod => HttpMethod.PUT;
- // protected override bool SupportsBody => true;
-
- // public EnrichPutPolicyRequestDescriptorV4 Name(Name name)
- // {
- // RouteValues.Required("name", name);
- // return Self;
- // }
-
- // private DescriptorValueV3> GeoMatchValue { get; set; } = default;
- // private DescriptorValueV3> MatchValue { get; set; } = default;
- // private DescriptorValueV3> RangeValue { get; set; } = default;
-
- // public EnrichPutPolicyRequestDescriptorV4 GeoMatch(Policy? geoMatch)
- // {
- // GeoMatchValue = DescriptorValueV3>.Create(geoMatch);
- // return Self;
- // }
-
- // public EnrichPutPolicyRequestDescriptorV4 GeoMatch(PolicyDescriptor descriptor)
- // {
- // GeoMatchValue = DescriptorValueV3>.Create(descriptor);
- // return Self;
- // }
-
- // public EnrichPutPolicyRequestDescriptorV4 GeoMatch(Action> configure)
- // {
- // GeoMatchValue = DescriptorValueV3>.Create(configure);
- // return Self;
- // }
-
- // public EnrichPutPolicyRequestDescriptorV4 Match(Policy? match)
- // {
- // MatchValue = DescriptorValueV3>.Create(match);
- // return Self;
- // }
-
- // public EnrichPutPolicyRequestDescriptorV4 Match(PolicyDescriptor descriptor)
- // {
- // MatchValue = DescriptorValueV3>.Create(descriptor);
- // return Self;
- // }
-
- // public EnrichPutPolicyRequestDescriptorV4 Match(Action> configure)
- // {
- // MatchValue = DescriptorValueV3>.Create(configure);
- // return Self;
- // }
-
- // public EnrichPutPolicyRequestDescriptorV4 Range(Policy? range)
- // {
- // RangeValue = DescriptorValueV3>.Create(range);
- // return Self;
- // }
-
- // public EnrichPutPolicyRequestDescriptorV4 Range(PolicyDescriptor descriptor)
- // {
- // RangeValue = DescriptorValueV3>.Create(descriptor);
- // return Self;
- // }
-
- // public EnrichPutPolicyRequestDescriptorV4 Range(Action> configure)
- // {
- // RangeValue = DescriptorValueV3>.Create(configure);
- // return Self;
- // }
-
- // protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
- // {
- // writer.WriteStartObject();
- // GeoMatchValue.Serialize("geo_match", writer, options);
- // MatchValue.Serialize("geo_match", writer, options);
- // RangeValue.Serialize("geo_match", writer, options);
- // writer.WriteEndObject();
- // }
- //}
-
- //internal readonly struct DescriptorValue
- // where TDescriptor : Descriptor
- //{
- // private readonly TObject? _object;
- // private readonly TDescriptor? _descriptor;
- // private readonly Action? _descriptorAction;
- // //private bool _isSet;
-
- // private DescriptorValue(TObject value)
- // {
- // _descriptor = null;
- // _descriptorAction = null;
- // _object = value;
- // }
-
- // private DescriptorValue(TDescriptor value)
- // {
- // _descriptor = value;
- // _descriptorAction = null;
- // _object = default;
- // }
-
- // private DescriptorValue(Action value)
- // {
- // _descriptor = null;
- // _descriptorAction = value;
- // _object = default;
- // }
-
- // public static DescriptorValue Create(TObject value)
- // => value switch
- // {
- // null => default,
- // _ => new(value)
- // };
-
- // public static DescriptorValue Create(TDescriptor descriptor)
- // => descriptor switch
- // {
- // null => default,
- // _ => new(descriptor)
- // };
-
- // public static DescriptorValue Create(Action action)
- // => action switch
- // {
- // null => default,
- // _ => new(action)
- // };
-
- // public void Serialize(string propertyName, Utf8JsonWriter writer, JsonSerializerOptions options)
- // {
- // // We could include a ctor taking propertyName so we set it when initialising the property on descriptors?
-
- // //if (!_isSet)
- // // return;
-
- // //writer.WritePropertyName(propertyName);
-
- // // Benchmark using a integer flag to know which value is set so we can avoid the null checks which "might" be faster.
-
- // if (_object is not null)
- // {
- // writer.WritePropertyName(propertyName);
- // JsonSerializer.Serialize(writer, _object, options);
- // }
- // else if (_descriptor is not null)
- // {
- // writer.WritePropertyName(propertyName);
- // JsonSerializer.Serialize(writer, _descriptor, options);
- // }
- // else if (_descriptorAction is not null)
- // {
- // writer.WritePropertyName(propertyName);
- // var descriptor = (TDescriptor)Activator.CreateInstance(typeof(TDescriptor), true);
- // _descriptorAction?.Invoke(descriptor);
- // JsonSerializer.Serialize(writer, descriptor, options);
- // }
- // }
- //}
-
- //internal readonly struct DescriptorValueV2
- // where TDescriptor : Descriptor
- //{
- // private readonly object? _object;
- // private readonly int _containedValueType;
-
- // private DescriptorValueV2(TObject value)
- // {
- // _object = value;
- // _containedValueType = value is null ? 0 : 1;
- // }
-
- // private DescriptorValueV2(TDescriptor value)
- // {
- // _object = value;
- // _containedValueType = value is null ? 0 : 2;
- // }
-
- // private DescriptorValueV2(Action value)
- // {
- // _object = value;
- // _containedValueType = value is null ? 0 : 3;
- // }
-
- // public static DescriptorValueV2 Create(TObject value)
- // => value switch
- // {
- // null => default,
- // _ => new(value)
- // };
-
- // public static DescriptorValueV2 Create(TDescriptor descriptor)
- // => descriptor switch
- // {
- // null => default,
- // _ => new(descriptor)
- // };
-
- // public static DescriptorValueV2 Create(Action action)
- // => action switch
- // {
- // null => default,
- // _ => new(action)
- // };
-
- // public void Serialize(string propertyName, Utf8JsonWriter writer, JsonSerializerOptions options)
- // {
- // // We could include a ctor taking propertyName so we set it when initialising the property on descriptors?
-
- // if (_containedValueType == 0)
- // return;
-
- // writer.WritePropertyName(propertyName);
-
- // // Benchmark using a integer flag to know which value is set so we can avoid the null checks which "might" be faster.
-
- // switch (_containedValueType)
- // {
- // case 1:
- // JsonSerializer.Serialize(writer, (TObject)_object, options);
- // break;
- // case 2:
- // JsonSerializer.Serialize(writer, (TDescriptor)_object, options);
- // break;
- // case 3:
- // var descriptor = (TDescriptor)Activator.CreateInstance(typeof(TDescriptor), true);
- // ((Action)_object)?.Invoke(descriptor);
- // JsonSerializer.Serialize(writer, descriptor, options);
- // break;
- // }
- // }
- //}
-
- //internal readonly struct DescriptorValueV3
- // where TDescriptor : Descriptor
- //{
- // private readonly object? _object;
- // // removing the int reduces the footprint but forces the use of type checking to perform operations
-
- // private DescriptorValueV3(TObject value) => _object = value;
-
- // private DescriptorValueV3(TDescriptor value) => _object = value;
-
- // private DescriptorValueV3(Action value) => _object = value;
-
- // public static DescriptorValueV3 Create(TObject value)
- // => value switch
- // {
- // null => default,
- // _ => new(value)
- // };
-
- // public static DescriptorValueV3 Create(TDescriptor descriptor)
- // => descriptor switch
- // {
- // null => default,
- // _ => new(descriptor)
- // };
-
- // public static DescriptorValueV3 Create(Action action)
- // => action switch
- // {
- // null => default,
- // _ => new(action)
- // };
-
- // public void Serialize(string propertyName, Utf8JsonWriter writer, JsonSerializerOptions options)
- // {
- // // We could include a ctor taking propertyName so we set it when initialising the property on descriptors?
-
- // if (_object is null)
- // return;
-
- // writer.WritePropertyName(propertyName);
-
- // // Benchmark using a integer flag to know which value is set so we can avoid the null checks which "might" be faster.
-
- // if (_object is TObject value)
- // {
- // JsonSerializer.Serialize(writer, value, options);
- // }
- // else if (_object is TDescriptor descriptor)
- // {
- // JsonSerializer.Serialize(writer, descriptor, options);
- // }
- // else
- // {
- // var d = (TDescriptor)Activator.CreateInstance(typeof(TDescriptor), true);
- // ((Action)_object)?.Invoke(d);
- // JsonSerializer.Serialize(writer, d, options);
- // }
- // }
- //}
-
- public abstract partial class Query //: IQuery
+ public abstract partial class Query
{
//[JsonIgnore]
//public bool IsWritable => throw new NotImplementedException();
diff --git a/src/Elastic.Clients.Elasticsearch/Serialization/PercentageConverter.cs b/src/Elastic.Clients.Elasticsearch/Serialization/PercentageConverter.cs
index 14f5cf16a6b..1652771bd36 100644
--- a/src/Elastic.Clients.Elasticsearch/Serialization/PercentageConverter.cs
+++ b/src/Elastic.Clients.Elasticsearch/Serialization/PercentageConverter.cs
@@ -9,34 +9,32 @@
namespace Elastic.Clients.Elasticsearch
{
- internal sealed class PercentageConverter : JsonConverter
- {
- public override Percentage Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
- {
- var token = reader.TokenType;
+ //internal sealed class PercentageConverter : JsonConverter
+ //{
+ // public override Percentage Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
+ // {
+ // var token = reader.TokenType;
- switch (token)
- {
- case JsonTokenType.String:
- {
- var value = reader.GetString();
- var result = (Percentage)Activator.CreateInstance(typeof(Percentage), value);
- return result;
- }
- case JsonTokenType.Number:
- {
- var value = reader.GetSingle();
- var result = (Percentage)Activator.CreateInstance(typeof(Percentage), value);
- return result;
- }
- }
+ // switch (token)
+ // {
+ // case JsonTokenType.String:
+ // {
+ // var value = reader.GetString();
+ // var result = (Percentage)Activator.CreateInstance(typeof(Percentage), value);
+ // return result;
+ // }
+ // case JsonTokenType.Number:
+ // {
+ // var value = reader.GetSingle();
+ // var result = (Percentage)Activator.CreateInstance(typeof(Percentage), value);
+ // return result;
+ // }
+ // }
- throw new SerializationException();
- }
+ // throw new SerializationException();
+ // }
- public override void Write(Utf8JsonWriter writer, Percentage value, JsonSerializerOptions options) =>
- throw new NotImplementedException();
- }
-
-
+ // public override void Write(Utf8JsonWriter writer, Percentage value, JsonSerializerOptions options) =>
+ // throw new NotImplementedException();
+ //}
}
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlsLookup.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlsLookup.g.cs
index 863ef3d1b63..a1149150cbd 100644
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlsLookup.g.cs
+++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/ApiUrlsLookup.g.cs
@@ -23,53 +23,16 @@ internal static class ApiUrlsLookups
internal static ApiUrls AsyncSearchSubmit = new ApiUrls(new[] { "/_async_search", "/{index}/_async_search" });
internal static ApiUrls AsyncSearchDelete = new ApiUrls(new[] { "/_async_search/{id}" });
internal static ApiUrls AsyncSearchGet = new ApiUrls(new[] { "/_async_search/{id}" });
- internal static ApiUrls AutoscalingDeleteAutoscalingPolicy = new ApiUrls(new[] { "/_autoscaling/policy/{name}" });
- internal static ApiUrls AutoscalingGetAutoscalingCapacity = new ApiUrls(new[] { "/_autoscaling/capacity" });
- internal static ApiUrls AutoscalingGetAutoscalingPolicy = new ApiUrls(new[] { "/_autoscaling/policy/{name}" });
- internal static ApiUrls AutoscalingPutAutoscalingPolicy = new ApiUrls(new[] { "/_autoscaling/policy/{name}" });
internal static ApiUrls NoNamespaceBulk = new ApiUrls(new[] { "/_bulk", "/{index}/_bulk" });
- internal static ApiUrls CrossClusterReplicationDeleteAutoFollowPattern = new ApiUrls(new[] { "/_ccr/auto_follow/{name}" });
- internal static ApiUrls CrossClusterReplicationFollowInfo = new ApiUrls(new[] { "/{index}/_ccr/info" });
- internal static ApiUrls CrossClusterReplicationFollow = new ApiUrls(new[] { "/{index}/_ccr/follow" });
- internal static ApiUrls CrossClusterReplicationFollowStats = new ApiUrls(new[] { "/{index}/_ccr/stats" });
- internal static ApiUrls CrossClusterReplicationForgetFollower = new ApiUrls(new[] { "/{index}/_ccr/forget_follower" });
- internal static ApiUrls CrossClusterReplicationGetAutoFollowPattern = new ApiUrls(new[] { "/_ccr/auto_follow", "/_ccr/auto_follow/{name}" });
- internal static ApiUrls CrossClusterReplicationPauseAutoFollowPattern = new ApiUrls(new[] { "/_ccr/auto_follow/{name}/pause" });
- internal static ApiUrls CrossClusterReplicationPauseFollow = new ApiUrls(new[] { "/{index}/_ccr/pause_follow" });
- internal static ApiUrls CrossClusterReplicationPutAutoFollowPattern = new ApiUrls(new[] { "/_ccr/auto_follow/{name}" });
- internal static ApiUrls CrossClusterReplicationResumeAutoFollowPattern = new ApiUrls(new[] { "/_ccr/auto_follow/{name}/resume" });
- internal static ApiUrls CrossClusterReplicationResumeFollow = new ApiUrls(new[] { "/{index}/_ccr/resume_follow" });
- internal static ApiUrls CrossClusterReplicationStats = new ApiUrls(new[] { "/_ccr/stats" });
- internal static ApiUrls CrossClusterReplicationUnfollow = new ApiUrls(new[] { "/{index}/_ccr/unfollow" });
internal static ApiUrls NoNamespaceClearScroll = new ApiUrls(new[] { "/_search/scroll" });
internal static ApiUrls NoNamespaceClosePointInTime = new ApiUrls(new[] { "/_pit" });
- internal static ApiUrls ClusterAllocationExplain = new ApiUrls(new[] { "/_cluster/allocation/explain" });
- internal static ApiUrls ClusterDeleteComponentTemplate = new ApiUrls(new[] { "/_component_template/{name}" });
- internal static ApiUrls ClusterDeleteVotingConfigExclusions = new ApiUrls(new[] { "/_cluster/voting_config_exclusions" });
- internal static ApiUrls ClusterExistsComponentTemplate = new ApiUrls(new[] { "/_component_template/{name}" });
- internal static ApiUrls ClusterGetComponentTemplate = new ApiUrls(new[] { "/_component_template", "/_component_template/{name}" });
- internal static ApiUrls ClusterGetSettings = new ApiUrls(new[] { "/_cluster/settings" });
internal static ApiUrls ClusterHealth = new ApiUrls(new[] { "/_cluster/health", "/_cluster/health/{index}" });
- internal static ApiUrls ClusterPendingTasks = new ApiUrls(new[] { "/_cluster/pending_tasks" });
- internal static ApiUrls ClusterPostVotingConfigExclusions = new ApiUrls(new[] { "/_cluster/voting_config_exclusions" });
- internal static ApiUrls ClusterPutComponentTemplate = new ApiUrls(new[] { "/_component_template/{name}" });
- internal static ApiUrls ClusterPutSettings = new ApiUrls(new[] { "/_cluster/settings" });
- internal static ApiUrls ClusterRemoteInfo = new ApiUrls(new[] { "/_remote/info" });
- internal static ApiUrls ClusterReroute = new ApiUrls(new[] { "/_cluster/reroute" });
- internal static ApiUrls ClusterState = new ApiUrls(new[] { "/_cluster/state", "/_cluster/state/{metric}", "/_cluster/state/{metric}/{index}" });
- internal static ApiUrls ClusterStats = new ApiUrls(new[] { "/_cluster/stats", "/_cluster/stats/nodes/{node_id}" });
internal static ApiUrls NoNamespaceCount = new ApiUrls(new[] { "/_count", "/{index}/_count" });
internal static ApiUrls NoNamespaceCreate = new ApiUrls(new[] { "/{index}/_create/{id}" });
- internal static ApiUrls DanglingIndicesListDanglingIndices = new ApiUrls(new[] { "/_dangling" });
internal static ApiUrls NoNamespaceDeleteByQuery = new ApiUrls(new[] { "/{index}/_delete_by_query" });
internal static ApiUrls NoNamespaceDeleteByQueryRethrottle = new ApiUrls(new[] { "/_delete_by_query/{task_id}/_rethrottle" });
internal static ApiUrls NoNamespaceDelete = new ApiUrls(new[] { "/{index}/_doc/{id}" });
internal static ApiUrls NoNamespaceDeleteScript = new ApiUrls(new[] { "/_scripts/{id}" });
- internal static ApiUrls EnrichDeletePolicy = new ApiUrls(new[] { "/_enrich/policy/{name}" });
- internal static ApiUrls EnrichExecutePolicy = new ApiUrls(new[] { "/_enrich/policy/{name}/_execute" });
- internal static ApiUrls EnrichGetPolicy = new ApiUrls(new[] { "/_enrich/policy/{name}", "/_enrich/policy" });
- internal static ApiUrls EnrichPutPolicy = new ApiUrls(new[] { "/_enrich/policy/{name}" });
- internal static ApiUrls EnrichStats = new ApiUrls(new[] { "/_enrich/_stats" });
internal static ApiUrls EqlDelete = new ApiUrls(new[] { "/_eql/search/{id}" });
internal static ApiUrls EqlGetStatus = new ApiUrls(new[] { "/_eql/search/status/{id}" });
internal static ApiUrls EqlSearch = new ApiUrls(new[] { "/{index}/_eql/search" });
@@ -77,21 +40,8 @@ internal static class ApiUrlsLookups
internal static ApiUrls NoNamespaceExists = new ApiUrls(new[] { "/{index}/_doc/{id}" });
internal static ApiUrls NoNamespaceExistsSource = new ApiUrls(new[] { "/{index}/_source/{id}" });
internal static ApiUrls NoNamespaceExplain = new ApiUrls(new[] { "/{index}/_explain/{id}" });
- internal static ApiUrls FeaturesGetFeatures = new ApiUrls(new[] { "/_features" });
internal static ApiUrls NoNamespaceFieldCaps = new ApiUrls(new[] { "/_field_caps", "/{index}/_field_caps" });
internal static ApiUrls NoNamespaceGet = new ApiUrls(new[] { "/{index}/_doc/{id}" });
- internal static ApiUrls GraphExplore = new ApiUrls(new[] { "/{index}/_graph/explore" });
- internal static ApiUrls IndexLifecycleManagementDeleteLifecycle = new ApiUrls(new[] { "/_ilm/policy/{policy}" });
- internal static ApiUrls IndexLifecycleManagementExplainLifecycle = new ApiUrls(new[] { "/{index}/_ilm/explain" });
- internal static ApiUrls IndexLifecycleManagementGetLifecycle = new ApiUrls(new[] { "/_ilm/policy/{policy}", "/_ilm/policy" });
- internal static ApiUrls IndexLifecycleManagementGetStatus = new ApiUrls(new[] { "/_ilm/status" });
- internal static ApiUrls IndexLifecycleManagementMigrateToDataTiers = new ApiUrls(new[] { "/_ilm/migrate_to_data_tiers" });
- internal static ApiUrls IndexLifecycleManagementMoveToStep = new ApiUrls(new[] { "/_ilm/move/{index}" });
- internal static ApiUrls IndexLifecycleManagementPutLifecycle = new ApiUrls(new[] { "/_ilm/policy/{policy}" });
- internal static ApiUrls IndexLifecycleManagementRemovePolicy = new ApiUrls(new[] { "/{index}/_ilm/remove" });
- internal static ApiUrls IndexLifecycleManagementRetry = new ApiUrls(new[] { "/{index}/_ilm/retry" });
- internal static ApiUrls IndexLifecycleManagementStart = new ApiUrls(new[] { "/_ilm/start" });
- internal static ApiUrls IndexLifecycleManagementStop = new ApiUrls(new[] { "/_ilm/stop" });
internal static ApiUrls IndexManagementGetAlias = new ApiUrls(new[] { "/_alias", "/_alias/{name}", "/{index}/_alias/{name}", "/{index}/_alias" });
internal static ApiUrls IndexManagementAnalyze = new ApiUrls(new[] { "/_analyze", "/{index}/_analyze" });
internal static ApiUrls IndexManagementClearCache = new ApiUrls(new[] { "/_cache/clear", "/{index}/_cache/clear" });
@@ -141,84 +91,9 @@ internal static class ApiUrlsLookups
internal static ApiUrls IndexManagementValidateQuery = new ApiUrls(new[] { "/_validate/query", "/{index}/_validate/query" });
internal static ApiUrls NoNamespaceIndex = new ApiUrls(new[] { "/{index}/_doc/{id}", "/{index}/_doc" });
internal static ApiUrls NoNamespaceInfo = new ApiUrls(new[] { "/" });
- internal static ApiUrls IngestDeletePipeline = new ApiUrls(new[] { "/_ingest/pipeline/{id}" });
- internal static ApiUrls IngestGeoIpStats = new ApiUrls(new[] { "/_ingest/geoip/stats" });
- internal static ApiUrls IngestGetPipeline = new ApiUrls(new[] { "/_ingest/pipeline", "/_ingest/pipeline/{id}" });
- internal static ApiUrls IngestProcessorGrok = new ApiUrls(new[] { "/_ingest/processor/grok" });
- internal static ApiUrls IngestPutPipeline = new ApiUrls(new[] { "/_ingest/pipeline/{id}" });
- internal static ApiUrls IngestSimulate = new ApiUrls(new[] { "/_ingest/pipeline/_simulate", "/_ingest/pipeline/{id}/_simulate" });
- internal static ApiUrls LicenseDelete = new ApiUrls(new[] { "/_license" });
- internal static ApiUrls LicenseGet = new ApiUrls(new[] { "/_license" });
- internal static ApiUrls LicenseGetBasicStatus = new ApiUrls(new[] { "/_license/basic_status" });
- internal static ApiUrls LicenseGetTrialStatus = new ApiUrls(new[] { "/_license/trial_status" });
- internal static ApiUrls LicensePost = new ApiUrls(new[] { "/_license" });
- internal static ApiUrls LicensePostStartBasic = new ApiUrls(new[] { "/_license/start_basic" });
- internal static ApiUrls LicensePostStartTrial = new ApiUrls(new[] { "/_license/start_trial" });
- internal static ApiUrls LogstashDeletePipeline = new ApiUrls(new[] { "/_logstash/pipeline/{id}" });
- internal static ApiUrls LogstashPutPipeline = new ApiUrls(new[] { "/_logstash/pipeline/{id}" });
- internal static ApiUrls MachineLearningCloseJob = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/_close" });
- internal static ApiUrls MachineLearningDeleteCalendarEvent = new ApiUrls(new[] { "/_ml/calendars/{calendar_id}/events/{event_id}" });
- internal static ApiUrls MachineLearningDeleteCalendar = new ApiUrls(new[] { "/_ml/calendars/{calendar_id}" });
- internal static ApiUrls MachineLearningDeleteDatafeed = new ApiUrls(new[] { "/_ml/datafeeds/{datafeed_id}" });
- internal static ApiUrls MachineLearningDeleteDataFrameAnalytics = new ApiUrls(new[] { "/_ml/data_frame/analytics/{id}" });
- internal static ApiUrls MachineLearningDeleteExpiredData = new ApiUrls(new[] { "/_ml/_delete_expired_data/{job_id}", "/_ml/_delete_expired_data" });
- internal static ApiUrls MachineLearningDeleteFilter = new ApiUrls(new[] { "/_ml/filters/{filter_id}" });
- internal static ApiUrls MachineLearningDeleteForecast = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/_forecast", "/_ml/anomaly_detectors/{job_id}/_forecast/{forecast_id}" });
- internal static ApiUrls MachineLearningDeleteJob = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}" });
- internal static ApiUrls MachineLearningDeleteModelSnapshot = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}" });
- internal static ApiUrls MachineLearningDeleteTrainedModelAlias = new ApiUrls(new[] { "/_ml/trained_models/{model_id}/model_aliases/{model_alias}" });
- internal static ApiUrls MachineLearningDeleteTrainedModel = new ApiUrls(new[] { "/_ml/trained_models/{model_id}" });
- internal static ApiUrls MachineLearningEstimateModelMemory = new ApiUrls(new[] { "/_ml/anomaly_detectors/_estimate_model_memory" });
- internal static ApiUrls MachineLearningEvaluateDataFrame = new ApiUrls(new[] { "/_ml/data_frame/_evaluate" });
- internal static ApiUrls MachineLearningExplainDataFrameAnalytics = new ApiUrls(new[] { "/_ml/data_frame/analytics/_explain", "/_ml/data_frame/analytics/{id}/_explain" });
- internal static ApiUrls MachineLearningFlushJob = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/_flush" });
- internal static ApiUrls MachineLearningForecast = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/_forecast" });
- internal static ApiUrls MachineLearningGetCalendarEvents = new ApiUrls(new[] { "/_ml/calendars/{calendar_id}/events" });
- internal static ApiUrls MachineLearningGetCalendars = new ApiUrls(new[] { "/_ml/calendars", "/_ml/calendars/{calendar_id}" });
- internal static ApiUrls MachineLearningGetDataFrameAnalytics = new ApiUrls(new[] { "/_ml/data_frame/analytics/{id}", "/_ml/data_frame/analytics" });
- internal static ApiUrls MachineLearningGetDataFrameAnalyticsStats = new ApiUrls(new[] { "/_ml/data_frame/analytics/_stats", "/_ml/data_frame/analytics/{id}/_stats" });
- internal static ApiUrls MachineLearningGetInfluencers = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/results/influencers" });
- internal static ApiUrls MachineLearningGetJobStats = new ApiUrls(new[] { "/_ml/anomaly_detectors/_stats", "/_ml/anomaly_detectors/{job_id}/_stats" });
- internal static ApiUrls MachineLearningGetMemoryStats = new ApiUrls(new[] { "/_ml/memory/_stats", "/_ml/memory/{node_id}/_stats" });
- internal static ApiUrls MachineLearningGetModelSnapshots = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}", "/_ml/anomaly_detectors/{job_id}/model_snapshots" });
- internal static ApiUrls MachineLearningGetOverallBuckets = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/results/overall_buckets" });
- internal static ApiUrls MachineLearningGetRecords = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/results/records" });
- internal static ApiUrls MachineLearningGetTrainedModelsStats = new ApiUrls(new[] { "/_ml/trained_models/{model_id}/_stats", "/_ml/trained_models/_stats" });
- internal static ApiUrls MachineLearningInfo = new ApiUrls(new[] { "/_ml/info" });
- internal static ApiUrls MachineLearningOpenJob = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/_open" });
- internal static ApiUrls MachineLearningPostCalendarEvents = new ApiUrls(new[] { "/_ml/calendars/{calendar_id}/events" });
- internal static ApiUrls MachineLearningPreviewDatafeed = new ApiUrls(new[] { "/_ml/datafeeds/{datafeed_id}/_preview", "/_ml/datafeeds/_preview" });
- internal static ApiUrls MachineLearningPreviewDataFrameAnalytics = new ApiUrls(new[] { "/_ml/data_frame/analytics/_preview", "/_ml/data_frame/analytics/{id}/_preview" });
- internal static ApiUrls MachineLearningPutCalendarJob = new ApiUrls(new[] { "/_ml/calendars/{calendar_id}/jobs/{job_id}" });
- internal static ApiUrls MachineLearningPutCalendar = new ApiUrls(new[] { "/_ml/calendars/{calendar_id}" });
- internal static ApiUrls MachineLearningPutDatafeed = new ApiUrls(new[] { "/_ml/datafeeds/{datafeed_id}" });
- internal static ApiUrls MachineLearningPutDataFrameAnalytics = new ApiUrls(new[] { "/_ml/data_frame/analytics/{id}" });
- internal static ApiUrls MachineLearningPutFilter = new ApiUrls(new[] { "/_ml/filters/{filter_id}" });
- internal static ApiUrls MachineLearningPutJob = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}" });
- internal static ApiUrls MachineLearningPutTrainedModelAlias = new ApiUrls(new[] { "/_ml/trained_models/{model_id}/model_aliases/{model_alias}" });
- internal static ApiUrls MachineLearningPutTrainedModel = new ApiUrls(new[] { "/_ml/trained_models/{model_id}" });
- internal static ApiUrls MachineLearningResetJob = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/_reset" });
- internal static ApiUrls MachineLearningRevertModelSnapshot = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_revert" });
- internal static ApiUrls MachineLearningSetUpgradeMode = new ApiUrls(new[] { "/_ml/set_upgrade_mode" });
- internal static ApiUrls MachineLearningStartDatafeed = new ApiUrls(new[] { "/_ml/datafeeds/{datafeed_id}/_start" });
- internal static ApiUrls MachineLearningStartDataFrameAnalytics = new ApiUrls(new[] { "/_ml/data_frame/analytics/{id}/_start" });
- internal static ApiUrls MachineLearningStopDatafeed = new ApiUrls(new[] { "/_ml/datafeeds/{datafeed_id}/_stop" });
- internal static ApiUrls MachineLearningStopDataFrameAnalytics = new ApiUrls(new[] { "/_ml/data_frame/analytics/{id}/_stop" });
- internal static ApiUrls MachineLearningUpdateDatafeed = new ApiUrls(new[] { "/_ml/datafeeds/{datafeed_id}/_update" });
- internal static ApiUrls MachineLearningUpdateDataFrameAnalytics = new ApiUrls(new[] { "/_ml/data_frame/analytics/{id}/_update" });
- internal static ApiUrls MachineLearningUpdateFilter = new ApiUrls(new[] { "/_ml/filters/{filter_id}/_update" });
- internal static ApiUrls MachineLearningUpdateJob = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/_update" });
- internal static ApiUrls MachineLearningUpdateModelSnapshot = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_update" });
- internal static ApiUrls MachineLearningUpgradeJobSnapshot = new ApiUrls(new[] { "/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_upgrade" });
- internal static ApiUrls MachineLearningValidateDetector = new ApiUrls(new[] { "/_ml/anomaly_detectors/_validate/detector" });
- internal static ApiUrls MachineLearningValidate = new ApiUrls(new[] { "/_ml/anomaly_detectors/_validate" });
internal static ApiUrls NoNamespaceMget = new ApiUrls(new[] { "/_mget", "/{index}/_mget" });
internal static ApiUrls NoNamespaceMsearch = new ApiUrls(new[] { "/_msearch", "/{index}/_msearch" });
- internal static ApiUrls NodesHotThreads = new ApiUrls(new[] { "/_nodes/hot_threads", "/_nodes/{node_id}/hot_threads" });
- internal static ApiUrls NodesInfo = new ApiUrls(new[] { "/_nodes", "/_nodes/{node_id}", "/_nodes/{metric}", "/_nodes/{node_id}/{metric}" });
- internal static ApiUrls NodesReloadSecureSettings = new ApiUrls(new[] { "/_nodes/reload_secure_settings", "/_nodes/{node_id}/reload_secure_settings" });
- internal static ApiUrls NodesStats = new ApiUrls(new[] { "/_nodes/stats", "/_nodes/{node_id}/stats", "/_nodes/stats/{metric}", "/_nodes/{node_id}/stats/{metric}", "/_nodes/stats/{metric}/{index_metric}", "/_nodes/{node_id}/stats/{metric}/{index_metric}" });
- internal static ApiUrls NodesUsage = new ApiUrls(new[] { "/_nodes/usage", "/_nodes/{node_id}/usage", "/_nodes/usage/{metric}", "/_nodes/{node_id}/usage/{metric}" });
+ internal static ApiUrls NoNamespaceMsearchTemplate = new ApiUrls(new[] { "/_msearch/template", "/{index}/_msearch/template" });
internal static ApiUrls NoNamespaceOpenPointInTime = new ApiUrls(new[] { "/{index}/_pit" });
internal static ApiUrls NoNamespacePing = new ApiUrls(new[] { "/" });
internal static ApiUrls NoNamespacePutScript = new ApiUrls(new[] { "/_scripts/{id}", "/_scripts/{id}/{context}" });
@@ -229,83 +104,17 @@ internal static class ApiUrlsLookups
internal static ApiUrls NoNamespaceGetScriptLanguages = new ApiUrls(new[] { "/_script_language" });
internal static ApiUrls NoNamespaceGetScript = new ApiUrls(new[] { "/_scripts/{id}" });
internal static ApiUrls NoNamespaceScroll = new ApiUrls(new[] { "/_search/scroll" });
- internal static ApiUrls SearchableSnapshotsMount = new ApiUrls(new[] { "/_snapshot/{repository}/{snapshot}/_mount" });
- internal static ApiUrls SearchableSnapshotsStats = new ApiUrls(new[] { "/_searchable_snapshots/stats", "/{index}/_searchable_snapshots/stats" });
internal static ApiUrls NoNamespaceSearch = new ApiUrls(new[] { "/_search", "/{index}/_search" });
internal static ApiUrls NoNamespaceSearchShards = new ApiUrls(new[] { "/_search_shards", "/{index}/_search_shards" });
- internal static ApiUrls SecurityAuthenticate = new ApiUrls(new[] { "/_security/_authenticate" });
- internal static ApiUrls SecurityChangePassword = new ApiUrls(new[] { "/_security/user/{username}/_password", "/_security/user/_password" });
- internal static ApiUrls SecurityClearApiKeyCache = new ApiUrls(new[] { "/_security/api_key/{ids}/_clear_cache" });
- internal static ApiUrls SecurityClearCachedPrivileges = new ApiUrls(new[] { "/_security/privilege/{application}/_clear_cache" });
- internal static ApiUrls SecurityClearCachedRealms = new ApiUrls(new[] { "/_security/realm/{realms}/_clear_cache" });
- internal static ApiUrls SecurityClearCachedRoles = new ApiUrls(new[] { "/_security/role/{name}/_clear_cache" });
- internal static ApiUrls SecurityDeletePrivileges = new ApiUrls(new[] { "/_security/privilege/{application}/{name}" });
- internal static ApiUrls SecurityDeleteRoleMapping = new ApiUrls(new[] { "/_security/role_mapping/{name}" });
- internal static ApiUrls SecurityDeleteRole = new ApiUrls(new[] { "/_security/role/{name}" });
- internal static ApiUrls SecurityDeleteUser = new ApiUrls(new[] { "/_security/user/{username}" });
- internal static ApiUrls SecurityDisableUser = new ApiUrls(new[] { "/_security/user/{username}/_disable" });
- internal static ApiUrls SecurityEnableUser = new ApiUrls(new[] { "/_security/user/{username}/_enable" });
- internal static ApiUrls SecurityGetApiKey = new ApiUrls(new[] { "/_security/api_key" });
- internal static ApiUrls SecurityGetBuiltinPrivileges = new ApiUrls(new[] { "/_security/privilege/_builtin" });
- internal static ApiUrls SecurityGetPrivileges = new ApiUrls(new[] { "/_security/privilege", "/_security/privilege/{application}", "/_security/privilege/{application}/{name}" });
- internal static ApiUrls SecurityGetRoleMapping = new ApiUrls(new[] { "/_security/role_mapping/{name}", "/_security/role_mapping" });
- internal static ApiUrls SecurityGetRole = new ApiUrls(new[] { "/_security/role/{name}", "/_security/role" });
- internal static ApiUrls SecurityGetToken = new ApiUrls(new[] { "/_security/oauth2/token" });
- internal static ApiUrls SecurityGrantApiKey = new ApiUrls(new[] { "/_security/api_key/grant" });
- internal static ApiUrls SecurityHasPrivileges = new ApiUrls(new[] { "/_security/user/_has_privileges", "/_security/user/{user}/_has_privileges" });
- internal static ApiUrls SecurityInvalidateApiKey = new ApiUrls(new[] { "/_security/api_key" });
- internal static ApiUrls SecurityInvalidateToken = new ApiUrls(new[] { "/_security/oauth2/token" });
- internal static ApiUrls SecurityPutUser = new ApiUrls(new[] { "/_security/user/{username}" });
- internal static ApiUrls SecurityQueryApiKeys = new ApiUrls(new[] { "/_security/_query/api_key" });
- internal static ApiUrls SecuritySamlAuthenticate = new ApiUrls(new[] { "/_security/saml/authenticate" });
- internal static ApiUrls SecuritySamlCompleteLogout = new ApiUrls(new[] { "/_security/saml/complete_logout" });
- internal static ApiUrls SecuritySamlInvalidate = new ApiUrls(new[] { "/_security/saml/invalidate" });
- internal static ApiUrls SecuritySamlLogout = new ApiUrls(new[] { "/_security/saml/logout" });
- internal static ApiUrls SecuritySamlPrepareAuthentication = new ApiUrls(new[] { "/_security/saml/prepare" });
- internal static ApiUrls SecuritySamlServiceProviderMetadata = new ApiUrls(new[] { "/_security/saml/metadata/{realm_name}" });
- internal static ApiUrls SecurityUpdateApiKey = new ApiUrls(new[] { "/_security/api_key/{id}" });
- internal static ApiUrls SnapshotLifecycleManagementDeleteLifecycle = new ApiUrls(new[] { "/_slm/policy/{policy_id}" });
- internal static ApiUrls SnapshotLifecycleManagementExecuteLifecycle = new ApiUrls(new[] { "/_slm/policy/{policy_id}/_execute" });
- internal static ApiUrls SnapshotLifecycleManagementExecuteRetention = new ApiUrls(new[] { "/_slm/_execute_retention" });
- internal static ApiUrls SnapshotLifecycleManagementGetLifecycle = new ApiUrls(new[] { "/_slm/policy/{policy_id}", "/_slm/policy" });
- internal static ApiUrls SnapshotLifecycleManagementGetStats = new ApiUrls(new[] { "/_slm/stats" });
- internal static ApiUrls SnapshotLifecycleManagementGetStatus = new ApiUrls(new[] { "/_slm/status" });
- internal static ApiUrls SnapshotLifecycleManagementPutLifecycle = new ApiUrls(new[] { "/_slm/policy/{policy_id}" });
- internal static ApiUrls SnapshotLifecycleManagementStart = new ApiUrls(new[] { "/_slm/start" });
- internal static ApiUrls SnapshotLifecycleManagementStop = new ApiUrls(new[] { "/_slm/stop" });
- internal static ApiUrls SnapshotCreate = new ApiUrls(new[] { "/_snapshot/{repository}/{snapshot}" });
- internal static ApiUrls SnapshotDelete = new ApiUrls(new[] { "/_snapshot/{repository}/{snapshot}" });
- internal static ApiUrls SnapshotGet = new ApiUrls(new[] { "/_snapshot/{repository}/{snapshot}" });
- internal static ApiUrls SnapshotCleanupRepository = new ApiUrls(new[] { "/_snapshot/{repository}/_cleanup" });
- internal static ApiUrls SnapshotClone = new ApiUrls(new[] { "/_snapshot/{repository}/{snapshot}/_clone/{target_snapshot}" });
- internal static ApiUrls SnapshotCreateRepository = new ApiUrls(new[] { "/_snapshot/{repository}" });
- internal static ApiUrls SnapshotDeleteRepository = new ApiUrls(new[] { "/_snapshot/{repository}" });
- internal static ApiUrls SnapshotGetRepository = new ApiUrls(new[] { "/_snapshot", "/_snapshot/{repository}" });
- internal static ApiUrls SnapshotRestore = new ApiUrls(new[] { "/_snapshot/{repository}/{snapshot}/_restore" });
- internal static ApiUrls SnapshotStatus = new ApiUrls(new[] { "/_snapshot/_status", "/_snapshot/{repository}/_status", "/_snapshot/{repository}/{snapshot}/_status" });
- internal static ApiUrls SnapshotVerifyRepository = new ApiUrls(new[] { "/_snapshot/{repository}/_verify" });
internal static ApiUrls NoNamespaceGetSource = new ApiUrls(new[] { "/{index}/_source/{id}" });
internal static ApiUrls SqlClearCursor = new ApiUrls(new[] { "/_sql/close" });
internal static ApiUrls SqlDeleteAsync = new ApiUrls(new[] { "/_sql/async/delete/{id}" });
internal static ApiUrls SqlGetAsync = new ApiUrls(new[] { "/_sql/async/{id}" });
internal static ApiUrls SqlGetAsyncStatus = new ApiUrls(new[] { "/_sql/async/status/{id}" });
internal static ApiUrls SqlQuery = new ApiUrls(new[] { "/_sql" });
- internal static ApiUrls SecurityCertificates = new ApiUrls(new[] { "/_ssl/certificates" });
internal static ApiUrls NoNamespaceTermsEnum = new ApiUrls(new[] { "/{index}/_terms_enum" });
- internal static ApiUrls TransformManagementDeleteTransform = new ApiUrls(new[] { "/_transform/{transform_id}" });
- internal static ApiUrls TransformManagementGetTransform = new ApiUrls(new[] { "/_transform/{transform_id}", "/_transform" });
- internal static ApiUrls TransformManagementGetTransformStats = new ApiUrls(new[] { "/_transform/{transform_id}/_stats" });
- internal static ApiUrls TransformManagementPreviewTransform = new ApiUrls(new[] { "/_transform/{transform_id}/_preview", "/_transform/_preview" });
- internal static ApiUrls TransformManagementPutTransform = new ApiUrls(new[] { "/_transform/{transform_id}" });
- internal static ApiUrls TransformManagementResetTransform = new ApiUrls(new[] { "/_transform/{transform_id}/_reset" });
- internal static ApiUrls TransformManagementStartTransform = new ApiUrls(new[] { "/_transform/{transform_id}/_start" });
- internal static ApiUrls TransformManagementStopTransform = new ApiUrls(new[] { "/_transform/{transform_id}/_stop" });
- internal static ApiUrls TransformManagementUpdateTransform = new ApiUrls(new[] { "/_transform/{transform_id}/_update" });
- internal static ApiUrls TransformManagementUpgradeTransforms = new ApiUrls(new[] { "/_transform/_upgrade" });
internal static ApiUrls NoNamespaceUpdateByQuery = new ApiUrls(new[] { "/{index}/_update_by_query" });
internal static ApiUrls NoNamespaceUpdateByQueryRethrottle = new ApiUrls(new[] { "/_update_by_query/{task_id}/_rethrottle" });
internal static ApiUrls NoNamespaceUpdate = new ApiUrls(new[] { "/{index}/_update/{id}" });
- internal static ApiUrls XpackInfo = new ApiUrls(new[] { "/_xpack" });
- internal static ApiUrls XpackUsage = new ApiUrls(new[] { "/_xpack/usage" });
}
}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingDeleteAutoscalingPolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingDeleteAutoscalingPolicyRequest.g.cs
deleted file mode 100644
index 4a985aaee7d..00000000000
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingDeleteAutoscalingPolicyRequest.g.cs
+++ /dev/null
@@ -1,67 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information.
-//
-// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
-// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
-// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
-// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
-// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
-// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
-// ------------------------------------------------
-//
-// This file is automatically generated.
-// Please do not edit these files manually.
-//
-// ------------------------------------------------
-
-using Elastic.Transport;
-using System;
-using System.Collections.Generic;
-using System.Linq.Expressions;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-
-#nullable restore
-namespace Elastic.Clients.Elasticsearch.Autoscaling
-{
- public sealed class AutoscalingDeleteAutoscalingPolicyRequestParameters : RequestParameters
- {
- }
-
- public sealed partial class AutoscalingDeleteAutoscalingPolicyRequest : PlainRequestBase
- {
- public AutoscalingDeleteAutoscalingPolicyRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name))
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.AutoscalingDeleteAutoscalingPolicy;
- protected override HttpMethod HttpMethod => HttpMethod.DELETE;
- protected override bool SupportsBody => false;
- }
-
- public sealed partial class AutoscalingDeleteAutoscalingPolicyRequestDescriptor : RequestDescriptorBase
- {
- internal AutoscalingDeleteAutoscalingPolicyRequestDescriptor(Action configure) => configure.Invoke(this);
- public AutoscalingDeleteAutoscalingPolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name))
- {
- }
-
- internal AutoscalingDeleteAutoscalingPolicyRequestDescriptor()
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.AutoscalingDeleteAutoscalingPolicy;
- protected override HttpMethod HttpMethod => HttpMethod.DELETE;
- protected override bool SupportsBody => false;
- public AutoscalingDeleteAutoscalingPolicyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name)
- {
- RouteValues.Required("name", name);
- return Self;
- }
-
- protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
- {
- }
- }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingDeleteAutoscalingPolicyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingDeleteAutoscalingPolicyResponse.g.cs
deleted file mode 100644
index 4e9ddc965a6..00000000000
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingDeleteAutoscalingPolicyResponse.g.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information.
-//
-// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
-// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
-// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
-// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
-// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
-// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
-// ------------------------------------------------
-//
-// This file is automatically generated.
-// Please do not edit these files manually.
-//
-// ------------------------------------------------
-
-using Elastic.Transport.Products.Elasticsearch;
-using System.Collections.Generic;
-using System.Text.Json.Serialization;
-
-#nullable restore
-namespace Elastic.Clients.Elasticsearch.Autoscaling
-{
- public sealed partial class AutoscalingDeleteAutoscalingPolicyResponse : ElasticsearchResponseBase
- {
- [JsonInclude]
- [JsonPropertyName("acknowledged")]
- public bool Acknowledged { get; init; }
- }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingGetAutoscalingCapacityRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingGetAutoscalingCapacityRequest.g.cs
deleted file mode 100644
index fda35ac8c52..00000000000
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingGetAutoscalingCapacityRequest.g.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information.
-//
-// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
-// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
-// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
-// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
-// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
-// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
-// ------------------------------------------------
-//
-// This file is automatically generated.
-// Please do not edit these files manually.
-//
-// ------------------------------------------------
-
-using Elastic.Transport;
-using System;
-using System.Collections.Generic;
-using System.Linq.Expressions;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-
-#nullable restore
-namespace Elastic.Clients.Elasticsearch.Autoscaling
-{
- public sealed class AutoscalingGetAutoscalingCapacityRequestParameters : RequestParameters
- {
- }
-
- public sealed partial class AutoscalingGetAutoscalingCapacityRequest : PlainRequestBase
- {
- internal override ApiUrls ApiUrls => ApiUrlsLookups.AutoscalingGetAutoscalingCapacity;
- protected override HttpMethod HttpMethod => HttpMethod.GET;
- protected override bool SupportsBody => false;
- }
-
- public sealed partial class AutoscalingGetAutoscalingCapacityRequestDescriptor : RequestDescriptorBase
- {
- internal AutoscalingGetAutoscalingCapacityRequestDescriptor(Action configure) => configure.Invoke(this);
- public AutoscalingGetAutoscalingCapacityRequestDescriptor()
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.AutoscalingGetAutoscalingCapacity;
- protected override HttpMethod HttpMethod => HttpMethod.GET;
- protected override bool SupportsBody => false;
- protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
- {
- }
- }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingGetAutoscalingCapacityResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingGetAutoscalingCapacityResponse.g.cs
deleted file mode 100644
index 8b87cb11c7f..00000000000
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingGetAutoscalingCapacityResponse.g.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information.
-//
-// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
-// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
-// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
-// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
-// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
-// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
-// ------------------------------------------------
-//
-// This file is automatically generated.
-// Please do not edit these files manually.
-//
-// ------------------------------------------------
-
-using Elastic.Transport.Products.Elasticsearch;
-using System.Collections.Generic;
-using System.Text.Json.Serialization;
-
-#nullable restore
-namespace Elastic.Clients.Elasticsearch.Autoscaling
-{
- public sealed partial class AutoscalingGetAutoscalingCapacityResponse : ElasticsearchResponseBase
- {
- [JsonInclude]
- [JsonPropertyName("policies")]
- public Dictionary Policies { get; init; }
- }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingGetAutoscalingPolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingGetAutoscalingPolicyRequest.g.cs
deleted file mode 100644
index d12707567e0..00000000000
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingGetAutoscalingPolicyRequest.g.cs
+++ /dev/null
@@ -1,67 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information.
-//
-// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
-// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
-// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
-// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
-// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
-// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
-// ------------------------------------------------
-//
-// This file is automatically generated.
-// Please do not edit these files manually.
-//
-// ------------------------------------------------
-
-using Elastic.Transport;
-using System;
-using System.Collections.Generic;
-using System.Linq.Expressions;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-
-#nullable restore
-namespace Elastic.Clients.Elasticsearch.Autoscaling
-{
- public sealed class AutoscalingGetAutoscalingPolicyRequestParameters : RequestParameters
- {
- }
-
- public sealed partial class AutoscalingGetAutoscalingPolicyRequest : PlainRequestBase
- {
- public AutoscalingGetAutoscalingPolicyRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name))
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.AutoscalingGetAutoscalingPolicy;
- protected override HttpMethod HttpMethod => HttpMethod.GET;
- protected override bool SupportsBody => false;
- }
-
- public sealed partial class AutoscalingGetAutoscalingPolicyRequestDescriptor : RequestDescriptorBase
- {
- internal AutoscalingGetAutoscalingPolicyRequestDescriptor(Action configure) => configure.Invoke(this);
- public AutoscalingGetAutoscalingPolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name))
- {
- }
-
- internal AutoscalingGetAutoscalingPolicyRequestDescriptor()
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.AutoscalingGetAutoscalingPolicy;
- protected override HttpMethod HttpMethod => HttpMethod.GET;
- protected override bool SupportsBody => false;
- public AutoscalingGetAutoscalingPolicyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name)
- {
- RouteValues.Required("name", name);
- return Self;
- }
-
- protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
- {
- }
- }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingPutAutoscalingPolicyRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingPutAutoscalingPolicyRequest.g.cs
deleted file mode 100644
index cccd5c4a163..00000000000
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingPutAutoscalingPolicyRequest.g.cs
+++ /dev/null
@@ -1,67 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information.
-//
-// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
-// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
-// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
-// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
-// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
-// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
-// ------------------------------------------------
-//
-// This file is automatically generated.
-// Please do not edit these files manually.
-//
-// ------------------------------------------------
-
-using Elastic.Transport;
-using System;
-using System.Collections.Generic;
-using System.Linq.Expressions;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-
-#nullable restore
-namespace Elastic.Clients.Elasticsearch.Autoscaling
-{
- public sealed class AutoscalingPutAutoscalingPolicyRequestParameters : RequestParameters
- {
- }
-
- public sealed partial class AutoscalingPutAutoscalingPolicyRequest : PlainRequestBase
- {
- public AutoscalingPutAutoscalingPolicyRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name))
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.AutoscalingPutAutoscalingPolicy;
- protected override HttpMethod HttpMethod => HttpMethod.PUT;
- protected override bool SupportsBody => false;
- }
-
- public sealed partial class AutoscalingPutAutoscalingPolicyRequestDescriptor : RequestDescriptorBase
- {
- internal AutoscalingPutAutoscalingPolicyRequestDescriptor(Action configure) => configure.Invoke(this);
- public AutoscalingPutAutoscalingPolicyRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name))
- {
- }
-
- internal AutoscalingPutAutoscalingPolicyRequestDescriptor()
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.AutoscalingPutAutoscalingPolicy;
- protected override HttpMethod HttpMethod => HttpMethod.PUT;
- protected override bool SupportsBody => false;
- public AutoscalingPutAutoscalingPolicyRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name)
- {
- RouteValues.Required("name", name);
- return Self;
- }
-
- protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
- {
- }
- }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingPutAutoscalingPolicyResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingPutAutoscalingPolicyResponse.g.cs
deleted file mode 100644
index 5991b26f222..00000000000
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Autoscaling/AutoscalingPutAutoscalingPolicyResponse.g.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information.
-//
-// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
-// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
-// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
-// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
-// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
-// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
-// ------------------------------------------------
-//
-// This file is automatically generated.
-// Please do not edit these files manually.
-//
-// ------------------------------------------------
-
-using Elastic.Transport.Products.Elasticsearch;
-using System.Collections.Generic;
-using System.Text.Json.Serialization;
-
-#nullable restore
-namespace Elastic.Clients.Elasticsearch.Autoscaling
-{
- public sealed partial class AutoscalingPutAutoscalingPolicyResponse : ElasticsearchResponseBase
- {
- [JsonInclude]
- [JsonPropertyName("acknowledged")]
- public bool Acknowledged { get; init; }
- }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrDeleteAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrDeleteAutoFollowPatternRequest.g.cs
deleted file mode 100644
index 84c9a5a7834..00000000000
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrDeleteAutoFollowPatternRequest.g.cs
+++ /dev/null
@@ -1,67 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information.
-//
-// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
-// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
-// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
-// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
-// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
-// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
-// ------------------------------------------------
-//
-// This file is automatically generated.
-// Please do not edit these files manually.
-//
-// ------------------------------------------------
-
-using Elastic.Transport;
-using System;
-using System.Collections.Generic;
-using System.Linq.Expressions;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-
-#nullable restore
-namespace Elastic.Clients.Elasticsearch.Ccr
-{
- public sealed class CcrDeleteAutoFollowPatternRequestParameters : RequestParameters
- {
- }
-
- public sealed partial class CcrDeleteAutoFollowPatternRequest : PlainRequestBase
- {
- public CcrDeleteAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name))
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationDeleteAutoFollowPattern;
- protected override HttpMethod HttpMethod => HttpMethod.DELETE;
- protected override bool SupportsBody => false;
- }
-
- public sealed partial class CcrDeleteAutoFollowPatternRequestDescriptor : RequestDescriptorBase
- {
- internal CcrDeleteAutoFollowPatternRequestDescriptor(Action configure) => configure.Invoke(this);
- public CcrDeleteAutoFollowPatternRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name))
- {
- }
-
- internal CcrDeleteAutoFollowPatternRequestDescriptor()
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationDeleteAutoFollowPattern;
- protected override HttpMethod HttpMethod => HttpMethod.DELETE;
- protected override bool SupportsBody => false;
- public CcrDeleteAutoFollowPatternRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name)
- {
- RouteValues.Required("name", name);
- return Self;
- }
-
- protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
- {
- }
- }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrDeleteAutoFollowPatternResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrDeleteAutoFollowPatternResponse.g.cs
deleted file mode 100644
index f8ba905b269..00000000000
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrDeleteAutoFollowPatternResponse.g.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information.
-//
-// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
-// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
-// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
-// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
-// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
-// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
-// ------------------------------------------------
-//
-// This file is automatically generated.
-// Please do not edit these files manually.
-//
-// ------------------------------------------------
-
-using Elastic.Transport.Products.Elasticsearch;
-using System.Collections.Generic;
-using System.Text.Json.Serialization;
-
-#nullable restore
-namespace Elastic.Clients.Elasticsearch.Ccr
-{
- public sealed partial class CcrDeleteAutoFollowPatternResponse : ElasticsearchResponseBase
- {
- [JsonInclude]
- [JsonPropertyName("acknowledged")]
- public bool Acknowledged { get; init; }
- }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowInfoRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowInfoRequest.g.cs
deleted file mode 100644
index 07b19e61d95..00000000000
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowInfoRequest.g.cs
+++ /dev/null
@@ -1,92 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information.
-//
-// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
-// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
-// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
-// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
-// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
-// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
-// ------------------------------------------------
-//
-// This file is automatically generated.
-// Please do not edit these files manually.
-//
-// ------------------------------------------------
-
-using Elastic.Transport;
-using System;
-using System.Collections.Generic;
-using System.Linq.Expressions;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-
-#nullable restore
-namespace Elastic.Clients.Elasticsearch.Ccr
-{
- public sealed class CcrFollowInfoRequestParameters : RequestParameters
- {
- }
-
- public sealed partial class CcrFollowInfoRequest : PlainRequestBase
- {
- public CcrFollowInfoRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices))
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationFollowInfo;
- protected override HttpMethod HttpMethod => HttpMethod.GET;
- protected override bool SupportsBody => false;
- }
-
- public sealed partial class CcrFollowInfoRequestDescriptor : RequestDescriptorBase, CcrFollowInfoRequestParameters>
- {
- internal CcrFollowInfoRequestDescriptor(Action> configure) => configure.Invoke(this);
- public CcrFollowInfoRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices))
- {
- }
-
- internal CcrFollowInfoRequestDescriptor()
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationFollowInfo;
- protected override HttpMethod HttpMethod => HttpMethod.GET;
- protected override bool SupportsBody => false;
- public CcrFollowInfoRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices)
- {
- RouteValues.Required("index", indices);
- return Self;
- }
-
- protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
- {
- }
- }
-
- public sealed partial class CcrFollowInfoRequestDescriptor : RequestDescriptorBase
- {
- internal CcrFollowInfoRequestDescriptor(Action configure) => configure.Invoke(this);
- public CcrFollowInfoRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices))
- {
- }
-
- internal CcrFollowInfoRequestDescriptor()
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationFollowInfo;
- protected override HttpMethod HttpMethod => HttpMethod.GET;
- protected override bool SupportsBody => false;
- public CcrFollowInfoRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices)
- {
- RouteValues.Required("index", indices);
- return Self;
- }
-
- protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
- {
- }
- }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowInfoResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowInfoResponse.g.cs
deleted file mode 100644
index fc1fd81e15d..00000000000
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowInfoResponse.g.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information.
-//
-// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
-// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
-// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
-// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
-// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
-// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
-// ------------------------------------------------
-//
-// This file is automatically generated.
-// Please do not edit these files manually.
-//
-// ------------------------------------------------
-
-using Elastic.Transport.Products.Elasticsearch;
-using System.Collections.Generic;
-using System.Text.Json.Serialization;
-
-#nullable restore
-namespace Elastic.Clients.Elasticsearch.Ccr
-{
- public sealed partial class CcrFollowInfoResponse : ElasticsearchResponseBase
- {
- [JsonInclude]
- [JsonPropertyName("follower_indices")]
- public IReadOnlyCollection FollowerIndices { get; init; }
- }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowRequest.g.cs
deleted file mode 100644
index 83bfa936e5d..00000000000
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowRequest.g.cs
+++ /dev/null
@@ -1,490 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information.
-//
-// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
-// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
-// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
-// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
-// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
-// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
-// ------------------------------------------------
-//
-// This file is automatically generated.
-// Please do not edit these files manually.
-//
-// ------------------------------------------------
-
-using Elastic.Transport;
-using System;
-using System.Collections.Generic;
-using System.Linq.Expressions;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-
-#nullable restore
-namespace Elastic.Clients.Elasticsearch.Ccr
-{
- public sealed class CcrFollowRequestParameters : RequestParameters
- {
- [JsonIgnore]
- public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); }
- }
-
- public sealed partial class CcrFollowRequest : PlainRequestBase
- {
- public CcrFollowRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index))
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationFollow;
- protected override HttpMethod HttpMethod => HttpMethod.PUT;
- protected override bool SupportsBody => true;
- [JsonIgnore]
- public Elastic.Clients.Elasticsearch.WaitForActiveShards? WaitForActiveShards { get => Q("wait_for_active_shards"); set => Q("wait_for_active_shards", value); }
-
- [JsonInclude]
- [JsonPropertyName("leader_index")]
- public Elastic.Clients.Elasticsearch.IndexName? LeaderIndex { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("max_outstanding_read_requests")]
- public long? MaxOutstandingReadRequests { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("max_outstanding_write_requests")]
- public long? MaxOutstandingWriteRequests { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("max_read_request_operation_count")]
- public long? MaxReadRequestOperationCount { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("max_read_request_size")]
- public string? MaxReadRequestSize { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("max_retry_delay")]
- public Elastic.Clients.Elasticsearch.Duration? MaxRetryDelay { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("max_write_buffer_count")]
- public long? MaxWriteBufferCount { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("max_write_buffer_size")]
- public string? MaxWriteBufferSize { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("max_write_request_operation_count")]
- public long? MaxWriteRequestOperationCount { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("max_write_request_size")]
- public string? MaxWriteRequestSize { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("read_poll_timeout")]
- public Elastic.Clients.Elasticsearch.Duration? ReadPollTimeout { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("remote_cluster")]
- public string? RemoteCluster { get; set; }
- }
-
- public sealed partial class CcrFollowRequestDescriptor : RequestDescriptorBase, CcrFollowRequestParameters>
- {
- internal CcrFollowRequestDescriptor(Action> configure) => configure.Invoke(this);
- public CcrFollowRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index))
- {
- }
-
- public CcrFollowRequestDescriptor(TDocument document) : this(typeof(TDocument))
- {
- }
-
- internal CcrFollowRequestDescriptor()
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationFollow;
- protected override HttpMethod HttpMethod => HttpMethod.PUT;
- protected override bool SupportsBody => true;
- public CcrFollowRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards);
- public CcrFollowRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index)
- {
- RouteValues.Required("index", index);
- return Self;
- }
-
- private Elastic.Clients.Elasticsearch.IndexName? LeaderIndexValue { get; set; }
-
- private long? MaxOutstandingReadRequestsValue { get; set; }
-
- private long? MaxOutstandingWriteRequestsValue { get; set; }
-
- private long? MaxReadRequestOperationCountValue { get; set; }
-
- private string? MaxReadRequestSizeValue { get; set; }
-
- private Elastic.Clients.Elasticsearch.Duration? MaxRetryDelayValue { get; set; }
-
- private long? MaxWriteBufferCountValue { get; set; }
-
- private string? MaxWriteBufferSizeValue { get; set; }
-
- private long? MaxWriteRequestOperationCountValue { get; set; }
-
- private string? MaxWriteRequestSizeValue { get; set; }
-
- private Elastic.Clients.Elasticsearch.Duration? ReadPollTimeoutValue { get; set; }
-
- private string? RemoteClusterValue { get; set; }
-
- public CcrFollowRequestDescriptor LeaderIndex(Elastic.Clients.Elasticsearch.IndexName? leaderIndex)
- {
- LeaderIndexValue = leaderIndex;
- return Self;
- }
-
- public CcrFollowRequestDescriptor MaxOutstandingReadRequests(long? maxOutstandingReadRequests)
- {
- MaxOutstandingReadRequestsValue = maxOutstandingReadRequests;
- return Self;
- }
-
- public CcrFollowRequestDescriptor MaxOutstandingWriteRequests(long? maxOutstandingWriteRequests)
- {
- MaxOutstandingWriteRequestsValue = maxOutstandingWriteRequests;
- return Self;
- }
-
- public CcrFollowRequestDescriptor MaxReadRequestOperationCount(long? maxReadRequestOperationCount)
- {
- MaxReadRequestOperationCountValue = maxReadRequestOperationCount;
- return Self;
- }
-
- public CcrFollowRequestDescriptor MaxReadRequestSize(string? maxReadRequestSize)
- {
- MaxReadRequestSizeValue = maxReadRequestSize;
- return Self;
- }
-
- public CcrFollowRequestDescriptor MaxRetryDelay(Elastic.Clients.Elasticsearch.Duration? maxRetryDelay)
- {
- MaxRetryDelayValue = maxRetryDelay;
- return Self;
- }
-
- public CcrFollowRequestDescriptor MaxWriteBufferCount(long? maxWriteBufferCount)
- {
- MaxWriteBufferCountValue = maxWriteBufferCount;
- return Self;
- }
-
- public CcrFollowRequestDescriptor MaxWriteBufferSize(string? maxWriteBufferSize)
- {
- MaxWriteBufferSizeValue = maxWriteBufferSize;
- return Self;
- }
-
- public CcrFollowRequestDescriptor MaxWriteRequestOperationCount(long? maxWriteRequestOperationCount)
- {
- MaxWriteRequestOperationCountValue = maxWriteRequestOperationCount;
- return Self;
- }
-
- public CcrFollowRequestDescriptor MaxWriteRequestSize(string? maxWriteRequestSize)
- {
- MaxWriteRequestSizeValue = maxWriteRequestSize;
- return Self;
- }
-
- public CcrFollowRequestDescriptor ReadPollTimeout(Elastic.Clients.Elasticsearch.Duration? readPollTimeout)
- {
- ReadPollTimeoutValue = readPollTimeout;
- return Self;
- }
-
- public CcrFollowRequestDescriptor RemoteCluster(string? remoteCluster)
- {
- RemoteClusterValue = remoteCluster;
- return Self;
- }
-
- protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
- {
- writer.WriteStartObject();
- if (LeaderIndexValue is not null)
- {
- writer.WritePropertyName("leader_index");
- JsonSerializer.Serialize(writer, LeaderIndexValue, options);
- }
-
- if (MaxOutstandingReadRequestsValue.HasValue)
- {
- writer.WritePropertyName("max_outstanding_read_requests");
- writer.WriteNumberValue(MaxOutstandingReadRequestsValue.Value);
- }
-
- if (MaxOutstandingWriteRequestsValue.HasValue)
- {
- writer.WritePropertyName("max_outstanding_write_requests");
- writer.WriteNumberValue(MaxOutstandingWriteRequestsValue.Value);
- }
-
- if (MaxReadRequestOperationCountValue.HasValue)
- {
- writer.WritePropertyName("max_read_request_operation_count");
- writer.WriteNumberValue(MaxReadRequestOperationCountValue.Value);
- }
-
- if (!string.IsNullOrEmpty(MaxReadRequestSizeValue))
- {
- writer.WritePropertyName("max_read_request_size");
- writer.WriteStringValue(MaxReadRequestSizeValue);
- }
-
- if (MaxRetryDelayValue is not null)
- {
- writer.WritePropertyName("max_retry_delay");
- JsonSerializer.Serialize(writer, MaxRetryDelayValue, options);
- }
-
- if (MaxWriteBufferCountValue.HasValue)
- {
- writer.WritePropertyName("max_write_buffer_count");
- writer.WriteNumberValue(MaxWriteBufferCountValue.Value);
- }
-
- if (!string.IsNullOrEmpty(MaxWriteBufferSizeValue))
- {
- writer.WritePropertyName("max_write_buffer_size");
- writer.WriteStringValue(MaxWriteBufferSizeValue);
- }
-
- if (MaxWriteRequestOperationCountValue.HasValue)
- {
- writer.WritePropertyName("max_write_request_operation_count");
- writer.WriteNumberValue(MaxWriteRequestOperationCountValue.Value);
- }
-
- if (!string.IsNullOrEmpty(MaxWriteRequestSizeValue))
- {
- writer.WritePropertyName("max_write_request_size");
- writer.WriteStringValue(MaxWriteRequestSizeValue);
- }
-
- if (ReadPollTimeoutValue is not null)
- {
- writer.WritePropertyName("read_poll_timeout");
- JsonSerializer.Serialize(writer, ReadPollTimeoutValue, options);
- }
-
- if (!string.IsNullOrEmpty(RemoteClusterValue))
- {
- writer.WritePropertyName("remote_cluster");
- writer.WriteStringValue(RemoteClusterValue);
- }
-
- writer.WriteEndObject();
- }
- }
-
- public sealed partial class CcrFollowRequestDescriptor : RequestDescriptorBase
- {
- internal CcrFollowRequestDescriptor(Action configure) => configure.Invoke(this);
- public CcrFollowRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index))
- {
- }
-
- internal CcrFollowRequestDescriptor()
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationFollow;
- protected override HttpMethod HttpMethod => HttpMethod.PUT;
- protected override bool SupportsBody => true;
- public CcrFollowRequestDescriptor WaitForActiveShards(Elastic.Clients.Elasticsearch.WaitForActiveShards? waitForActiveShards) => Qs("wait_for_active_shards", waitForActiveShards);
- public CcrFollowRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index)
- {
- RouteValues.Required("index", index);
- return Self;
- }
-
- private Elastic.Clients.Elasticsearch.IndexName? LeaderIndexValue { get; set; }
-
- private long? MaxOutstandingReadRequestsValue { get; set; }
-
- private long? MaxOutstandingWriteRequestsValue { get; set; }
-
- private long? MaxReadRequestOperationCountValue { get; set; }
-
- private string? MaxReadRequestSizeValue { get; set; }
-
- private Elastic.Clients.Elasticsearch.Duration? MaxRetryDelayValue { get; set; }
-
- private long? MaxWriteBufferCountValue { get; set; }
-
- private string? MaxWriteBufferSizeValue { get; set; }
-
- private long? MaxWriteRequestOperationCountValue { get; set; }
-
- private string? MaxWriteRequestSizeValue { get; set; }
-
- private Elastic.Clients.Elasticsearch.Duration? ReadPollTimeoutValue { get; set; }
-
- private string? RemoteClusterValue { get; set; }
-
- public CcrFollowRequestDescriptor LeaderIndex(Elastic.Clients.Elasticsearch.IndexName? leaderIndex)
- {
- LeaderIndexValue = leaderIndex;
- return Self;
- }
-
- public CcrFollowRequestDescriptor MaxOutstandingReadRequests(long? maxOutstandingReadRequests)
- {
- MaxOutstandingReadRequestsValue = maxOutstandingReadRequests;
- return Self;
- }
-
- public CcrFollowRequestDescriptor MaxOutstandingWriteRequests(long? maxOutstandingWriteRequests)
- {
- MaxOutstandingWriteRequestsValue = maxOutstandingWriteRequests;
- return Self;
- }
-
- public CcrFollowRequestDescriptor MaxReadRequestOperationCount(long? maxReadRequestOperationCount)
- {
- MaxReadRequestOperationCountValue = maxReadRequestOperationCount;
- return Self;
- }
-
- public CcrFollowRequestDescriptor MaxReadRequestSize(string? maxReadRequestSize)
- {
- MaxReadRequestSizeValue = maxReadRequestSize;
- return Self;
- }
-
- public CcrFollowRequestDescriptor MaxRetryDelay(Elastic.Clients.Elasticsearch.Duration? maxRetryDelay)
- {
- MaxRetryDelayValue = maxRetryDelay;
- return Self;
- }
-
- public CcrFollowRequestDescriptor MaxWriteBufferCount(long? maxWriteBufferCount)
- {
- MaxWriteBufferCountValue = maxWriteBufferCount;
- return Self;
- }
-
- public CcrFollowRequestDescriptor MaxWriteBufferSize(string? maxWriteBufferSize)
- {
- MaxWriteBufferSizeValue = maxWriteBufferSize;
- return Self;
- }
-
- public CcrFollowRequestDescriptor MaxWriteRequestOperationCount(long? maxWriteRequestOperationCount)
- {
- MaxWriteRequestOperationCountValue = maxWriteRequestOperationCount;
- return Self;
- }
-
- public CcrFollowRequestDescriptor MaxWriteRequestSize(string? maxWriteRequestSize)
- {
- MaxWriteRequestSizeValue = maxWriteRequestSize;
- return Self;
- }
-
- public CcrFollowRequestDescriptor ReadPollTimeout(Elastic.Clients.Elasticsearch.Duration? readPollTimeout)
- {
- ReadPollTimeoutValue = readPollTimeout;
- return Self;
- }
-
- public CcrFollowRequestDescriptor RemoteCluster(string? remoteCluster)
- {
- RemoteClusterValue = remoteCluster;
- return Self;
- }
-
- protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
- {
- writer.WriteStartObject();
- if (LeaderIndexValue is not null)
- {
- writer.WritePropertyName("leader_index");
- JsonSerializer.Serialize(writer, LeaderIndexValue, options);
- }
-
- if (MaxOutstandingReadRequestsValue.HasValue)
- {
- writer.WritePropertyName("max_outstanding_read_requests");
- writer.WriteNumberValue(MaxOutstandingReadRequestsValue.Value);
- }
-
- if (MaxOutstandingWriteRequestsValue.HasValue)
- {
- writer.WritePropertyName("max_outstanding_write_requests");
- writer.WriteNumberValue(MaxOutstandingWriteRequestsValue.Value);
- }
-
- if (MaxReadRequestOperationCountValue.HasValue)
- {
- writer.WritePropertyName("max_read_request_operation_count");
- writer.WriteNumberValue(MaxReadRequestOperationCountValue.Value);
- }
-
- if (!string.IsNullOrEmpty(MaxReadRequestSizeValue))
- {
- writer.WritePropertyName("max_read_request_size");
- writer.WriteStringValue(MaxReadRequestSizeValue);
- }
-
- if (MaxRetryDelayValue is not null)
- {
- writer.WritePropertyName("max_retry_delay");
- JsonSerializer.Serialize(writer, MaxRetryDelayValue, options);
- }
-
- if (MaxWriteBufferCountValue.HasValue)
- {
- writer.WritePropertyName("max_write_buffer_count");
- writer.WriteNumberValue(MaxWriteBufferCountValue.Value);
- }
-
- if (!string.IsNullOrEmpty(MaxWriteBufferSizeValue))
- {
- writer.WritePropertyName("max_write_buffer_size");
- writer.WriteStringValue(MaxWriteBufferSizeValue);
- }
-
- if (MaxWriteRequestOperationCountValue.HasValue)
- {
- writer.WritePropertyName("max_write_request_operation_count");
- writer.WriteNumberValue(MaxWriteRequestOperationCountValue.Value);
- }
-
- if (!string.IsNullOrEmpty(MaxWriteRequestSizeValue))
- {
- writer.WritePropertyName("max_write_request_size");
- writer.WriteStringValue(MaxWriteRequestSizeValue);
- }
-
- if (ReadPollTimeoutValue is not null)
- {
- writer.WritePropertyName("read_poll_timeout");
- JsonSerializer.Serialize(writer, ReadPollTimeoutValue, options);
- }
-
- if (!string.IsNullOrEmpty(RemoteClusterValue))
- {
- writer.WritePropertyName("remote_cluster");
- writer.WriteStringValue(RemoteClusterValue);
- }
-
- writer.WriteEndObject();
- }
- }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowResponse.g.cs
deleted file mode 100644
index 68c6e5451b3..00000000000
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowResponse.g.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information.
-//
-// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
-// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
-// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
-// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
-// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
-// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
-// ------------------------------------------------
-//
-// This file is automatically generated.
-// Please do not edit these files manually.
-//
-// ------------------------------------------------
-
-using Elastic.Transport.Products.Elasticsearch;
-using System.Collections.Generic;
-using System.Text.Json.Serialization;
-
-#nullable restore
-namespace Elastic.Clients.Elasticsearch.Ccr
-{
- public sealed partial class CcrFollowResponse : ElasticsearchResponseBase
- {
- [JsonInclude]
- [JsonPropertyName("follow_index_created")]
- public bool FollowIndexCreated { get; init; }
-
- [JsonInclude]
- [JsonPropertyName("follow_index_shards_acked")]
- public bool FollowIndexShardsAcked { get; init; }
-
- [JsonInclude]
- [JsonPropertyName("index_following_started")]
- public bool IndexFollowingStarted { get; init; }
- }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowStatsRequest.g.cs
deleted file mode 100644
index fdaf2851c5f..00000000000
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowStatsRequest.g.cs
+++ /dev/null
@@ -1,92 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information.
-//
-// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
-// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
-// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
-// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
-// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
-// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
-// ------------------------------------------------
-//
-// This file is automatically generated.
-// Please do not edit these files manually.
-//
-// ------------------------------------------------
-
-using Elastic.Transport;
-using System;
-using System.Collections.Generic;
-using System.Linq.Expressions;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-
-#nullable restore
-namespace Elastic.Clients.Elasticsearch.Ccr
-{
- public sealed class CcrFollowStatsRequestParameters : RequestParameters
- {
- }
-
- public sealed partial class CcrFollowStatsRequest : PlainRequestBase
- {
- public CcrFollowStatsRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices))
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationFollowStats;
- protected override HttpMethod HttpMethod => HttpMethod.GET;
- protected override bool SupportsBody => false;
- }
-
- public sealed partial class CcrFollowStatsRequestDescriptor : RequestDescriptorBase, CcrFollowStatsRequestParameters>
- {
- internal CcrFollowStatsRequestDescriptor(Action> configure) => configure.Invoke(this);
- public CcrFollowStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices))
- {
- }
-
- internal CcrFollowStatsRequestDescriptor()
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationFollowStats;
- protected override HttpMethod HttpMethod => HttpMethod.GET;
- protected override bool SupportsBody => false;
- public CcrFollowStatsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices)
- {
- RouteValues.Required("index", indices);
- return Self;
- }
-
- protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
- {
- }
- }
-
- public sealed partial class CcrFollowStatsRequestDescriptor : RequestDescriptorBase
- {
- internal CcrFollowStatsRequestDescriptor(Action configure) => configure.Invoke(this);
- public CcrFollowStatsRequestDescriptor(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.Required("index", indices))
- {
- }
-
- internal CcrFollowStatsRequestDescriptor()
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationFollowStats;
- protected override HttpMethod HttpMethod => HttpMethod.GET;
- protected override bool SupportsBody => false;
- public CcrFollowStatsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices)
- {
- RouteValues.Required("index", indices);
- return Self;
- }
-
- protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
- {
- }
- }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowStatsResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowStatsResponse.g.cs
deleted file mode 100644
index 619d3c56d3b..00000000000
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrFollowStatsResponse.g.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information.
-//
-// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
-// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
-// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
-// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
-// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
-// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
-// ------------------------------------------------
-//
-// This file is automatically generated.
-// Please do not edit these files manually.
-//
-// ------------------------------------------------
-
-using Elastic.Transport.Products.Elasticsearch;
-using System.Collections.Generic;
-using System.Text.Json.Serialization;
-
-#nullable restore
-namespace Elastic.Clients.Elasticsearch.Ccr
-{
- public sealed partial class CcrFollowStatsResponse : ElasticsearchResponseBase
- {
- [JsonInclude]
- [JsonPropertyName("indices")]
- public IReadOnlyCollection Indices { get; init; }
- }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrForgetFollowerRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrForgetFollowerRequest.g.cs
deleted file mode 100644
index 0523156a6de..00000000000
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrForgetFollowerRequest.g.cs
+++ /dev/null
@@ -1,227 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information.
-//
-// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
-// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
-// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
-// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
-// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
-// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
-// ------------------------------------------------
-//
-// This file is automatically generated.
-// Please do not edit these files manually.
-//
-// ------------------------------------------------
-
-using Elastic.Transport;
-using System;
-using System.Collections.Generic;
-using System.Linq.Expressions;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-
-#nullable restore
-namespace Elastic.Clients.Elasticsearch.Ccr
-{
- public sealed class CcrForgetFollowerRequestParameters : RequestParameters
- {
- }
-
- public sealed partial class CcrForgetFollowerRequest : PlainRequestBase
- {
- public CcrForgetFollowerRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index))
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationForgetFollower;
- protected override HttpMethod HttpMethod => HttpMethod.POST;
- protected override bool SupportsBody => true;
- [JsonInclude]
- [JsonPropertyName("follower_cluster")]
- public string? FollowerCluster { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("follower_index")]
- public Elastic.Clients.Elasticsearch.IndexName? FollowerIndex { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("follower_index_uuid")]
- public string? FollowerIndexUuid { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("leader_remote_cluster")]
- public string? LeaderRemoteCluster { get; set; }
- }
-
- public sealed partial class CcrForgetFollowerRequestDescriptor : RequestDescriptorBase, CcrForgetFollowerRequestParameters>
- {
- internal CcrForgetFollowerRequestDescriptor(Action> configure) => configure.Invoke(this);
- public CcrForgetFollowerRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index))
- {
- }
-
- public CcrForgetFollowerRequestDescriptor(TDocument document) : this(typeof(TDocument))
- {
- }
-
- internal CcrForgetFollowerRequestDescriptor()
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationForgetFollower;
- protected override HttpMethod HttpMethod => HttpMethod.POST;
- protected override bool SupportsBody => true;
- public CcrForgetFollowerRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index)
- {
- RouteValues.Required("index", index);
- return Self;
- }
-
- private string? FollowerClusterValue { get; set; }
-
- private Elastic.Clients.Elasticsearch.IndexName? FollowerIndexValue { get; set; }
-
- private string? FollowerIndexUuidValue { get; set; }
-
- private string? LeaderRemoteClusterValue { get; set; }
-
- public CcrForgetFollowerRequestDescriptor FollowerCluster(string? followerCluster)
- {
- FollowerClusterValue = followerCluster;
- return Self;
- }
-
- public CcrForgetFollowerRequestDescriptor FollowerIndex(Elastic.Clients.Elasticsearch.IndexName? followerIndex)
- {
- FollowerIndexValue = followerIndex;
- return Self;
- }
-
- public CcrForgetFollowerRequestDescriptor FollowerIndexUuid(string? followerIndexUuid)
- {
- FollowerIndexUuidValue = followerIndexUuid;
- return Self;
- }
-
- public CcrForgetFollowerRequestDescriptor LeaderRemoteCluster(string? leaderRemoteCluster)
- {
- LeaderRemoteClusterValue = leaderRemoteCluster;
- return Self;
- }
-
- protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
- {
- writer.WriteStartObject();
- if (!string.IsNullOrEmpty(FollowerClusterValue))
- {
- writer.WritePropertyName("follower_cluster");
- writer.WriteStringValue(FollowerClusterValue);
- }
-
- if (FollowerIndexValue is not null)
- {
- writer.WritePropertyName("follower_index");
- JsonSerializer.Serialize(writer, FollowerIndexValue, options);
- }
-
- if (FollowerIndexUuidValue is not null)
- {
- writer.WritePropertyName("follower_index_uuid");
- JsonSerializer.Serialize(writer, FollowerIndexUuidValue, options);
- }
-
- if (!string.IsNullOrEmpty(LeaderRemoteClusterValue))
- {
- writer.WritePropertyName("leader_remote_cluster");
- writer.WriteStringValue(LeaderRemoteClusterValue);
- }
-
- writer.WriteEndObject();
- }
- }
-
- public sealed partial class CcrForgetFollowerRequestDescriptor : RequestDescriptorBase
- {
- internal CcrForgetFollowerRequestDescriptor(Action configure) => configure.Invoke(this);
- public CcrForgetFollowerRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index))
- {
- }
-
- internal CcrForgetFollowerRequestDescriptor()
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationForgetFollower;
- protected override HttpMethod HttpMethod => HttpMethod.POST;
- protected override bool SupportsBody => true;
- public CcrForgetFollowerRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index)
- {
- RouteValues.Required("index", index);
- return Self;
- }
-
- private string? FollowerClusterValue { get; set; }
-
- private Elastic.Clients.Elasticsearch.IndexName? FollowerIndexValue { get; set; }
-
- private string? FollowerIndexUuidValue { get; set; }
-
- private string? LeaderRemoteClusterValue { get; set; }
-
- public CcrForgetFollowerRequestDescriptor FollowerCluster(string? followerCluster)
- {
- FollowerClusterValue = followerCluster;
- return Self;
- }
-
- public CcrForgetFollowerRequestDescriptor FollowerIndex(Elastic.Clients.Elasticsearch.IndexName? followerIndex)
- {
- FollowerIndexValue = followerIndex;
- return Self;
- }
-
- public CcrForgetFollowerRequestDescriptor FollowerIndexUuid(string? followerIndexUuid)
- {
- FollowerIndexUuidValue = followerIndexUuid;
- return Self;
- }
-
- public CcrForgetFollowerRequestDescriptor LeaderRemoteCluster(string? leaderRemoteCluster)
- {
- LeaderRemoteClusterValue = leaderRemoteCluster;
- return Self;
- }
-
- protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
- {
- writer.WriteStartObject();
- if (!string.IsNullOrEmpty(FollowerClusterValue))
- {
- writer.WritePropertyName("follower_cluster");
- writer.WriteStringValue(FollowerClusterValue);
- }
-
- if (FollowerIndexValue is not null)
- {
- writer.WritePropertyName("follower_index");
- JsonSerializer.Serialize(writer, FollowerIndexValue, options);
- }
-
- if (FollowerIndexUuidValue is not null)
- {
- writer.WritePropertyName("follower_index_uuid");
- JsonSerializer.Serialize(writer, FollowerIndexUuidValue, options);
- }
-
- if (!string.IsNullOrEmpty(LeaderRemoteClusterValue))
- {
- writer.WritePropertyName("leader_remote_cluster");
- writer.WriteStringValue(LeaderRemoteClusterValue);
- }
-
- writer.WriteEndObject();
- }
- }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrForgetFollowerResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrForgetFollowerResponse.g.cs
deleted file mode 100644
index 4c45af9b38f..00000000000
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrForgetFollowerResponse.g.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information.
-//
-// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
-// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
-// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
-// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
-// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
-// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
-// ------------------------------------------------
-//
-// This file is automatically generated.
-// Please do not edit these files manually.
-//
-// ------------------------------------------------
-
-using Elastic.Transport.Products.Elasticsearch;
-using System.Collections.Generic;
-using System.Text.Json.Serialization;
-
-#nullable restore
-namespace Elastic.Clients.Elasticsearch.Ccr
-{
- public sealed partial class CcrForgetFollowerResponse : ElasticsearchResponseBase
- {
- [JsonInclude]
- [JsonPropertyName("_shards")]
- public Elastic.Clients.Elasticsearch.ShardStatistics Shards { get; init; }
- }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrGetAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrGetAutoFollowPatternRequest.g.cs
deleted file mode 100644
index 136b71a16cb..00000000000
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrGetAutoFollowPatternRequest.g.cs
+++ /dev/null
@@ -1,67 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information.
-//
-// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
-// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
-// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
-// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
-// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
-// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
-// ------------------------------------------------
-//
-// This file is automatically generated.
-// Please do not edit these files manually.
-//
-// ------------------------------------------------
-
-using Elastic.Transport;
-using System;
-using System.Collections.Generic;
-using System.Linq.Expressions;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-
-#nullable restore
-namespace Elastic.Clients.Elasticsearch.Ccr
-{
- public sealed class CcrGetAutoFollowPatternRequestParameters : RequestParameters
- {
- }
-
- public sealed partial class CcrGetAutoFollowPatternRequest : PlainRequestBase
- {
- public CcrGetAutoFollowPatternRequest()
- {
- }
-
- public CcrGetAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Name? name) : base(r => r.Optional("name", name))
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationGetAutoFollowPattern;
- protected override HttpMethod HttpMethod => HttpMethod.GET;
- protected override bool SupportsBody => false;
- }
-
- public sealed partial class CcrGetAutoFollowPatternRequestDescriptor : RequestDescriptorBase
- {
- internal CcrGetAutoFollowPatternRequestDescriptor(Action configure) => configure.Invoke(this);
- public CcrGetAutoFollowPatternRequestDescriptor()
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationGetAutoFollowPattern;
- protected override HttpMethod HttpMethod => HttpMethod.GET;
- protected override bool SupportsBody => false;
- public CcrGetAutoFollowPatternRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name? name)
- {
- RouteValues.Optional("name", name);
- return Self;
- }
-
- protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
- {
- }
- }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrGetAutoFollowPatternResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrGetAutoFollowPatternResponse.g.cs
deleted file mode 100644
index caa71cd0b38..00000000000
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrGetAutoFollowPatternResponse.g.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information.
-//
-// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
-// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
-// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
-// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
-// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
-// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
-// ------------------------------------------------
-//
-// This file is automatically generated.
-// Please do not edit these files manually.
-//
-// ------------------------------------------------
-
-using Elastic.Transport.Products.Elasticsearch;
-using System.Collections.Generic;
-using System.Text.Json.Serialization;
-
-#nullable restore
-namespace Elastic.Clients.Elasticsearch.Ccr
-{
- public sealed partial class CcrGetAutoFollowPatternResponse : ElasticsearchResponseBase
- {
- [JsonInclude]
- [JsonPropertyName("patterns")]
- public IReadOnlyCollection Patterns { get; init; }
- }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPauseAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPauseAutoFollowPatternRequest.g.cs
deleted file mode 100644
index 6fdcae99c6e..00000000000
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPauseAutoFollowPatternRequest.g.cs
+++ /dev/null
@@ -1,67 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information.
-//
-// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
-// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
-// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
-// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
-// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
-// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
-// ------------------------------------------------
-//
-// This file is automatically generated.
-// Please do not edit these files manually.
-//
-// ------------------------------------------------
-
-using Elastic.Transport;
-using System;
-using System.Collections.Generic;
-using System.Linq.Expressions;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-
-#nullable restore
-namespace Elastic.Clients.Elasticsearch.Ccr
-{
- public sealed class CcrPauseAutoFollowPatternRequestParameters : RequestParameters
- {
- }
-
- public sealed partial class CcrPauseAutoFollowPatternRequest : PlainRequestBase
- {
- public CcrPauseAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name))
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationPauseAutoFollowPattern;
- protected override HttpMethod HttpMethod => HttpMethod.POST;
- protected override bool SupportsBody => false;
- }
-
- public sealed partial class CcrPauseAutoFollowPatternRequestDescriptor : RequestDescriptorBase
- {
- internal CcrPauseAutoFollowPatternRequestDescriptor(Action configure) => configure.Invoke(this);
- public CcrPauseAutoFollowPatternRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name))
- {
- }
-
- internal CcrPauseAutoFollowPatternRequestDescriptor()
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationPauseAutoFollowPattern;
- protected override HttpMethod HttpMethod => HttpMethod.POST;
- protected override bool SupportsBody => false;
- public CcrPauseAutoFollowPatternRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name)
- {
- RouteValues.Required("name", name);
- return Self;
- }
-
- protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
- {
- }
- }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPauseAutoFollowPatternResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPauseAutoFollowPatternResponse.g.cs
deleted file mode 100644
index d599956bfa6..00000000000
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPauseAutoFollowPatternResponse.g.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information.
-//
-// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
-// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
-// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
-// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
-// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
-// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
-// ------------------------------------------------
-//
-// This file is automatically generated.
-// Please do not edit these files manually.
-//
-// ------------------------------------------------
-
-using Elastic.Transport.Products.Elasticsearch;
-using System.Collections.Generic;
-using System.Text.Json.Serialization;
-
-#nullable restore
-namespace Elastic.Clients.Elasticsearch.Ccr
-{
- public sealed partial class CcrPauseAutoFollowPatternResponse : ElasticsearchResponseBase
- {
- [JsonInclude]
- [JsonPropertyName("acknowledged")]
- public bool Acknowledged { get; init; }
- }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPauseFollowRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPauseFollowRequest.g.cs
deleted file mode 100644
index 3c1e48da2b2..00000000000
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPauseFollowRequest.g.cs
+++ /dev/null
@@ -1,96 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information.
-//
-// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
-// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
-// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
-// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
-// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
-// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
-// ------------------------------------------------
-//
-// This file is automatically generated.
-// Please do not edit these files manually.
-//
-// ------------------------------------------------
-
-using Elastic.Transport;
-using System;
-using System.Collections.Generic;
-using System.Linq.Expressions;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-
-#nullable restore
-namespace Elastic.Clients.Elasticsearch.Ccr
-{
- public sealed class CcrPauseFollowRequestParameters : RequestParameters
- {
- }
-
- public sealed partial class CcrPauseFollowRequest : PlainRequestBase
- {
- public CcrPauseFollowRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index))
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationPauseFollow;
- protected override HttpMethod HttpMethod => HttpMethod.POST;
- protected override bool SupportsBody => false;
- }
-
- public sealed partial class CcrPauseFollowRequestDescriptor : RequestDescriptorBase, CcrPauseFollowRequestParameters>
- {
- internal CcrPauseFollowRequestDescriptor(Action> configure) => configure.Invoke(this);
- public CcrPauseFollowRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index))
- {
- }
-
- public CcrPauseFollowRequestDescriptor(TDocument document) : this(typeof(TDocument))
- {
- }
-
- internal CcrPauseFollowRequestDescriptor()
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationPauseFollow;
- protected override HttpMethod HttpMethod => HttpMethod.POST;
- protected override bool SupportsBody => false;
- public CcrPauseFollowRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index)
- {
- RouteValues.Required("index", index);
- return Self;
- }
-
- protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
- {
- }
- }
-
- public sealed partial class CcrPauseFollowRequestDescriptor : RequestDescriptorBase
- {
- internal CcrPauseFollowRequestDescriptor(Action configure) => configure.Invoke(this);
- public CcrPauseFollowRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index))
- {
- }
-
- internal CcrPauseFollowRequestDescriptor()
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationPauseFollow;
- protected override HttpMethod HttpMethod => HttpMethod.POST;
- protected override bool SupportsBody => false;
- public CcrPauseFollowRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index)
- {
- RouteValues.Required("index", index);
- return Self;
- }
-
- protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
- {
- }
- }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPauseFollowResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPauseFollowResponse.g.cs
deleted file mode 100644
index 781665f82ec..00000000000
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPauseFollowResponse.g.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information.
-//
-// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
-// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
-// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
-// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
-// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
-// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
-// ------------------------------------------------
-//
-// This file is automatically generated.
-// Please do not edit these files manually.
-//
-// ------------------------------------------------
-
-using Elastic.Transport.Products.Elasticsearch;
-using System.Collections.Generic;
-using System.Text.Json.Serialization;
-
-#nullable restore
-namespace Elastic.Clients.Elasticsearch.Ccr
-{
- public sealed partial class CcrPauseFollowResponse : ElasticsearchResponseBase
- {
- [JsonInclude]
- [JsonPropertyName("acknowledged")]
- public bool Acknowledged { get; init; }
- }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPutAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPutAutoFollowPatternRequest.g.cs
deleted file mode 100644
index 20b3880dec9..00000000000
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPutAutoFollowPatternRequest.g.cs
+++ /dev/null
@@ -1,334 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information.
-//
-// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
-// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
-// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
-// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
-// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
-// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
-// ------------------------------------------------
-//
-// This file is automatically generated.
-// Please do not edit these files manually.
-//
-// ------------------------------------------------
-
-using Elastic.Transport;
-using System;
-using System.Collections.Generic;
-using System.Linq.Expressions;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-
-#nullable restore
-namespace Elastic.Clients.Elasticsearch.Ccr
-{
- public sealed class CcrPutAutoFollowPatternRequestParameters : RequestParameters
- {
- }
-
- public sealed partial class CcrPutAutoFollowPatternRequest : PlainRequestBase
- {
- public CcrPutAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name))
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationPutAutoFollowPattern;
- protected override HttpMethod HttpMethod => HttpMethod.PUT;
- protected override bool SupportsBody => true;
- [JsonInclude]
- [JsonPropertyName("remote_cluster")]
- public string RemoteCluster { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("follow_index_pattern")]
- public string? FollowIndexPattern { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("leader_index_patterns")]
- public IEnumerable? LeaderIndexPatterns { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("leader_index_exclusion_patterns")]
- public IEnumerable? LeaderIndexExclusionPatterns { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("max_outstanding_read_requests")]
- public int? MaxOutstandingReadRequests { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("settings")]
- public Dictionary? Settings { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("max_outstanding_write_requests")]
- public int? MaxOutstandingWriteRequests { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("read_poll_timeout")]
- public Elastic.Clients.Elasticsearch.Duration? ReadPollTimeout { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("max_read_request_operation_count")]
- public int? MaxReadRequestOperationCount { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("max_read_request_size")]
- public Elastic.Clients.Elasticsearch.ByteSize? MaxReadRequestSize { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("max_retry_delay")]
- public Elastic.Clients.Elasticsearch.Duration? MaxRetryDelay { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("max_write_buffer_count")]
- public int? MaxWriteBufferCount { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("max_write_buffer_size")]
- public Elastic.Clients.Elasticsearch.ByteSize? MaxWriteBufferSize { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("max_write_request_operation_count")]
- public int? MaxWriteRequestOperationCount { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("max_write_request_size")]
- public Elastic.Clients.Elasticsearch.ByteSize? MaxWriteRequestSize { get; set; }
- }
-
- public sealed partial class CcrPutAutoFollowPatternRequestDescriptor : RequestDescriptorBase
- {
- internal CcrPutAutoFollowPatternRequestDescriptor(Action configure) => configure.Invoke(this);
- public CcrPutAutoFollowPatternRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name))
- {
- }
-
- internal CcrPutAutoFollowPatternRequestDescriptor()
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationPutAutoFollowPattern;
- protected override HttpMethod HttpMethod => HttpMethod.PUT;
- protected override bool SupportsBody => true;
- public CcrPutAutoFollowPatternRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name)
- {
- RouteValues.Required("name", name);
- return Self;
- }
-
- private string? FollowIndexPatternValue { get; set; }
-
- private IEnumerable? LeaderIndexExclusionPatternsValue { get; set; }
-
- private IEnumerable? LeaderIndexPatternsValue { get; set; }
-
- private int? MaxOutstandingReadRequestsValue { get; set; }
-
- private int? MaxOutstandingWriteRequestsValue { get; set; }
-
- private int? MaxReadRequestOperationCountValue { get; set; }
-
- private Elastic.Clients.Elasticsearch.ByteSize? MaxReadRequestSizeValue { get; set; }
-
- private Elastic.Clients.Elasticsearch.Duration? MaxRetryDelayValue { get; set; }
-
- private int? MaxWriteBufferCountValue { get; set; }
-
- private Elastic.Clients.Elasticsearch.ByteSize? MaxWriteBufferSizeValue { get; set; }
-
- private int? MaxWriteRequestOperationCountValue { get; set; }
-
- private Elastic.Clients.Elasticsearch.ByteSize? MaxWriteRequestSizeValue { get; set; }
-
- private Elastic.Clients.Elasticsearch.Duration? ReadPollTimeoutValue { get; set; }
-
- private string RemoteClusterValue { get; set; }
-
- private Dictionary? SettingsValue { get; set; }
-
- public CcrPutAutoFollowPatternRequestDescriptor FollowIndexPattern(string? followIndexPattern)
- {
- FollowIndexPatternValue = followIndexPattern;
- return Self;
- }
-
- public CcrPutAutoFollowPatternRequestDescriptor LeaderIndexExclusionPatterns(IEnumerable? leaderIndexExclusionPatterns)
- {
- LeaderIndexExclusionPatternsValue = leaderIndexExclusionPatterns;
- return Self;
- }
-
- public CcrPutAutoFollowPatternRequestDescriptor LeaderIndexPatterns(IEnumerable? leaderIndexPatterns)
- {
- LeaderIndexPatternsValue = leaderIndexPatterns;
- return Self;
- }
-
- public CcrPutAutoFollowPatternRequestDescriptor MaxOutstandingReadRequests(int? maxOutstandingReadRequests)
- {
- MaxOutstandingReadRequestsValue = maxOutstandingReadRequests;
- return Self;
- }
-
- public CcrPutAutoFollowPatternRequestDescriptor MaxOutstandingWriteRequests(int? maxOutstandingWriteRequests)
- {
- MaxOutstandingWriteRequestsValue = maxOutstandingWriteRequests;
- return Self;
- }
-
- public CcrPutAutoFollowPatternRequestDescriptor MaxReadRequestOperationCount(int? maxReadRequestOperationCount)
- {
- MaxReadRequestOperationCountValue = maxReadRequestOperationCount;
- return Self;
- }
-
- public CcrPutAutoFollowPatternRequestDescriptor MaxReadRequestSize(Elastic.Clients.Elasticsearch.ByteSize? maxReadRequestSize)
- {
- MaxReadRequestSizeValue = maxReadRequestSize;
- return Self;
- }
-
- public CcrPutAutoFollowPatternRequestDescriptor MaxRetryDelay(Elastic.Clients.Elasticsearch.Duration? maxRetryDelay)
- {
- MaxRetryDelayValue = maxRetryDelay;
- return Self;
- }
-
- public CcrPutAutoFollowPatternRequestDescriptor MaxWriteBufferCount(int? maxWriteBufferCount)
- {
- MaxWriteBufferCountValue = maxWriteBufferCount;
- return Self;
- }
-
- public CcrPutAutoFollowPatternRequestDescriptor MaxWriteBufferSize(Elastic.Clients.Elasticsearch.ByteSize? maxWriteBufferSize)
- {
- MaxWriteBufferSizeValue = maxWriteBufferSize;
- return Self;
- }
-
- public CcrPutAutoFollowPatternRequestDescriptor MaxWriteRequestOperationCount(int? maxWriteRequestOperationCount)
- {
- MaxWriteRequestOperationCountValue = maxWriteRequestOperationCount;
- return Self;
- }
-
- public CcrPutAutoFollowPatternRequestDescriptor MaxWriteRequestSize(Elastic.Clients.Elasticsearch.ByteSize? maxWriteRequestSize)
- {
- MaxWriteRequestSizeValue = maxWriteRequestSize;
- return Self;
- }
-
- public CcrPutAutoFollowPatternRequestDescriptor ReadPollTimeout(Elastic.Clients.Elasticsearch.Duration? readPollTimeout)
- {
- ReadPollTimeoutValue = readPollTimeout;
- return Self;
- }
-
- public CcrPutAutoFollowPatternRequestDescriptor RemoteCluster(string remoteCluster)
- {
- RemoteClusterValue = remoteCluster;
- return Self;
- }
-
- public CcrPutAutoFollowPatternRequestDescriptor Settings(Func, FluentDictionary> selector)
- {
- SettingsValue = selector?.Invoke(new FluentDictionary());
- return Self;
- }
-
- protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
- {
- writer.WriteStartObject();
- if (FollowIndexPatternValue is not null)
- {
- writer.WritePropertyName("follow_index_pattern");
- JsonSerializer.Serialize(writer, FollowIndexPatternValue, options);
- }
-
- if (LeaderIndexExclusionPatternsValue is not null)
- {
- writer.WritePropertyName("leader_index_exclusion_patterns");
- JsonSerializer.Serialize(writer, LeaderIndexExclusionPatternsValue, options);
- }
-
- if (LeaderIndexPatternsValue is not null)
- {
- writer.WritePropertyName("leader_index_patterns");
- JsonSerializer.Serialize(writer, LeaderIndexPatternsValue, options);
- }
-
- if (MaxOutstandingReadRequestsValue.HasValue)
- {
- writer.WritePropertyName("max_outstanding_read_requests");
- writer.WriteNumberValue(MaxOutstandingReadRequestsValue.Value);
- }
-
- if (MaxOutstandingWriteRequestsValue.HasValue)
- {
- writer.WritePropertyName("max_outstanding_write_requests");
- writer.WriteNumberValue(MaxOutstandingWriteRequestsValue.Value);
- }
-
- if (MaxReadRequestOperationCountValue.HasValue)
- {
- writer.WritePropertyName("max_read_request_operation_count");
- writer.WriteNumberValue(MaxReadRequestOperationCountValue.Value);
- }
-
- if (MaxReadRequestSizeValue is not null)
- {
- writer.WritePropertyName("max_read_request_size");
- JsonSerializer.Serialize(writer, MaxReadRequestSizeValue, options);
- }
-
- if (MaxRetryDelayValue is not null)
- {
- writer.WritePropertyName("max_retry_delay");
- JsonSerializer.Serialize(writer, MaxRetryDelayValue, options);
- }
-
- if (MaxWriteBufferCountValue.HasValue)
- {
- writer.WritePropertyName("max_write_buffer_count");
- writer.WriteNumberValue(MaxWriteBufferCountValue.Value);
- }
-
- if (MaxWriteBufferSizeValue is not null)
- {
- writer.WritePropertyName("max_write_buffer_size");
- JsonSerializer.Serialize(writer, MaxWriteBufferSizeValue, options);
- }
-
- if (MaxWriteRequestOperationCountValue.HasValue)
- {
- writer.WritePropertyName("max_write_request_operation_count");
- writer.WriteNumberValue(MaxWriteRequestOperationCountValue.Value);
- }
-
- if (MaxWriteRequestSizeValue is not null)
- {
- writer.WritePropertyName("max_write_request_size");
- JsonSerializer.Serialize(writer, MaxWriteRequestSizeValue, options);
- }
-
- if (ReadPollTimeoutValue is not null)
- {
- writer.WritePropertyName("read_poll_timeout");
- JsonSerializer.Serialize(writer, ReadPollTimeoutValue, options);
- }
-
- writer.WritePropertyName("remote_cluster");
- writer.WriteStringValue(RemoteClusterValue);
- if (SettingsValue is not null)
- {
- writer.WritePropertyName("settings");
- JsonSerializer.Serialize(writer, SettingsValue, options);
- }
-
- writer.WriteEndObject();
- }
- }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPutAutoFollowPatternResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPutAutoFollowPatternResponse.g.cs
deleted file mode 100644
index 6d02735d91a..00000000000
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrPutAutoFollowPatternResponse.g.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information.
-//
-// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
-// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
-// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
-// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
-// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
-// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
-// ------------------------------------------------
-//
-// This file is automatically generated.
-// Please do not edit these files manually.
-//
-// ------------------------------------------------
-
-using Elastic.Transport.Products.Elasticsearch;
-using System.Collections.Generic;
-using System.Text.Json.Serialization;
-
-#nullable restore
-namespace Elastic.Clients.Elasticsearch.Ccr
-{
- public sealed partial class CcrPutAutoFollowPatternResponse : ElasticsearchResponseBase
- {
- [JsonInclude]
- [JsonPropertyName("acknowledged")]
- public bool Acknowledged { get; init; }
- }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrResumeAutoFollowPatternRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrResumeAutoFollowPatternRequest.g.cs
deleted file mode 100644
index d5fe4d39d13..00000000000
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrResumeAutoFollowPatternRequest.g.cs
+++ /dev/null
@@ -1,67 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information.
-//
-// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
-// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
-// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
-// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
-// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
-// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
-// ------------------------------------------------
-//
-// This file is automatically generated.
-// Please do not edit these files manually.
-//
-// ------------------------------------------------
-
-using Elastic.Transport;
-using System;
-using System.Collections.Generic;
-using System.Linq.Expressions;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-
-#nullable restore
-namespace Elastic.Clients.Elasticsearch.Ccr
-{
- public sealed class CcrResumeAutoFollowPatternRequestParameters : RequestParameters
- {
- }
-
- public sealed partial class CcrResumeAutoFollowPatternRequest : PlainRequestBase
- {
- public CcrResumeAutoFollowPatternRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name))
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationResumeAutoFollowPattern;
- protected override HttpMethod HttpMethod => HttpMethod.POST;
- protected override bool SupportsBody => false;
- }
-
- public sealed partial class CcrResumeAutoFollowPatternRequestDescriptor : RequestDescriptorBase
- {
- internal CcrResumeAutoFollowPatternRequestDescriptor(Action configure) => configure.Invoke(this);
- public CcrResumeAutoFollowPatternRequestDescriptor(Elastic.Clients.Elasticsearch.Name name) : base(r => r.Required("name", name))
- {
- }
-
- internal CcrResumeAutoFollowPatternRequestDescriptor()
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationResumeAutoFollowPattern;
- protected override HttpMethod HttpMethod => HttpMethod.POST;
- protected override bool SupportsBody => false;
- public CcrResumeAutoFollowPatternRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name)
- {
- RouteValues.Required("name", name);
- return Self;
- }
-
- protected override void Serialize(Utf8JsonWriter writer, JsonSerializerOptions options, IElasticsearchClientSettings settings)
- {
- }
- }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrResumeAutoFollowPatternResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrResumeAutoFollowPatternResponse.g.cs
deleted file mode 100644
index c439d4c0a33..00000000000
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrResumeAutoFollowPatternResponse.g.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information.
-//
-// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
-// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
-// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
-// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
-// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
-// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
-// ------------------------------------------------
-//
-// This file is automatically generated.
-// Please do not edit these files manually.
-//
-// ------------------------------------------------
-
-using Elastic.Transport.Products.Elasticsearch;
-using System.Collections.Generic;
-using System.Text.Json.Serialization;
-
-#nullable restore
-namespace Elastic.Clients.Elasticsearch.Ccr
-{
- public sealed partial class CcrResumeAutoFollowPatternResponse : ElasticsearchResponseBase
- {
- [JsonInclude]
- [JsonPropertyName("acknowledged")]
- public bool Acknowledged { get; init; }
- }
-}
\ No newline at end of file
diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrResumeFollowRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrResumeFollowRequest.g.cs
deleted file mode 100644
index bcddcca5122..00000000000
--- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Ccr/CcrResumeFollowRequest.g.cs
+++ /dev/null
@@ -1,419 +0,0 @@
-// Licensed to Elasticsearch B.V under one or more agreements.
-// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
-// See the LICENSE file in the project root for more information.
-//
-// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗
-// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝
-// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗
-// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝
-// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗
-// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝
-// ------------------------------------------------
-//
-// This file is automatically generated.
-// Please do not edit these files manually.
-//
-// ------------------------------------------------
-
-using Elastic.Transport;
-using System;
-using System.Collections.Generic;
-using System.Linq.Expressions;
-using System.Text.Json;
-using System.Text.Json.Serialization;
-
-#nullable restore
-namespace Elastic.Clients.Elasticsearch.Ccr
-{
- public sealed class CcrResumeFollowRequestParameters : RequestParameters
- {
- }
-
- public sealed partial class CcrResumeFollowRequest : PlainRequestBase
- {
- public CcrResumeFollowRequest(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index))
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationResumeFollow;
- protected override HttpMethod HttpMethod => HttpMethod.POST;
- protected override bool SupportsBody => true;
- [JsonInclude]
- [JsonPropertyName("max_outstanding_read_requests")]
- public long? MaxOutstandingReadRequests { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("max_outstanding_write_requests")]
- public long? MaxOutstandingWriteRequests { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("max_read_request_operation_count")]
- public long? MaxReadRequestOperationCount { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("max_read_request_size")]
- public string? MaxReadRequestSize { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("max_retry_delay")]
- public Elastic.Clients.Elasticsearch.Duration? MaxRetryDelay { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("max_write_buffer_count")]
- public long? MaxWriteBufferCount { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("max_write_buffer_size")]
- public string? MaxWriteBufferSize { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("max_write_request_operation_count")]
- public long? MaxWriteRequestOperationCount { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("max_write_request_size")]
- public string? MaxWriteRequestSize { get; set; }
-
- [JsonInclude]
- [JsonPropertyName("read_poll_timeout")]
- public Elastic.Clients.Elasticsearch.Duration? ReadPollTimeout { get; set; }
- }
-
- public sealed partial class CcrResumeFollowRequestDescriptor : RequestDescriptorBase, CcrResumeFollowRequestParameters>
- {
- internal CcrResumeFollowRequestDescriptor(Action> configure) => configure.Invoke(this);
- public CcrResumeFollowRequestDescriptor(Elastic.Clients.Elasticsearch.IndexName index) : base(r => r.Required("index", index))
- {
- }
-
- public CcrResumeFollowRequestDescriptor(TDocument document) : this(typeof(TDocument))
- {
- }
-
- internal CcrResumeFollowRequestDescriptor()
- {
- }
-
- internal override ApiUrls ApiUrls => ApiUrlsLookups.CrossClusterReplicationResumeFollow;
- protected override HttpMethod HttpMethod => HttpMethod.POST;
- protected override bool SupportsBody => true;
- public CcrResumeFollowRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName index)
- {
- RouteValues.Required("index", index);
- return Self;
- }
-
- private long? MaxOutstandingReadRequestsValue { get; set; }
-
- private long? MaxOutstandingWriteRequestsValue { get; set; }
-
- private long? MaxReadRequestOperationCountValue { get; set; }
-
- private string? MaxReadRequestSizeValue { get; set; }
-
- private Elastic.Clients.Elasticsearch.Duration? MaxRetryDelayValue { get; set; }
-
- private long? MaxWriteBufferCountValue { get; set; }
-
- private string? MaxWriteBufferSizeValue { get; set; }
-
- private long? MaxWriteRequestOperationCountValue { get; set; }
-
- private string? MaxWriteRequestSizeValue { get; set; }
-
- private Elastic.Clients.Elasticsearch.Duration? ReadPollTimeoutValue { get; set; }
-
- public CcrResumeFollowRequestDescriptor