diff --git a/src/Elastic.Clients.Elasticsearch/Serialization/IEnumerableSingleOrManyConverter.cs b/src/Elastic.Clients.Elasticsearch/Serialization/IEnumerableSingleOrManyConverter.cs index 7bb2f96a8ec..9449469b297 100644 --- a/src/Elastic.Clients.Elasticsearch/Serialization/IEnumerableSingleOrManyConverter.cs +++ b/src/Elastic.Clients.Elasticsearch/Serialization/IEnumerableSingleOrManyConverter.cs @@ -9,11 +9,11 @@ namespace Elastic.Clients.Elasticsearch.Serialization; -internal abstract class IEnumerableSingleOrManyConverter : JsonConverter> +internal abstract class ICollectionSingleOrManyConverter : JsonConverter> { - public override IList? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) => + public override ICollection? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) => SingleOrManySerializationHelper.Deserialize(ref reader, options); - public override void Write(Utf8JsonWriter writer, IList value, JsonSerializerOptions options) => + public override void Write(Utf8JsonWriter writer, ICollection value, JsonSerializerOptions options) => SingleOrManySerializationHelper.Serialize(value, writer, options); } diff --git a/src/Elastic.Clients.Elasticsearch/Serialization/SingleOrManySerializationHelper.cs b/src/Elastic.Clients.Elasticsearch/Serialization/SingleOrManySerializationHelper.cs index 3b26266abe4..9403dec628d 100644 --- a/src/Elastic.Clients.Elasticsearch/Serialization/SingleOrManySerializationHelper.cs +++ b/src/Elastic.Clients.Elasticsearch/Serialization/SingleOrManySerializationHelper.cs @@ -43,23 +43,9 @@ public static IList Deserialize(ref Utf8JsonReader reader, JsonSer throw new JsonException("Unexpected token."); } - public static void Serialize(IList value, Utf8JsonWriter writer, JsonSerializerOptions options) + public static void Serialize(ICollection value, Utf8JsonWriter writer, JsonSerializerOptions options) { - if (value is not ICollection collection) - { - // Avoid a double enumeration of counting then iterating. - // Instead, produce an array, even if it's an array of one. - - writer.WriteStartArray(); - foreach (var item in value) - { - JsonSerializer.Serialize(writer, item, options); - } - writer.WriteEndArray(); - return; - } - - var count = collection.Count; + var count = value.Count; if (count == 0) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchSubmitRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchSubmitRequest.g.cs index c7e56e0a298..941e98f0d5f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchSubmitRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/AsyncSearch/AsyncSearchSubmitRequest.g.cs @@ -63,7 +63,7 @@ public sealed class AsyncSearchSubmitRequestParameters : RequestParameters Q("df"); set => Q("df", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } @@ -182,13 +182,13 @@ public override AsyncSearchSubmitRequest Read(ref Utf8JsonReader reader, Type ty if (property == "indices_boost") { - variant.IndicesBoost = JsonSerializer.Deserialize>?>(ref reader, options); + variant.IndicesBoost = JsonSerializer.Deserialize>?>(ref reader, options); continue; } if (property == "docvalue_fields") { - variant.DocvalueFields = JsonSerializer.Deserialize?>(ref reader, options); + variant.DocvalueFields = JsonSerializer.Deserialize?>(ref reader, options); continue; } @@ -224,7 +224,7 @@ public override AsyncSearchSubmitRequest Read(ref Utf8JsonReader reader, Type ty if (property == "rescore") { - variant.Rescore = JsonSerializer.Deserialize?>(ref reader, options); + variant.Rescore = JsonSerializer.Deserialize?>(ref reader, options); continue; } @@ -236,7 +236,7 @@ public override AsyncSearchSubmitRequest Read(ref Utf8JsonReader reader, Type ty if (property == "search_after") { - variant.SearchAfter = JsonSerializer.Deserialize?>(ref reader, options); + variant.SearchAfter = JsonSerializer.Deserialize?>(ref reader, options); continue; } @@ -254,7 +254,7 @@ public override AsyncSearchSubmitRequest Read(ref Utf8JsonReader reader, Type ty if (property == "sort") { - variant.Sort = JsonSerializer.Deserialize?>(ref reader, options); + variant.Sort = JsonSerializer.Deserialize?>(ref reader, options); continue; } @@ -266,7 +266,7 @@ public override AsyncSearchSubmitRequest Read(ref Utf8JsonReader reader, Type ty if (property == "fields") { - variant.Fields = JsonSerializer.Deserialize?>(ref reader, options); + variant.Fields = JsonSerializer.Deserialize?>(ref reader, options); continue; } @@ -326,7 +326,7 @@ public override AsyncSearchSubmitRequest Read(ref Utf8JsonReader reader, Type ty if (property == "stats") { - variant.Stats = JsonSerializer.Deserialize?>(ref reader, options); + variant.Stats = JsonSerializer.Deserialize?>(ref reader, options); continue; } } @@ -582,7 +582,7 @@ public AsyncSearchSubmitRequest(Elastic.Clients.Elasticsearch.Indices? indices) public string? Df { get => Q("df"); set => Q("df", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } @@ -674,11 +674,11 @@ public AsyncSearchSubmitRequest(Elastic.Clients.Elasticsearch.Indices? indices) [JsonInclude] [JsonPropertyName("indices_boost")] - public IList>? IndicesBoost { get; set; } + public ICollection>? IndicesBoost { get; set; } [JsonInclude] [JsonPropertyName("docvalue_fields")] - public IList? DocvalueFields { get; set; } + public ICollection? DocvalueFields { get; set; } [JsonInclude] [JsonPropertyName("knn")] @@ -702,7 +702,7 @@ public AsyncSearchSubmitRequest(Elastic.Clients.Elasticsearch.Indices? indices) [JsonInclude] [JsonPropertyName("rescore")] - public IList? Rescore { get; set; } + public ICollection? Rescore { get; set; } [JsonInclude] [JsonPropertyName("script_fields")] @@ -710,7 +710,7 @@ public AsyncSearchSubmitRequest(Elastic.Clients.Elasticsearch.Indices? indices) [JsonInclude] [JsonPropertyName("search_after")] - public IList? SearchAfter { get; set; } + public ICollection? SearchAfter { get; set; } [JsonInclude] [JsonPropertyName("size")] @@ -723,7 +723,7 @@ public AsyncSearchSubmitRequest(Elastic.Clients.Elasticsearch.Indices? indices) [JsonInclude] [JsonPropertyName("sort")] [JsonConverter(typeof(SortConverter))] - public IList? Sort { get; set; } + public ICollection? Sort { get; set; } [JsonInclude] [JsonPropertyName("_source")] @@ -731,7 +731,7 @@ public AsyncSearchSubmitRequest(Elastic.Clients.Elasticsearch.Indices? indices) [JsonInclude] [JsonPropertyName("fields")] - public IList? Fields { get; set; } + public ICollection? Fields { get; set; } [JsonInclude] [JsonPropertyName("suggest")] @@ -771,7 +771,7 @@ public AsyncSearchSubmitRequest(Elastic.Clients.Elasticsearch.Indices? indices) [JsonInclude] [JsonPropertyName("stats")] - public IList? Stats { get; set; } + public ICollection? Stats { get; set; } } public sealed partial class AsyncSearchSubmitRequest : AsyncSearchSubmitRequest @@ -801,7 +801,7 @@ public AsyncSearchSubmitRequestDescriptor() public AsyncSearchSubmitRequestDescriptor CcsMinimizeRoundtrips(bool? ccsMinimizeRoundtrips = true) => Qs("ccs_minimize_roundtrips", ccsMinimizeRoundtrips); public AsyncSearchSubmitRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); public AsyncSearchSubmitRequestDescriptor Df(string? df) => Qs("df", df); - public AsyncSearchSubmitRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public AsyncSearchSubmitRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public AsyncSearchSubmitRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); public AsyncSearchSubmitRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public AsyncSearchSubmitRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Duration? keepAlive) => Qs("keep_alive", keepAlive); @@ -841,7 +841,7 @@ public AsyncSearchSubmitRequestDescriptor Indices(Elastic.Clients.Ela private Action> CollapseDescriptorAction { get; set; } - private IList? DocvalueFieldsValue { get; set; } + private ICollection? DocvalueFieldsValue { get; set; } private QueryDsl.FieldAndFormatDescriptor DocvalueFieldsDescriptor { get; set; } @@ -849,7 +849,7 @@ public AsyncSearchSubmitRequestDescriptor Indices(Elastic.Clients.Ela private Action>[] DocvalueFieldsDescriptorActions { get; set; } - private IList? FieldsValue { get; set; } + private ICollection? FieldsValue { get; set; } private QueryDsl.FieldAndFormatDescriptor FieldsDescriptor { get; set; } @@ -881,7 +881,7 @@ public AsyncSearchSubmitRequestDescriptor Indices(Elastic.Clients.Ela private Action> QueryDescriptorAction { get; set; } - private IList? RescoreValue { get; set; } + private ICollection? RescoreValue { get; set; } private Core.Search.RescoreDescriptor RescoreDescriptor { get; set; } @@ -903,7 +903,7 @@ public AsyncSearchSubmitRequestDescriptor Indices(Elastic.Clients.Ela private int? FromValue { get; set; } - private IList>? IndicesBoostValue { get; set; } + private ICollection>? IndicesBoostValue { get; set; } private double? MinScoreValue { get; set; } @@ -919,15 +919,15 @@ public AsyncSearchSubmitRequestDescriptor Indices(Elastic.Clients.Ela private Dictionary? ScriptFieldsValue { get; set; } - private IList? SearchAfterValue { get; set; } + private ICollection? SearchAfterValue { get; set; } private bool? SeqNoPrimaryTermValue { get; set; } private int? SizeValue { get; set; } - private IList? SortValue { get; set; } + private ICollection? SortValue { get; set; } - private IList? StatsValue { get; set; } + private ICollection? StatsValue { get; set; } private Elastic.Clients.Elasticsearch.Fields? StoredFieldsValue { get; set; } @@ -995,7 +995,7 @@ public AsyncSearchSubmitRequestDescriptor Collapse(Action DocvalueFields(IList? docvalueFields) + public AsyncSearchSubmitRequestDescriptor DocvalueFields(ICollection? docvalueFields) { DocvalueFieldsDescriptor = null; DocvalueFieldsDescriptorAction = null; @@ -1031,7 +1031,7 @@ public AsyncSearchSubmitRequestDescriptor DocvalueFields(params Actio return Self; } - public AsyncSearchSubmitRequestDescriptor Fields(IList? fields) + public AsyncSearchSubmitRequestDescriptor Fields(ICollection? fields) { FieldsDescriptor = null; FieldsDescriptorAction = null; @@ -1163,7 +1163,7 @@ public AsyncSearchSubmitRequestDescriptor Query(Action Rescore(IList? rescore) + public AsyncSearchSubmitRequestDescriptor Rescore(ICollection? rescore) { RescoreDescriptor = null; RescoreDescriptorAction = null; @@ -1247,7 +1247,7 @@ public AsyncSearchSubmitRequestDescriptor From(int? from) return Self; } - public AsyncSearchSubmitRequestDescriptor IndicesBoost(IList>? indicesBoost) + public AsyncSearchSubmitRequestDescriptor IndicesBoost(ICollection>? indicesBoost) { IndicesBoostValue = indicesBoost; return Self; @@ -1301,7 +1301,7 @@ public AsyncSearchSubmitRequestDescriptor ScriptFields(Func SearchAfter(IList? searchAfter) + public AsyncSearchSubmitRequestDescriptor SearchAfter(ICollection? searchAfter) { SearchAfterValue = searchAfter; return Self; @@ -1319,13 +1319,13 @@ public AsyncSearchSubmitRequestDescriptor Size(int? size) return Self; } - public AsyncSearchSubmitRequestDescriptor Sort(IList? sort) + public AsyncSearchSubmitRequestDescriptor Sort(ICollection? sort) { SortValue = sort; return Self; } - public AsyncSearchSubmitRequestDescriptor Stats(IList? stats) + public AsyncSearchSubmitRequestDescriptor Stats(ICollection? stats) { StatsValue = stats; return Self; @@ -1775,7 +1775,7 @@ public AsyncSearchSubmitRequestDescriptor() public AsyncSearchSubmitRequestDescriptor CcsMinimizeRoundtrips(bool? ccsMinimizeRoundtrips = true) => Qs("ccs_minimize_roundtrips", ccsMinimizeRoundtrips); public AsyncSearchSubmitRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); public AsyncSearchSubmitRequestDescriptor Df(string? df) => Qs("df", df); - public AsyncSearchSubmitRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public AsyncSearchSubmitRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public AsyncSearchSubmitRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); public AsyncSearchSubmitRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public AsyncSearchSubmitRequestDescriptor KeepAlive(Elastic.Clients.Elasticsearch.Duration? keepAlive) => Qs("keep_alive", keepAlive); @@ -1815,7 +1815,7 @@ public AsyncSearchSubmitRequestDescriptor Indices(Elastic.Clients.Elasticsearch. private Action CollapseDescriptorAction { get; set; } - private IList? DocvalueFieldsValue { get; set; } + private ICollection? DocvalueFieldsValue { get; set; } private QueryDsl.FieldAndFormatDescriptor DocvalueFieldsDescriptor { get; set; } @@ -1823,7 +1823,7 @@ public AsyncSearchSubmitRequestDescriptor Indices(Elastic.Clients.Elasticsearch. private Action[] DocvalueFieldsDescriptorActions { get; set; } - private IList? FieldsValue { get; set; } + private ICollection? FieldsValue { get; set; } private QueryDsl.FieldAndFormatDescriptor FieldsDescriptor { get; set; } @@ -1855,7 +1855,7 @@ public AsyncSearchSubmitRequestDescriptor Indices(Elastic.Clients.Elasticsearch. private Action QueryDescriptorAction { get; set; } - private IList? RescoreValue { get; set; } + private ICollection? RescoreValue { get; set; } private Core.Search.RescoreDescriptor RescoreDescriptor { get; set; } @@ -1877,7 +1877,7 @@ public AsyncSearchSubmitRequestDescriptor Indices(Elastic.Clients.Elasticsearch. private int? FromValue { get; set; } - private IList>? IndicesBoostValue { get; set; } + private ICollection>? IndicesBoostValue { get; set; } private double? MinScoreValue { get; set; } @@ -1893,15 +1893,15 @@ public AsyncSearchSubmitRequestDescriptor Indices(Elastic.Clients.Elasticsearch. private Dictionary? ScriptFieldsValue { get; set; } - private IList? SearchAfterValue { get; set; } + private ICollection? SearchAfterValue { get; set; } private bool? SeqNoPrimaryTermValue { get; set; } private int? SizeValue { get; set; } - private IList? SortValue { get; set; } + private ICollection? SortValue { get; set; } - private IList? StatsValue { get; set; } + private ICollection? StatsValue { get; set; } private Elastic.Clients.Elasticsearch.Fields? StoredFieldsValue { get; set; } @@ -1969,7 +1969,7 @@ public AsyncSearchSubmitRequestDescriptor Collapse(Action? docvalueFields) + public AsyncSearchSubmitRequestDescriptor DocvalueFields(ICollection? docvalueFields) { DocvalueFieldsDescriptor = null; DocvalueFieldsDescriptorAction = null; @@ -2005,7 +2005,7 @@ public AsyncSearchSubmitRequestDescriptor DocvalueFields(params Action? fields) + public AsyncSearchSubmitRequestDescriptor Fields(ICollection? fields) { FieldsDescriptor = null; FieldsDescriptorAction = null; @@ -2137,7 +2137,7 @@ public AsyncSearchSubmitRequestDescriptor Query(Action? rescore) + public AsyncSearchSubmitRequestDescriptor Rescore(ICollection? rescore) { RescoreDescriptor = null; RescoreDescriptorAction = null; @@ -2221,7 +2221,7 @@ public AsyncSearchSubmitRequestDescriptor From(int? from) return Self; } - public AsyncSearchSubmitRequestDescriptor IndicesBoost(IList>? indicesBoost) + public AsyncSearchSubmitRequestDescriptor IndicesBoost(ICollection>? indicesBoost) { IndicesBoostValue = indicesBoost; return Self; @@ -2275,7 +2275,7 @@ public AsyncSearchSubmitRequestDescriptor ScriptFields(Func? searchAfter) + public AsyncSearchSubmitRequestDescriptor SearchAfter(ICollection? searchAfter) { SearchAfterValue = searchAfter; return Self; @@ -2293,13 +2293,13 @@ public AsyncSearchSubmitRequestDescriptor Size(int? size) return Self; } - public AsyncSearchSubmitRequestDescriptor Sort(IList? sort) + public AsyncSearchSubmitRequestDescriptor Sort(ICollection? sort) { SortValue = sort; return Self; } - public AsyncSearchSubmitRequestDescriptor Stats(IList? stats) + public AsyncSearchSubmitRequestDescriptor Stats(ICollection? stats) { StatsValue = stats; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterHealthRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterHealthRequest.g.cs index d08fa1c8bd0..38d6dbfe342 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterHealthRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Cluster/ClusterHealthRequest.g.cs @@ -30,7 +30,7 @@ namespace Elastic.Clients.Elasticsearch.Cluster; public sealed class ClusterHealthRequestParameters : RequestParameters { [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public Elastic.Clients.Elasticsearch.Level? Level { get => Q("level"); set => Q("level", value); } @@ -77,7 +77,7 @@ public ClusterHealthRequest(Elastic.Clients.Elasticsearch.Indices? indices) : ba protected override HttpMethod HttpMethod => HttpMethod.GET; protected override bool SupportsBody => false; [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public Elastic.Clients.Elasticsearch.Level? Level { get => Q("level"); set => Q("level", value); } @@ -120,7 +120,7 @@ public ClusterHealthRequestDescriptor() internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterHealth; protected override HttpMethod HttpMethod => HttpMethod.GET; protected override bool SupportsBody => false; - public ClusterHealthRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public ClusterHealthRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public ClusterHealthRequestDescriptor Level(Elastic.Clients.Elasticsearch.Level? level) => Qs("level", level); public ClusterHealthRequestDescriptor Local(bool? local = true) => Qs("local", local); public ClusterHealthRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); @@ -152,7 +152,7 @@ public ClusterHealthRequestDescriptor() internal override ApiUrls ApiUrls => ApiUrlsLookups.ClusterHealth; protected override HttpMethod HttpMethod => HttpMethod.GET; protected override bool SupportsBody => false; - public ClusterHealthRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public ClusterHealthRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public ClusterHealthRequestDescriptor Level(Elastic.Clients.Elasticsearch.Level? level) => Qs("level", level); public ClusterHealthRequestDescriptor Local(bool? local = true) => Qs("local", local); public ClusterHealthRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs index 55b10781ccd..ece0a9758c2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/CountRequest.g.cs @@ -45,7 +45,7 @@ public sealed class CountRequestParameters : RequestParameters Q("df"); set => Q("df", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } @@ -101,7 +101,7 @@ public CountRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => public string? Df { get => Q("df"); set => Q("df", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } @@ -151,7 +151,7 @@ public CountRequestDescriptor(Elasticsearch.Indices? indices) : base(r => r.Opti public CountRequestDescriptor Analyzer(string? analyzer) => Qs("analyzer", analyzer); public CountRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); public CountRequestDescriptor Df(string? df) => Qs("df", df); - public CountRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public CountRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public CountRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); public CountRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public CountRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); @@ -238,7 +238,7 @@ public CountRequestDescriptor() public CountRequestDescriptor Analyzer(string? analyzer) => Qs("analyzer", analyzer); public CountRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); public CountRequestDescriptor Df(string? df) => Qs("df", df); - public CountRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public CountRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public CountRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); public CountRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public CountRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs index 90e4014ee4f..b6ff1f63292 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/DeleteByQueryRequest.g.cs @@ -48,7 +48,7 @@ public sealed class DeleteByQueryRequestParameters : RequestParameters Q("df"); set => Q("df", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public long? From { get => Q("from"); set => Q("from", value); } @@ -93,10 +93,10 @@ public sealed class DeleteByQueryRequestParameters : RequestParameters Q("slices"); set => Q("slices", value); } [JsonIgnore] - public IList? Sort { get => Q?>("sort"); set => Q("sort", value); } + public ICollection? Sort { get => Q?>("sort"); set => Q("sort", value); } [JsonIgnore] - public IList? Stats { get => Q?>("stats"); set => Q("stats", value); } + public ICollection? Stats { get => Q?>("stats"); set => Q("stats", value); } [JsonIgnore] public long? TerminateAfter { get => Q("terminate_after"); set => Q("terminate_after", value); } @@ -142,7 +142,7 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas public string? Df { get => Q("df"); set => Q("df", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public long? From { get => Q("from"); set => Q("from", value); } @@ -187,10 +187,10 @@ public DeleteByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas public Elastic.Clients.Elasticsearch.Slices? Slices { get => Q("slices"); set => Q("slices", value); } [JsonIgnore] - public IList? Sort { get => Q?>("sort"); set => Q("sort", value); } + public ICollection? Sort { get => Q?>("sort"); set => Q("sort", value); } [JsonIgnore] - public IList? Stats { get => Q?>("stats"); set => Q("stats", value); } + public ICollection? Stats { get => Q?>("stats"); set => Q("stats", value); } [JsonIgnore] public long? TerminateAfter { get => Q("terminate_after"); set => Q("terminate_after", value); } @@ -240,7 +240,7 @@ internal DeleteByQueryRequestDescriptor() public DeleteByQueryRequestDescriptor Conflicts(Elastic.Clients.Elasticsearch.Conflicts? conflicts) => Qs("conflicts", conflicts); public DeleteByQueryRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); public DeleteByQueryRequestDescriptor Df(string? df) => Qs("df", df); - public DeleteByQueryRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public DeleteByQueryRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public DeleteByQueryRequestDescriptor From(long? from) => Qs("from", from); public DeleteByQueryRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public DeleteByQueryRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); @@ -255,8 +255,8 @@ internal DeleteByQueryRequestDescriptor() public DeleteByQueryRequestDescriptor SearchTimeout(Elastic.Clients.Elasticsearch.Duration? searchTimeout) => Qs("search_timeout", searchTimeout); public DeleteByQueryRequestDescriptor SearchType(Elastic.Clients.Elasticsearch.SearchType? searchType) => Qs("search_type", searchType); public DeleteByQueryRequestDescriptor Slices(Elastic.Clients.Elasticsearch.Slices? slices) => Qs("slices", slices); - public DeleteByQueryRequestDescriptor Sort(IList? sort) => Qs("sort", sort); - public DeleteByQueryRequestDescriptor Stats(IList? stats) => Qs("stats", stats); + public DeleteByQueryRequestDescriptor Sort(ICollection? sort) => Qs("sort", sort); + public DeleteByQueryRequestDescriptor Stats(ICollection? stats) => Qs("stats", stats); public DeleteByQueryRequestDescriptor TerminateAfter(long? terminateAfter) => Qs("terminate_after", terminateAfter); public DeleteByQueryRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); public DeleteByQueryRequestDescriptor Version(bool? version = true) => Qs("version", version); @@ -401,7 +401,7 @@ internal DeleteByQueryRequestDescriptor() public DeleteByQueryRequestDescriptor Conflicts(Elastic.Clients.Elasticsearch.Conflicts? conflicts) => Qs("conflicts", conflicts); public DeleteByQueryRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); public DeleteByQueryRequestDescriptor Df(string? df) => Qs("df", df); - public DeleteByQueryRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public DeleteByQueryRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public DeleteByQueryRequestDescriptor From(long? from) => Qs("from", from); public DeleteByQueryRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public DeleteByQueryRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); @@ -416,8 +416,8 @@ internal DeleteByQueryRequestDescriptor() public DeleteByQueryRequestDescriptor SearchTimeout(Elastic.Clients.Elasticsearch.Duration? searchTimeout) => Qs("search_timeout", searchTimeout); public DeleteByQueryRequestDescriptor SearchType(Elastic.Clients.Elasticsearch.SearchType? searchType) => Qs("search_type", searchType); public DeleteByQueryRequestDescriptor Slices(Elastic.Clients.Elasticsearch.Slices? slices) => Qs("slices", slices); - public DeleteByQueryRequestDescriptor Sort(IList? sort) => Qs("sort", sort); - public DeleteByQueryRequestDescriptor Stats(IList? stats) => Qs("stats", stats); + public DeleteByQueryRequestDescriptor Sort(ICollection? sort) => Qs("sort", sort); + public DeleteByQueryRequestDescriptor Stats(ICollection? stats) => Qs("stats", stats); public DeleteByQueryRequestDescriptor TerminateAfter(long? terminateAfter) => Qs("terminate_after", terminateAfter); public DeleteByQueryRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); public DeleteByQueryRequestDescriptor Version(bool? version = true) => Qs("version", version); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs index d40de579fb5..0360b230349 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Eql/EqlSearchRequest.g.cs @@ -33,7 +33,7 @@ public sealed class EqlSearchRequestParameters : RequestParameters Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -52,7 +52,7 @@ public EqlSearchRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -83,7 +83,7 @@ public EqlSearchRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r [JsonInclude] [JsonPropertyName("filter")] - public IList? Filter { get; set; } + public ICollection? Filter { get; set; } [JsonInclude] [JsonPropertyName("keep_alive")] @@ -103,7 +103,7 @@ public EqlSearchRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r [JsonInclude] [JsonPropertyName("fields")] - public IList? Fields { get; set; } + public ICollection? Fields { get; set; } [JsonInclude] [JsonPropertyName("result_position")] @@ -129,7 +129,7 @@ internal EqlSearchRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.POST; protected override bool SupportsBody => true; public EqlSearchRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public EqlSearchRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public EqlSearchRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public EqlSearchRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) { @@ -137,7 +137,7 @@ public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsear return Self; } - private IList? FieldsValue { get; set; } + private ICollection? FieldsValue { get; set; } private QueryDsl.FieldAndFormatDescriptor FieldsDescriptor { get; set; } @@ -145,7 +145,7 @@ public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsear private Action>[] FieldsDescriptorActions { get; set; } - private IList? FilterValue { get; set; } + private ICollection? FilterValue { get; set; } private QueryDsl.QueryContainerDescriptor FilterDescriptor { get; set; } @@ -177,7 +177,7 @@ public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsear private Elastic.Clients.Elasticsearch.Duration? WaitForCompletionTimeoutValue { get; set; } - public EqlSearchRequestDescriptor Fields(IList? fields) + public EqlSearchRequestDescriptor Fields(ICollection? fields) { FieldsDescriptor = null; FieldsDescriptorAction = null; @@ -213,7 +213,7 @@ public EqlSearchRequestDescriptor Fields(params Action Filter(IList? filter) + public EqlSearchRequestDescriptor Filter(ICollection? filter) { FilterDescriptor = null; FilterDescriptorAction = null; @@ -491,7 +491,7 @@ internal EqlSearchRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.POST; protected override bool SupportsBody => true; public EqlSearchRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public EqlSearchRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public EqlSearchRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public EqlSearchRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) { @@ -499,7 +499,7 @@ public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices return Self; } - private IList? FieldsValue { get; set; } + private ICollection? FieldsValue { get; set; } private QueryDsl.FieldAndFormatDescriptor FieldsDescriptor { get; set; } @@ -507,7 +507,7 @@ public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices private Action[] FieldsDescriptorActions { get; set; } - private IList? FilterValue { get; set; } + private ICollection? FilterValue { get; set; } private QueryDsl.QueryContainerDescriptor FilterDescriptor { get; set; } @@ -539,7 +539,7 @@ public EqlSearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices private Elastic.Clients.Elasticsearch.Duration? WaitForCompletionTimeoutValue { get; set; } - public EqlSearchRequestDescriptor Fields(IList? fields) + public EqlSearchRequestDescriptor Fields(ICollection? fields) { FieldsDescriptor = null; FieldsDescriptorAction = null; @@ -575,7 +575,7 @@ public EqlSearchRequestDescriptor Fields(params Action? filter) + public EqlSearchRequestDescriptor Filter(ICollection? filter) { FilterDescriptor = null; FilterDescriptorAction = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs index f1a1946329d..ba094c8f822 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/FieldCapsRequest.g.cs @@ -33,7 +33,7 @@ public sealed class FieldCapsRequestParameters : RequestParameters Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public Elastic.Clients.Elasticsearch.Fields? Fields { get => Q("fields"); set => Q("fields", value); } @@ -48,7 +48,7 @@ public sealed class FieldCapsRequestParameters : RequestParameters Q("filters"); set => Q("filters", value); } [JsonIgnore] - public IList? Types { get => Q?>("types"); set => Q("types", value); } + public ICollection? Types { get => Q?>("types"); set => Q("types", value); } } public sealed partial class FieldCapsRequest : PlainRequest @@ -68,7 +68,7 @@ public FieldCapsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public Elastic.Clients.Elasticsearch.Fields? Fields { get => Q("fields"); set => Q("fields", value); } @@ -83,7 +83,7 @@ public FieldCapsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r public string? Filters { get => Q("filters"); set => Q("filters", value); } [JsonIgnore] - public IList? Types { get => Q?>("types"); set => Q("types", value); } + public ICollection? Types { get => Q?>("types"); set => Q("types", value); } [JsonInclude] [JsonPropertyName("index_filter")] @@ -105,12 +105,12 @@ public FieldCapsRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.POST; protected override bool SupportsBody => true; public FieldCapsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public FieldCapsRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public FieldCapsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public FieldCapsRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Fields? fields) => Qs("fields", fields); public FieldCapsRequestDescriptor Filters(string? filters) => Qs("filters", filters); public FieldCapsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public FieldCapsRequestDescriptor IncludeUnmapped(bool? includeUnmapped = true) => Qs("include_unmapped", includeUnmapped); - public FieldCapsRequestDescriptor Types(IList? types) => Qs("types", types); + public FieldCapsRequestDescriptor Types(ICollection? types) => Qs("types", types); public FieldCapsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) { RouteValues.Optional("index", indices); @@ -195,12 +195,12 @@ public FieldCapsRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.POST; protected override bool SupportsBody => true; public FieldCapsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public FieldCapsRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public FieldCapsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public FieldCapsRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Fields? fields) => Qs("fields", fields); public FieldCapsRequestDescriptor Filters(string? filters) => Qs("filters", filters); public FieldCapsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public FieldCapsRequestDescriptor IncludeUnmapped(bool? includeUnmapped = true) => Qs("include_unmapped", includeUnmapped); - public FieldCapsRequestDescriptor Types(IList? types) => Qs("types", types); + public FieldCapsRequestDescriptor Types(ICollection? types) => Qs("types", types); public FieldCapsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) { RouteValues.Optional("index", indices); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AliasRequest.g.cs index ad580bf7229..e6f7a10d664 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AliasRequest.g.cs @@ -33,7 +33,7 @@ public sealed class AliasRequestParameters : RequestParameters Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -67,7 +67,7 @@ public AliasRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -95,7 +95,7 @@ public AliasRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indices) : protected override HttpMethod HttpMethod => HttpMethod.GET; protected override bool SupportsBody => false; public AliasRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public AliasRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public AliasRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public AliasRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public AliasRequestDescriptor Local(bool? local = true) => Qs("local", local); public AliasRequestDescriptor Name(Elastic.Clients.Elasticsearch.Names? name) @@ -134,7 +134,7 @@ public AliasRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indices) : protected override HttpMethod HttpMethod => HttpMethod.GET; protected override bool SupportsBody => false; public AliasRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public AliasRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public AliasRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public AliasRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public AliasRequestDescriptor Local(bool? local = true) => Qs("local", local); public AliasRequestDescriptor Name(Elastic.Clients.Elasticsearch.Names? name) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseRequest.g.cs index efbe433eecf..88007522c87 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/CloseRequest.g.cs @@ -33,7 +33,7 @@ public sealed class CloseRequestParameters : RequestParameters Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -61,7 +61,7 @@ public CloseRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -91,7 +91,7 @@ internal CloseRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.POST; protected override bool SupportsBody => false; public CloseRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public CloseRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public CloseRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public CloseRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public CloseRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public CloseRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); @@ -122,7 +122,7 @@ internal CloseRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.POST; protected override bool SupportsBody => false; public CloseRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public CloseRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public CloseRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public CloseRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public CloseRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public CloseRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamRequest.g.cs index 0c989591bbb..921034f30a9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamRequest.g.cs @@ -30,7 +30,7 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; public sealed class DataStreamRequestParameters : RequestParameters { [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } } public sealed partial class DataStreamRequest : PlainRequest @@ -47,7 +47,7 @@ public DataStreamRequest(Elastic.Clients.Elasticsearch.DataStreamNames? name) : protected override HttpMethod HttpMethod => HttpMethod.GET; protected override bool SupportsBody => false; [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } } public sealed partial class DataStreamRequestDescriptor : RequestDescriptor @@ -60,7 +60,7 @@ public DataStreamRequestDescriptor() internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementGetDataStream; protected override HttpMethod HttpMethod => HttpMethod.GET; protected override bool SupportsBody => false; - public DataStreamRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public DataStreamRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public DataStreamRequestDescriptor Name(Elastic.Clients.Elasticsearch.DataStreamNames? name) { RouteValues.Optional("name", name); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataStreamRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataStreamRequest.g.cs index 79d8706ff11..f7512e4a13a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataStreamRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteDataStreamRequest.g.cs @@ -30,7 +30,7 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; public sealed class DeleteDataStreamRequestParameters : RequestParameters { [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } } public sealed partial class DeleteDataStreamRequest : PlainRequest @@ -43,7 +43,7 @@ public DeleteDataStreamRequest(Elastic.Clients.Elasticsearch.DataStreamNames nam protected override HttpMethod HttpMethod => HttpMethod.DELETE; protected override bool SupportsBody => false; [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } } public sealed partial class DeleteDataStreamRequestDescriptor : RequestDescriptor @@ -60,7 +60,7 @@ internal DeleteDataStreamRequestDescriptor() internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementDeleteDataStream; protected override HttpMethod HttpMethod => HttpMethod.DELETE; protected override bool SupportsBody => false; - public DeleteDataStreamRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public DeleteDataStreamRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public DeleteDataStreamRequestDescriptor Name(Elastic.Clients.Elasticsearch.DataStreamNames name) { RouteValues.Required("name", name); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteRequest.g.cs index 5d2ed3eaf6e..c989deac83d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DeleteRequest.g.cs @@ -33,7 +33,7 @@ public sealed class DeleteRequestParameters : RequestParameters Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -58,7 +58,7 @@ public DeleteRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -85,7 +85,7 @@ internal DeleteRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.DELETE; protected override bool SupportsBody => false; public DeleteRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public DeleteRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public DeleteRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public DeleteRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public DeleteRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public DeleteRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); @@ -115,7 +115,7 @@ internal DeleteRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.DELETE; protected override bool SupportsBody => false; public DeleteRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public DeleteRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public DeleteRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public DeleteRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public DeleteRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public DeleteRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs index e03d35d4c0f..e25ed0b186c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsAliasRequest.g.cs @@ -33,7 +33,7 @@ public sealed class ExistsAliasRequestParameters : RequestParameters Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -59,7 +59,7 @@ public ExistsAliasRequest(Elastic.Clients.Elasticsearch.Indices? indices, Elasti public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -87,7 +87,7 @@ internal ExistsAliasRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.HEAD; protected override bool SupportsBody => false; public ExistsAliasRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ExistsAliasRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public ExistsAliasRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public ExistsAliasRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public ExistsAliasRequestDescriptor Local(bool? local = true) => Qs("local", local); public ExistsAliasRequestDescriptor Name(Elastic.Clients.Elasticsearch.Names name) @@ -126,7 +126,7 @@ internal ExistsAliasRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.HEAD; protected override bool SupportsBody => false; public ExistsAliasRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ExistsAliasRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public ExistsAliasRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public ExistsAliasRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public ExistsAliasRequestDescriptor Local(bool? local = true) => Qs("local", local); public ExistsAliasRequestDescriptor Name(Elastic.Clients.Elasticsearch.Names name) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsRequest.g.cs index f2f638b9766..31eb357d361 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ExistsRequest.g.cs @@ -33,7 +33,7 @@ public sealed class ExistsRequestParameters : RequestParameters Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } @@ -61,7 +61,7 @@ public ExistsRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } @@ -91,7 +91,7 @@ internal ExistsRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.HEAD; protected override bool SupportsBody => false; public ExistsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ExistsRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public ExistsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public ExistsRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); public ExistsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public ExistsRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); @@ -122,7 +122,7 @@ internal ExistsRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.HEAD; protected override bool SupportsBody => false; public ExistsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ExistsRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public ExistsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public ExistsRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); public ExistsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public ExistsRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldMappingRequest.g.cs index c24143d612a..19d5d5e509a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FieldMappingRequest.g.cs @@ -33,7 +33,7 @@ public sealed class FieldMappingRequestParameters : RequestParameters Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -62,7 +62,7 @@ public FieldMappingRequest(Elastic.Clients.Elasticsearch.Indices? indices, Elast public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -93,7 +93,7 @@ internal FieldMappingRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.GET; protected override bool SupportsBody => false; public FieldMappingRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public FieldMappingRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public FieldMappingRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public FieldMappingRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public FieldMappingRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); public FieldMappingRequestDescriptor Local(bool? local = true) => Qs("local", local); @@ -133,7 +133,7 @@ internal FieldMappingRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.GET; protected override bool SupportsBody => false; public FieldMappingRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public FieldMappingRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public FieldMappingRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public FieldMappingRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public FieldMappingRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); public FieldMappingRequestDescriptor Local(bool? local = true) => Qs("local", local); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FlushRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FlushRequest.g.cs index 811130c85a8..aee3700256e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FlushRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/FlushRequest.g.cs @@ -33,7 +33,7 @@ public sealed class FlushRequestParameters : RequestParameters Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? Force { get => Q("force"); set => Q("force", value); } @@ -62,7 +62,7 @@ public FlushRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? Force { get => Q("force"); set => Q("force", value); } @@ -85,7 +85,7 @@ public FlushRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.POST; protected override bool SupportsBody => false; public FlushRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public FlushRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public FlushRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public FlushRequestDescriptor Force(bool? force = true) => Qs("force", force); public FlushRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public FlushRequestDescriptor WaitIfOngoing(bool? waitIfOngoing = true) => Qs("wait_if_ongoing", waitIfOngoing); @@ -111,7 +111,7 @@ public FlushRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.POST; protected override bool SupportsBody => false; public FlushRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public FlushRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public FlushRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public FlushRequestDescriptor Force(bool? force = true) => Qs("force", force); public FlushRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public FlushRequestDescriptor WaitIfOngoing(bool? waitIfOngoing = true) => Qs("wait_if_ongoing", waitIfOngoing); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs index 1be37bfec55..bd8e3fb230a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ForcemergeRequest.g.cs @@ -33,7 +33,7 @@ public sealed class ForcemergeRequestParameters : RequestParameters Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? Flush { get => Q("flush"); set => Q("flush", value); } @@ -68,7 +68,7 @@ public ForcemergeRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base( public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? Flush { get => Q("flush"); set => Q("flush", value); } @@ -97,7 +97,7 @@ public ForcemergeRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.POST; protected override bool SupportsBody => false; public ForcemergeRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ForcemergeRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public ForcemergeRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public ForcemergeRequestDescriptor Flush(bool? flush = true) => Qs("flush", flush); public ForcemergeRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public ForcemergeRequestDescriptor MaxNumSegments(long? maxNumSegments) => Qs("max_num_segments", maxNumSegments); @@ -125,7 +125,7 @@ public ForcemergeRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.POST; protected override bool SupportsBody => false; public ForcemergeRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ForcemergeRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public ForcemergeRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public ForcemergeRequestDescriptor Flush(bool? flush = true) => Qs("flush", flush); public ForcemergeRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public ForcemergeRequestDescriptor MaxNumSegments(long? maxNumSegments) => Qs("max_num_segments", maxNumSegments); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetRequest.g.cs index 59af84183ed..733eb79a4d1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/GetRequest.g.cs @@ -33,7 +33,7 @@ public sealed class GetRequestParameters : RequestParameters Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } @@ -51,7 +51,7 @@ public sealed class GetRequestParameters : RequestParameters Q("master_timeout"); set => Q("master_timeout", value); } [JsonIgnore] - public IList? Features { get => Q?>("features"); set => Q("features", value); } + public ICollection? Features { get => Q?>("features"); set => Q("features", value); } } public sealed partial class GetRequest : PlainRequest @@ -67,7 +67,7 @@ public GetRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.R public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } @@ -85,7 +85,7 @@ public GetRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r.R public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } [JsonIgnore] - public IList? Features { get => Q?>("features"); set => Q("features", value); } + public ICollection? Features { get => Q?>("features"); set => Q("features", value); } } public sealed partial class GetRequestDescriptor : RequestDescriptor, GetRequestParameters> @@ -103,8 +103,8 @@ internal GetRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.GET; protected override bool SupportsBody => false; public GetRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public GetRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public GetRequestDescriptor Features(IList? features) => Qs("features", features); + public GetRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public GetRequestDescriptor Features(ICollection? features) => Qs("features", features); public GetRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); public GetRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public GetRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); @@ -136,8 +136,8 @@ internal GetRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.GET; protected override bool SupportsBody => false; public GetRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public GetRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public GetRequestDescriptor Features(IList? features) => Qs("features", features); + public GetRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public GetRequestDescriptor Features(ICollection? features) => Qs("features", features); public GetRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); public GetRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public GetRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MappingRequest.g.cs index 3b8f6649f2e..1b265e45b81 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/MappingRequest.g.cs @@ -33,7 +33,7 @@ public sealed class MappingRequestParameters : RequestParameters Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -62,7 +62,7 @@ public MappingRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r = public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -85,7 +85,7 @@ public MappingRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.GET; protected override bool SupportsBody => false; public MappingRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public MappingRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public MappingRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public MappingRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public MappingRequestDescriptor Local(bool? local = true) => Qs("local", local); public MappingRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); @@ -111,7 +111,7 @@ public MappingRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.GET; protected override bool SupportsBody => false; public MappingRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public MappingRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public MappingRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public MappingRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public MappingRequestDescriptor Local(bool? local = true) => Qs("local", local); public MappingRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenRequest.g.cs index 50a3a661f97..b9fe2dd0520 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/OpenRequest.g.cs @@ -33,7 +33,7 @@ public sealed class OpenRequestParameters : RequestParameters Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -61,7 +61,7 @@ public OpenRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r => r. public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -91,7 +91,7 @@ internal OpenRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.POST; protected override bool SupportsBody => false; public OpenRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public OpenRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public OpenRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public OpenRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public OpenRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public OpenRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); @@ -122,7 +122,7 @@ internal OpenRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.POST; protected override bool SupportsBody => false; public OpenRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public OpenRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public OpenRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public OpenRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public OpenRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public OpenRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs index b32aea72b13..92d16050841 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutIndexTemplateRequest.g.cs @@ -51,7 +51,7 @@ public PutIndexTemplateRequest(Elastic.Clients.Elasticsearch.Name name) : base(r [JsonInclude] [JsonPropertyName("composed_of")] - public IList? ComposedOf { get; set; } + public ICollection? ComposedOf { get; set; } [JsonInclude] [JsonPropertyName("template")] @@ -103,7 +103,7 @@ public PutIndexTemplateRequestDescriptor Name(Elastic.Clients.Elastic private Dictionary? MetaValue { get; set; } - private IList? ComposedOfValue { get; set; } + private ICollection? ComposedOfValue { get; set; } private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamVisibility? DataStreamValue { get; set; } @@ -147,7 +147,7 @@ public PutIndexTemplateRequestDescriptor Meta(Func ComposedOf(IList? composedOf) + public PutIndexTemplateRequestDescriptor ComposedOf(ICollection? composedOf) { ComposedOfValue = composedOf; return Self; @@ -293,7 +293,7 @@ public PutIndexTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name private Dictionary? MetaValue { get; set; } - private IList? ComposedOfValue { get; set; } + private ICollection? ComposedOfValue { get; set; } private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamVisibility? DataStreamValue { get; set; } @@ -337,7 +337,7 @@ public PutIndexTemplateRequestDescriptor Meta(Func? composedOf) + public PutIndexTemplateRequestDescriptor ComposedOf(ICollection? composedOf) { ComposedOfValue = composedOf; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs index 1619c78b8bd..ecba71a675b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutMappingRequest.g.cs @@ -33,7 +33,7 @@ public sealed class PutMappingRequestParameters : RequestParameters Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -61,7 +61,7 @@ public PutMappingRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -85,11 +85,11 @@ public PutMappingRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r [JsonInclude] [JsonPropertyName("dynamic_date_formats")] - public IList? DynamicDateFormats { get; set; } + public ICollection? DynamicDateFormats { get; set; } [JsonInclude] [JsonPropertyName("dynamic_templates")] - public Union?, IList>?>? DynamicTemplates { get; set; } + public Union?, ICollection>?>? DynamicTemplates { get; set; } [JsonInclude] [JsonPropertyName("_field_names")] @@ -135,7 +135,7 @@ internal PutMappingRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.PUT; protected override bool SupportsBody => true; public PutMappingRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public PutMappingRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public PutMappingRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public PutMappingRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public PutMappingRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public PutMappingRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); @@ -170,9 +170,9 @@ public PutMappingRequestDescriptor Indices(Elastic.Clients.Elasticsea private Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? DynamicValue { get; set; } - private IList? DynamicDateFormatsValue { get; set; } + private ICollection? DynamicDateFormatsValue { get; set; } - private Union?, IList>?>? DynamicTemplatesValue { get; set; } + private Union?, ICollection>?>? DynamicTemplatesValue { get; set; } private bool? NumericDetectionValue { get; set; } @@ -270,13 +270,13 @@ public PutMappingRequestDescriptor Dynamic(Elastic.Clients.Elasticsea return Self; } - public PutMappingRequestDescriptor DynamicDateFormats(IList? dynamicDateFormats) + public PutMappingRequestDescriptor DynamicDateFormats(ICollection? dynamicDateFormats) { DynamicDateFormatsValue = dynamicDateFormats; return Self; } - public PutMappingRequestDescriptor DynamicTemplates(Union?, IList>?>? dynamicTemplates) + public PutMappingRequestDescriptor DynamicTemplates(Union?, ICollection>?>? dynamicTemplates) { DynamicTemplatesValue = dynamicTemplates; return Self; @@ -432,7 +432,7 @@ internal PutMappingRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.PUT; protected override bool SupportsBody => true; public PutMappingRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public PutMappingRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public PutMappingRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public PutMappingRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public PutMappingRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); public PutMappingRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); @@ -467,9 +467,9 @@ public PutMappingRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices private Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? DynamicValue { get; set; } - private IList? DynamicDateFormatsValue { get; set; } + private ICollection? DynamicDateFormatsValue { get; set; } - private Union?, IList>?>? DynamicTemplatesValue { get; set; } + private Union?, ICollection>?>? DynamicTemplatesValue { get; set; } private bool? NumericDetectionValue { get; set; } @@ -567,13 +567,13 @@ public PutMappingRequestDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mapping return Self; } - public PutMappingRequestDescriptor DynamicDateFormats(IList? dynamicDateFormats) + public PutMappingRequestDescriptor DynamicDateFormats(ICollection? dynamicDateFormats) { DynamicDateFormatsValue = dynamicDateFormats; return Self; } - public PutMappingRequestDescriptor DynamicTemplates(Union?, IList>?>? dynamicTemplates) + public PutMappingRequestDescriptor DynamicTemplates(Union?, ICollection>?>? dynamicTemplates) { DynamicTemplatesValue = dynamicTemplates; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs index 711c817075c..56f4b33a555 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutTemplateRequest.g.cs @@ -69,7 +69,7 @@ public PutTemplateRequest(Elastic.Clients.Elasticsearch.Name name) : base(r => r [JsonInclude] [JsonPropertyName("index_patterns")] - public IList? IndexPatterns { get; set; } + public ICollection? IndexPatterns { get; set; } [JsonInclude] [JsonPropertyName("mappings")] @@ -114,7 +114,7 @@ public PutTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name private Dictionary? AliasesValue { get; set; } - private IList? IndexPatternsValue { get; set; } + private ICollection? IndexPatternsValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TypeMapping? MappingsValue { get; set; } @@ -134,7 +134,7 @@ public PutTemplateRequestDescriptor Aliases(Func? indexPatterns) + public PutTemplateRequestDescriptor IndexPatterns(ICollection? indexPatterns) { IndexPatternsValue = indexPatterns; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshRequest.g.cs index fd604ad4d7f..4f059f5e369 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/RefreshRequest.g.cs @@ -33,7 +33,7 @@ public sealed class RefreshRequestParameters : RequestParameters Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -56,7 +56,7 @@ public RefreshRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r = public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -73,7 +73,7 @@ public RefreshRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.POST; protected override bool SupportsBody => false; public RefreshRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public RefreshRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public RefreshRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public RefreshRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public RefreshRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) { @@ -97,7 +97,7 @@ public RefreshRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.POST; protected override bool SupportsBody => false; public RefreshRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public RefreshRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public RefreshRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public RefreshRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public RefreshRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs index 82b1f5c658d..f27dc6a24a8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SimulateIndexTemplateRequest.g.cs @@ -61,7 +61,7 @@ public SimulateIndexTemplateRequest(Elastic.Clients.Elasticsearch.Name name) : b [JsonInclude] [JsonPropertyName("composed_of")] - public IList? ComposedOf { get; set; } + public ICollection? ComposedOf { get; set; } [JsonInclude] [JsonPropertyName("template")] @@ -116,7 +116,7 @@ public SimulateIndexTemplateRequestDescriptor Name(Elastic.Clients.El private bool? AllowAutoCreateValue { get; set; } - private IList? ComposedOfValue { get; set; } + private ICollection? ComposedOfValue { get; set; } private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamVisibility? DataStreamValue { get; set; } @@ -166,7 +166,7 @@ public SimulateIndexTemplateRequestDescriptor AllowAutoCreate(bool? a return Self; } - public SimulateIndexTemplateRequestDescriptor ComposedOf(IList? composedOf) + public SimulateIndexTemplateRequestDescriptor ComposedOf(ICollection? composedOf) { ComposedOfValue = composedOf; return Self; @@ -321,7 +321,7 @@ public SimulateIndexTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch private bool? AllowAutoCreateValue { get; set; } - private IList? ComposedOfValue { get; set; } + private ICollection? ComposedOfValue { get; set; } private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamVisibility? DataStreamValue { get; set; } @@ -371,7 +371,7 @@ public SimulateIndexTemplateRequestDescriptor AllowAutoCreate(bool? allowAutoCre return Self; } - public SimulateIndexTemplateRequestDescriptor ComposedOf(IList? composedOf) + public SimulateIndexTemplateRequestDescriptor ComposedOf(ICollection? composedOf) { ComposedOfValue = composedOf; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/StatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/StatsRequest.g.cs index ce01b332183..74739e1cc52 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/StatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/StatsRequest.g.cs @@ -33,7 +33,7 @@ public sealed class StatsRequestParameters : RequestParameters Q("completion_fields"); set => Q("completion_fields", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public Elastic.Clients.Elasticsearch.Fields? FielddataFields { get => Q("fielddata_fields"); set => Q("fielddata_fields", value); } @@ -45,7 +45,7 @@ public sealed class StatsRequestParameters : RequestParameters Q("forbid_closed_indices"); set => Q("forbid_closed_indices", value); } [JsonIgnore] - public IList? Groups { get => Q?>("groups"); set => Q("groups", value); } + public ICollection? Groups { get => Q?>("groups"); set => Q("groups", value); } [JsonIgnore] public bool? IncludeSegmentFileSizes { get => Q("include_segment_file_sizes"); set => Q("include_segment_file_sizes", value); } @@ -82,7 +82,7 @@ public StatsRequest(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clie public Elastic.Clients.Elasticsearch.Fields? CompletionFields { get => Q("completion_fields"); set => Q("completion_fields", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public Elastic.Clients.Elasticsearch.Fields? FielddataFields { get => Q("fielddata_fields"); set => Q("fielddata_fields", value); } @@ -94,7 +94,7 @@ public StatsRequest(Elastic.Clients.Elasticsearch.Indices? indices, Elastic.Clie public bool? ForbidClosedIndices { get => Q("forbid_closed_indices"); set => Q("forbid_closed_indices", value); } [JsonIgnore] - public IList? Groups { get => Q?>("groups"); set => Q("groups", value); } + public ICollection? Groups { get => Q?>("groups"); set => Q("groups", value); } [JsonIgnore] public bool? IncludeSegmentFileSizes { get => Q("include_segment_file_sizes"); set => Q("include_segment_file_sizes", value); } @@ -125,11 +125,11 @@ public StatsRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indices, El protected override HttpMethod HttpMethod => HttpMethod.GET; protected override bool SupportsBody => false; public StatsRequestDescriptor CompletionFields(Elastic.Clients.Elasticsearch.Fields? completionFields) => Qs("completion_fields", completionFields); - public StatsRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public StatsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public StatsRequestDescriptor FielddataFields(Elastic.Clients.Elasticsearch.Fields? fielddataFields) => Qs("fielddata_fields", fielddataFields); public StatsRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Fields? fields) => Qs("fields", fields); public StatsRequestDescriptor ForbidClosedIndices(bool? forbidClosedIndices = true) => Qs("forbid_closed_indices", forbidClosedIndices); - public StatsRequestDescriptor Groups(IList? groups) => Qs("groups", groups); + public StatsRequestDescriptor Groups(ICollection? groups) => Qs("groups", groups); public StatsRequestDescriptor IncludeSegmentFileSizes(bool? includeSegmentFileSizes = true) => Qs("include_segment_file_sizes", includeSegmentFileSizes); public StatsRequestDescriptor IncludeUnloadedSegments(bool? includeUnloadedSegments = true) => Qs("include_unloaded_segments", includeUnloadedSegments); public StatsRequestDescriptor Level(Elastic.Clients.Elasticsearch.Level? level) => Qs("level", level); @@ -169,11 +169,11 @@ public StatsRequestDescriptor(Elastic.Clients.Elasticsearch.Indices? indices, El protected override HttpMethod HttpMethod => HttpMethod.GET; protected override bool SupportsBody => false; public StatsRequestDescriptor CompletionFields(Elastic.Clients.Elasticsearch.Fields? completionFields) => Qs("completion_fields", completionFields); - public StatsRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public StatsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public StatsRequestDescriptor FielddataFields(Elastic.Clients.Elasticsearch.Fields? fielddataFields) => Qs("fielddata_fields", fielddataFields); public StatsRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Fields? fields) => Qs("fields", fields); public StatsRequestDescriptor ForbidClosedIndices(bool? forbidClosedIndices = true) => Qs("forbid_closed_indices", forbidClosedIndices); - public StatsRequestDescriptor Groups(IList? groups) => Qs("groups", groups); + public StatsRequestDescriptor Groups(ICollection? groups) => Qs("groups", groups); public StatsRequestDescriptor IncludeSegmentFileSizes(bool? includeSegmentFileSizes = true) => Qs("include_segment_file_sizes", includeSegmentFileSizes); public StatsRequestDescriptor IncludeUnloadedSegments(bool? includeUnloadedSegments = true) => Qs("include_unloaded_segments", includeUnloadedSegments); public StatsRequestDescriptor Level(Elastic.Clients.Elasticsearch.Level? level) => Qs("level", level); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetRequest.g.cs index b7a0d62cad6..c426f9d2c58 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetRequest.g.cs @@ -93,7 +93,7 @@ public MultiGetRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r [JsonInclude] [JsonPropertyName("docs")] - public IList? Docs { get; set; } + public ICollection? Docs { get; set; } [JsonInclude] [JsonPropertyName("ids")] @@ -124,7 +124,7 @@ public MultiGetRequestDescriptor Index(Elastic.Clients.Elasticsearch. return Self; } - private IList? DocsValue { get; set; } + private ICollection? DocsValue { get; set; } private Core.MGet.OperationDescriptor DocsDescriptor { get; set; } @@ -134,7 +134,7 @@ public MultiGetRequestDescriptor Index(Elastic.Clients.Elasticsearch. private Elastic.Clients.Elasticsearch.Ids? IdsValue { get; set; } - public MultiGetRequestDescriptor Docs(IList? docs) + public MultiGetRequestDescriptor Docs(ICollection? docs) { DocsDescriptor = null; DocsDescriptorAction = null; @@ -244,7 +244,7 @@ public MultiGetRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName? return Self; } - private IList? DocsValue { get; set; } + private ICollection? DocsValue { get; set; } private Core.MGet.OperationDescriptor DocsDescriptor { get; set; } @@ -254,7 +254,7 @@ public MultiGetRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName? private Elastic.Clients.Elasticsearch.Ids? IdsValue { get; set; } - public MultiGetRequestDescriptor Docs(IList? docs) + public MultiGetRequestDescriptor Docs(ICollection? docs) { DocsDescriptor = null; DocsDescriptorAction = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchRequest.g.cs index 3aece40cf1b..368d43e6089 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiSearchRequest.g.cs @@ -38,7 +38,7 @@ public sealed class MultiSearchRequestParameters : RequestParameters Q("ccs_minimize_roundtrips"); set => Q("ccs_minimize_roundtrips", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } @@ -88,7 +88,7 @@ public MultiSearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base public bool? CcsMinimizeRoundtrips { get => Q("ccs_minimize_roundtrips"); set => Q("ccs_minimize_roundtrips", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } @@ -154,7 +154,7 @@ public MultiSearchRequestDescriptor() protected override bool SupportsBody => true; public MultiSearchRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public MultiSearchRequestDescriptor CcsMinimizeRoundtrips(bool? ccsMinimizeRoundtrips = true) => Qs("ccs_minimize_roundtrips", ccsMinimizeRoundtrips); - public MultiSearchRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public MultiSearchRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public MultiSearchRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); public MultiSearchRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public MultiSearchRequestDescriptor MaxConcurrentSearches(long? maxConcurrentSearches) => Qs("max_concurrent_searches", maxConcurrentSearches); @@ -216,7 +216,7 @@ public MultiSearchRequestDescriptor() protected override bool SupportsBody => true; public MultiSearchRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); public MultiSearchRequestDescriptor CcsMinimizeRoundtrips(bool? ccsMinimizeRoundtrips = true) => Qs("ccs_minimize_roundtrips", ccsMinimizeRoundtrips); - public MultiSearchRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public MultiSearchRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public MultiSearchRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); public MultiSearchRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public MultiSearchRequestDescriptor MaxConcurrentSearches(long? maxConcurrentSearches) => Qs("max_concurrent_searches", maxConcurrentSearches); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalRequest.g.cs index ae10d7068ea..3a636ec944a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/RankEvalRequest.g.cs @@ -33,7 +33,7 @@ public sealed class RankEvalRequestParameters : RequestParameters Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -59,7 +59,7 @@ public RankEvalRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -69,7 +69,7 @@ public RankEvalRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r [JsonInclude] [JsonPropertyName("requests")] - public IList Requests { get; set; } + public ICollection Requests { get; set; } [JsonInclude] [JsonPropertyName("metric")] @@ -87,7 +87,7 @@ public RankEvalRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.POST; protected override bool SupportsBody => true; public RankEvalRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public RankEvalRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public RankEvalRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public RankEvalRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public RankEvalRequestDescriptor SearchType(string? searchType) => Qs("search_type", searchType); public RankEvalRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) @@ -96,7 +96,7 @@ public RankEvalRequestDescriptor Indices(Elastic.Clients.Elasticsearc return Self; } - private IList RequestsValue { get; set; } + private ICollection RequestsValue { get; set; } private Core.RankEval.RankEvalRequestItemDescriptor RequestsDescriptor { get; set; } @@ -110,7 +110,7 @@ public RankEvalRequestDescriptor Indices(Elastic.Clients.Elasticsearc private Action MetricDescriptorAction { get; set; } - public RankEvalRequestDescriptor Requests(IList requests) + public RankEvalRequestDescriptor Requests(ICollection requests) { RequestsDescriptor = null; RequestsDescriptorAction = null; @@ -235,7 +235,7 @@ public RankEvalRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.POST; protected override bool SupportsBody => true; public RankEvalRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public RankEvalRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public RankEvalRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public RankEvalRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public RankEvalRequestDescriptor SearchType(string? searchType) => Qs("search_type", searchType); public RankEvalRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) @@ -244,7 +244,7 @@ public RankEvalRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? return Self; } - private IList RequestsValue { get; set; } + private ICollection RequestsValue { get; set; } private Core.RankEval.RankEvalRequestItemDescriptor RequestsDescriptor { get; set; } @@ -258,7 +258,7 @@ public RankEvalRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? private Action MetricDescriptorAction { get; set; } - public RankEvalRequestDescriptor Requests(IList requests) + public RankEvalRequestDescriptor Requests(ICollection requests) { RequestsDescriptor = null; RequestsDescriptorAction = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs index c2802d1add2..eb98dab046e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchRequest.g.cs @@ -54,7 +54,7 @@ public sealed class SearchRequestParameters : RequestParameters Q("df"); set => Q("df", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } @@ -173,13 +173,13 @@ public override SearchRequest Read(ref Utf8JsonReader reader, Type typeToConvert if (property == "indices_boost") { - variant.IndicesBoost = JsonSerializer.Deserialize>?>(ref reader, options); + variant.IndicesBoost = JsonSerializer.Deserialize>?>(ref reader, options); continue; } if (property == "docvalue_fields") { - variant.DocvalueFields = JsonSerializer.Deserialize?>(ref reader, options); + variant.DocvalueFields = JsonSerializer.Deserialize?>(ref reader, options); continue; } @@ -215,7 +215,7 @@ public override SearchRequest Read(ref Utf8JsonReader reader, Type typeToConvert if (property == "rescore") { - variant.Rescore = JsonSerializer.Deserialize?>(ref reader, options); + variant.Rescore = JsonSerializer.Deserialize?>(ref reader, options); continue; } @@ -227,7 +227,7 @@ public override SearchRequest Read(ref Utf8JsonReader reader, Type typeToConvert if (property == "search_after") { - variant.SearchAfter = JsonSerializer.Deserialize?>(ref reader, options); + variant.SearchAfter = JsonSerializer.Deserialize?>(ref reader, options); continue; } @@ -245,7 +245,7 @@ public override SearchRequest Read(ref Utf8JsonReader reader, Type typeToConvert if (property == "sort") { - variant.Sort = JsonSerializer.Deserialize?>(ref reader, options); + variant.Sort = JsonSerializer.Deserialize?>(ref reader, options); continue; } @@ -257,7 +257,7 @@ public override SearchRequest Read(ref Utf8JsonReader reader, Type typeToConvert if (property == "fields") { - variant.Fields = JsonSerializer.Deserialize?>(ref reader, options); + variant.Fields = JsonSerializer.Deserialize?>(ref reader, options); continue; } @@ -317,7 +317,7 @@ public override SearchRequest Read(ref Utf8JsonReader reader, Type typeToConvert if (property == "stats") { - variant.Stats = JsonSerializer.Deserialize?>(ref reader, options); + variant.Stats = JsonSerializer.Deserialize?>(ref reader, options); continue; } } @@ -564,7 +564,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => public string? Df { get => Q("df"); set => Q("df", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreThrottled { get => Q("ignore_throttled"); set => Q("ignore_throttled", value); } @@ -656,11 +656,11 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => [JsonInclude] [JsonPropertyName("indices_boost")] - public IList>? IndicesBoost { get; set; } + public ICollection>? IndicesBoost { get; set; } [JsonInclude] [JsonPropertyName("docvalue_fields")] - public IList? DocvalueFields { get; set; } + public ICollection? DocvalueFields { get; set; } [JsonInclude] [JsonPropertyName("knn")] @@ -684,7 +684,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => [JsonInclude] [JsonPropertyName("rescore")] - public IList? Rescore { get; set; } + public ICollection? Rescore { get; set; } [JsonInclude] [JsonPropertyName("script_fields")] @@ -692,7 +692,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => [JsonInclude] [JsonPropertyName("search_after")] - public IList? SearchAfter { get; set; } + public ICollection? SearchAfter { get; set; } [JsonInclude] [JsonPropertyName("size")] @@ -705,7 +705,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => [JsonInclude] [JsonPropertyName("sort")] [JsonConverter(typeof(SortConverter))] - public IList? Sort { get; set; } + public ICollection? Sort { get; set; } [JsonInclude] [JsonPropertyName("_source")] @@ -713,7 +713,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => [JsonInclude] [JsonPropertyName("fields")] - public IList? Fields { get; set; } + public ICollection? Fields { get; set; } [JsonInclude] [JsonPropertyName("suggest")] @@ -753,7 +753,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => [JsonInclude] [JsonPropertyName("stats")] - public IList? Stats { get; set; } + public ICollection? Stats { get; set; } } public sealed partial class SearchRequest : SearchRequest @@ -787,7 +787,7 @@ public SearchRequestDescriptor(Elasticsearch.Indices? indices) : base(r => r.Opt public SearchRequestDescriptor CcsMinimizeRoundtrips(bool? ccsMinimizeRoundtrips = true) => Qs("ccs_minimize_roundtrips", ccsMinimizeRoundtrips); public SearchRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); public SearchRequestDescriptor Df(string? df) => Qs("df", df); - public SearchRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public SearchRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public SearchRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); public SearchRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public SearchRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); @@ -824,7 +824,7 @@ public SearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch. private Action> CollapseDescriptorAction { get; set; } - private IList? DocvalueFieldsValue { get; set; } + private ICollection? DocvalueFieldsValue { get; set; } private QueryDsl.FieldAndFormatDescriptor DocvalueFieldsDescriptor { get; set; } @@ -832,7 +832,7 @@ public SearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch. private Action>[] DocvalueFieldsDescriptorActions { get; set; } - private IList? FieldsValue { get; set; } + private ICollection? FieldsValue { get; set; } private QueryDsl.FieldAndFormatDescriptor FieldsDescriptor { get; set; } @@ -864,7 +864,7 @@ public SearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch. private Action> QueryDescriptorAction { get; set; } - private IList? RescoreValue { get; set; } + private ICollection? RescoreValue { get; set; } private Core.Search.RescoreDescriptor RescoreDescriptor { get; set; } @@ -886,7 +886,7 @@ public SearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch. private int? FromValue { get; set; } - private IList>? IndicesBoostValue { get; set; } + private ICollection>? IndicesBoostValue { get; set; } private double? MinScoreValue { get; set; } @@ -902,15 +902,15 @@ public SearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch. private Dictionary? ScriptFieldsValue { get; set; } - private IList? SearchAfterValue { get; set; } + private ICollection? SearchAfterValue { get; set; } private bool? SeqNoPrimaryTermValue { get; set; } private int? SizeValue { get; set; } - private IList? SortValue { get; set; } + private ICollection? SortValue { get; set; } - private IList? StatsValue { get; set; } + private ICollection? StatsValue { get; set; } private Elastic.Clients.Elasticsearch.Fields? StoredFieldsValue { get; set; } @@ -978,7 +978,7 @@ public SearchRequestDescriptor Collapse(Action DocvalueFields(IList? docvalueFields) + public SearchRequestDescriptor DocvalueFields(ICollection? docvalueFields) { DocvalueFieldsDescriptor = null; DocvalueFieldsDescriptorAction = null; @@ -1014,7 +1014,7 @@ public SearchRequestDescriptor DocvalueFields(params Action Fields(IList? fields) + public SearchRequestDescriptor Fields(ICollection? fields) { FieldsDescriptor = null; FieldsDescriptorAction = null; @@ -1146,7 +1146,7 @@ public SearchRequestDescriptor Query(Action Rescore(IList? rescore) + public SearchRequestDescriptor Rescore(ICollection? rescore) { RescoreDescriptor = null; RescoreDescriptorAction = null; @@ -1230,7 +1230,7 @@ public SearchRequestDescriptor From(int? from) return Self; } - public SearchRequestDescriptor IndicesBoost(IList>? indicesBoost) + public SearchRequestDescriptor IndicesBoost(ICollection>? indicesBoost) { IndicesBoostValue = indicesBoost; return Self; @@ -1284,7 +1284,7 @@ public SearchRequestDescriptor ScriptFields(Func SearchAfter(IList? searchAfter) + public SearchRequestDescriptor SearchAfter(ICollection? searchAfter) { SearchAfterValue = searchAfter; return Self; @@ -1302,13 +1302,13 @@ public SearchRequestDescriptor Size(int? size) return Self; } - public SearchRequestDescriptor Sort(IList? sort) + public SearchRequestDescriptor Sort(ICollection? sort) { SortValue = sort; return Self; } - public SearchRequestDescriptor Stats(IList? stats) + public SearchRequestDescriptor Stats(ICollection? stats) { StatsValue = stats; return Self; @@ -1762,7 +1762,7 @@ public SearchRequestDescriptor() public SearchRequestDescriptor CcsMinimizeRoundtrips(bool? ccsMinimizeRoundtrips = true) => Qs("ccs_minimize_roundtrips", ccsMinimizeRoundtrips); public SearchRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); public SearchRequestDescriptor Df(string? df) => Qs("df", df); - public SearchRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public SearchRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public SearchRequestDescriptor IgnoreThrottled(bool? ignoreThrottled = true) => Qs("ignore_throttled", ignoreThrottled); public SearchRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public SearchRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); @@ -1799,7 +1799,7 @@ public SearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? in private Action CollapseDescriptorAction { get; set; } - private IList? DocvalueFieldsValue { get; set; } + private ICollection? DocvalueFieldsValue { get; set; } private QueryDsl.FieldAndFormatDescriptor DocvalueFieldsDescriptor { get; set; } @@ -1807,7 +1807,7 @@ public SearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? in private Action[] DocvalueFieldsDescriptorActions { get; set; } - private IList? FieldsValue { get; set; } + private ICollection? FieldsValue { get; set; } private QueryDsl.FieldAndFormatDescriptor FieldsDescriptor { get; set; } @@ -1839,7 +1839,7 @@ public SearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? in private Action QueryDescriptorAction { get; set; } - private IList? RescoreValue { get; set; } + private ICollection? RescoreValue { get; set; } private Core.Search.RescoreDescriptor RescoreDescriptor { get; set; } @@ -1861,7 +1861,7 @@ public SearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? in private int? FromValue { get; set; } - private IList>? IndicesBoostValue { get; set; } + private ICollection>? IndicesBoostValue { get; set; } private double? MinScoreValue { get; set; } @@ -1877,15 +1877,15 @@ public SearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? in private Dictionary? ScriptFieldsValue { get; set; } - private IList? SearchAfterValue { get; set; } + private ICollection? SearchAfterValue { get; set; } private bool? SeqNoPrimaryTermValue { get; set; } private int? SizeValue { get; set; } - private IList? SortValue { get; set; } + private ICollection? SortValue { get; set; } - private IList? StatsValue { get; set; } + private ICollection? StatsValue { get; set; } private Elastic.Clients.Elasticsearch.Fields? StoredFieldsValue { get; set; } @@ -1953,7 +1953,7 @@ public SearchRequestDescriptor Collapse(Action? docvalueFields) + public SearchRequestDescriptor DocvalueFields(ICollection? docvalueFields) { DocvalueFieldsDescriptor = null; DocvalueFieldsDescriptorAction = null; @@ -1989,7 +1989,7 @@ public SearchRequestDescriptor DocvalueFields(params Action? fields) + public SearchRequestDescriptor Fields(ICollection? fields) { FieldsDescriptor = null; FieldsDescriptorAction = null; @@ -2121,7 +2121,7 @@ public SearchRequestDescriptor Query(Action c return Self; } - public SearchRequestDescriptor Rescore(IList? rescore) + public SearchRequestDescriptor Rescore(ICollection? rescore) { RescoreDescriptor = null; RescoreDescriptorAction = null; @@ -2205,7 +2205,7 @@ public SearchRequestDescriptor From(int? from) return Self; } - public SearchRequestDescriptor IndicesBoost(IList>? indicesBoost) + public SearchRequestDescriptor IndicesBoost(ICollection>? indicesBoost) { IndicesBoostValue = indicesBoost; return Self; @@ -2259,7 +2259,7 @@ public SearchRequestDescriptor ScriptFields(Func? searchAfter) + public SearchRequestDescriptor SearchAfter(ICollection? searchAfter) { SearchAfterValue = searchAfter; return Self; @@ -2277,13 +2277,13 @@ public SearchRequestDescriptor Size(int? size) return Self; } - public SearchRequestDescriptor Sort(IList? sort) + public SearchRequestDescriptor Sort(ICollection? sort) { SortValue = sort; return Self; } - public SearchRequestDescriptor Stats(IList? stats) + public SearchRequestDescriptor Stats(ICollection? stats) { StatsValue = stats; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs index 203813cb608..c856698e1c0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchShardsRequest.g.cs @@ -33,7 +33,7 @@ public sealed class SearchShardsRequestParameters : RequestParameters Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -65,7 +65,7 @@ public SearchShardsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : bas public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -91,7 +91,7 @@ public SearchShardsRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.POST; protected override bool SupportsBody => false; public SearchShardsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public SearchShardsRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public SearchShardsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public SearchShardsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public SearchShardsRequestDescriptor Local(bool? local = true) => Qs("local", local); public SearchShardsRequestDescriptor Preference(string? preference) => Qs("preference", preference); @@ -118,7 +118,7 @@ public SearchShardsRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.POST; protected override bool SupportsBody => false; public SearchShardsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public SearchShardsRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public SearchShardsRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public SearchShardsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public SearchShardsRequestDescriptor Local(bool? local = true) => Qs("local", local); public SearchShardsRequestDescriptor Preference(string? preference) => Qs("preference", preference); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs index 44da21d64c4..e44b8244de6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/UpdateByQueryRequest.g.cs @@ -45,7 +45,7 @@ public sealed class UpdateByQueryRequestParameters : RequestParameters Q("df"); set => Q("df", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public long? From { get => Q("from"); set => Q("from", value); } @@ -90,10 +90,10 @@ public sealed class UpdateByQueryRequestParameters : RequestParameters Q("slices"); set => Q("slices", value); } [JsonIgnore] - public IList? Sort { get => Q?>("sort"); set => Q("sort", value); } + public ICollection? Sort { get => Q?>("sort"); set => Q("sort", value); } [JsonIgnore] - public IList? Stats { get => Q?>("stats"); set => Q("stats", value); } + public ICollection? Stats { get => Q?>("stats"); set => Q("stats", value); } [JsonIgnore] public long? TerminateAfter { get => Q("terminate_after"); set => Q("terminate_after", value); } @@ -139,7 +139,7 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas public string? Df { get => Q("df"); set => Q("df", value); } [JsonIgnore] - public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public ICollection? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public long? From { get => Q("from"); set => Q("from", value); } @@ -184,10 +184,10 @@ public UpdateByQueryRequest(Elastic.Clients.Elasticsearch.Indices indices) : bas public Elastic.Clients.Elasticsearch.Slices? Slices { get => Q("slices"); set => Q("slices", value); } [JsonIgnore] - public IList? Sort { get => Q?>("sort"); set => Q("sort", value); } + public ICollection? Sort { get => Q?>("sort"); set => Q("sort", value); } [JsonIgnore] - public IList? Stats { get => Q?>("stats"); set => Q("stats", value); } + public ICollection? Stats { get => Q?>("stats"); set => Q("stats", value); } [JsonIgnore] public long? TerminateAfter { get => Q("terminate_after"); set => Q("terminate_after", value); } @@ -247,7 +247,7 @@ internal UpdateByQueryRequestDescriptor() public UpdateByQueryRequestDescriptor Analyzer(string? analyzer) => Qs("analyzer", analyzer); public UpdateByQueryRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); public UpdateByQueryRequestDescriptor Df(string? df) => Qs("df", df); - public UpdateByQueryRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public UpdateByQueryRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public UpdateByQueryRequestDescriptor From(long? from) => Qs("from", from); public UpdateByQueryRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public UpdateByQueryRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); @@ -262,8 +262,8 @@ internal UpdateByQueryRequestDescriptor() public UpdateByQueryRequestDescriptor SearchTimeout(Elastic.Clients.Elasticsearch.Duration? searchTimeout) => Qs("search_timeout", searchTimeout); public UpdateByQueryRequestDescriptor SearchType(Elastic.Clients.Elasticsearch.SearchType? searchType) => Qs("search_type", searchType); public UpdateByQueryRequestDescriptor Slices(Elastic.Clients.Elasticsearch.Slices? slices) => Qs("slices", slices); - public UpdateByQueryRequestDescriptor Sort(IList? sort) => Qs("sort", sort); - public UpdateByQueryRequestDescriptor Stats(IList? stats) => Qs("stats", stats); + public UpdateByQueryRequestDescriptor Sort(ICollection? sort) => Qs("sort", sort); + public UpdateByQueryRequestDescriptor Stats(ICollection? stats) => Qs("stats", stats); public UpdateByQueryRequestDescriptor TerminateAfter(long? terminateAfter) => Qs("terminate_after", terminateAfter); public UpdateByQueryRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); public UpdateByQueryRequestDescriptor Version(bool? version = true) => Qs("version", version); @@ -436,7 +436,7 @@ internal UpdateByQueryRequestDescriptor() public UpdateByQueryRequestDescriptor Analyzer(string? analyzer) => Qs("analyzer", analyzer); public UpdateByQueryRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); public UpdateByQueryRequestDescriptor Df(string? df) => Qs("df", df); - public UpdateByQueryRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public UpdateByQueryRequestDescriptor ExpandWildcards(ICollection? expandWildcards) => Qs("expand_wildcards", expandWildcards); public UpdateByQueryRequestDescriptor From(long? from) => Qs("from", from); public UpdateByQueryRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public UpdateByQueryRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); @@ -451,8 +451,8 @@ internal UpdateByQueryRequestDescriptor() public UpdateByQueryRequestDescriptor SearchTimeout(Elastic.Clients.Elasticsearch.Duration? searchTimeout) => Qs("search_timeout", searchTimeout); public UpdateByQueryRequestDescriptor SearchType(Elastic.Clients.Elasticsearch.SearchType? searchType) => Qs("search_type", searchType); public UpdateByQueryRequestDescriptor Slices(Elastic.Clients.Elasticsearch.Slices? slices) => Qs("slices", slices); - public UpdateByQueryRequestDescriptor Sort(IList? sort) => Qs("sort", sort); - public UpdateByQueryRequestDescriptor Stats(IList? stats) => Qs("stats", stats); + public UpdateByQueryRequestDescriptor Sort(ICollection? sort) => Qs("sort", sort); + public UpdateByQueryRequestDescriptor Stats(ICollection? stats) => Qs("stats", stats); public UpdateByQueryRequestDescriptor TerminateAfter(long? terminateAfter) => Qs("terminate_after", terminateAfter); public UpdateByQueryRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Duration? timeout) => Qs("timeout", timeout); public UpdateByQueryRequestDescriptor Version(bool? version = true) => Qs("version", version); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/AggregateOrderConverter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/AggregateOrderConverter.g.cs index 401cf74c044..d2e1316f828 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/AggregateOrderConverter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/AggregateOrderConverter.g.cs @@ -26,6 +26,6 @@ #nullable restore namespace Elastic.Clients.Elasticsearch; -internal sealed class AggregateOrderConverter : IEnumerableSingleOrManyConverter> +internal sealed class AggregateOrderConverter : ICollectionSingleOrManyConverter> { } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeAggregation.g.cs index 99d7435a5b8..589147c71c9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeAggregation.g.cs @@ -67,7 +67,7 @@ public override CompositeAggregation Read(ref Utf8JsonReader reader, Type typeTo if (reader.ValueTextEquals("sources")) { reader.Read(); - var value = JsonSerializer.Deserialize>?>(ref reader, options); + var value = JsonSerializer.Deserialize>?>(ref reader, options); if (value is not null) { agg.Sources = value; @@ -167,7 +167,7 @@ internal CompositeAggregation() public int? Size { get; set; } - public IList>? Sources { get; set; } + public ICollection>? Sources { get; set; } } public sealed partial class CompositeAggregationDescriptor : SerializableDescriptor> @@ -189,7 +189,7 @@ public CompositeAggregationDescriptor() : base() private int? SizeValue { get; set; } - private IList>? SourcesValue { get; set; } + private ICollection>? SourcesValue { get; set; } public CompositeAggregationDescriptor Aggregations(Elastic.Clients.Elasticsearch.Aggregations.AggregationDictionary? aggregations) { @@ -233,7 +233,7 @@ public CompositeAggregationDescriptor Size(int? size) return Self; } - public CompositeAggregationDescriptor Sources(IList>? sources) + public CompositeAggregationDescriptor Sources(ICollection>? sources) { SourcesValue = sources; return Self; @@ -308,7 +308,7 @@ public CompositeAggregationDescriptor() : base() private int? SizeValue { get; set; } - private IList>? SourcesValue { get; set; } + private ICollection>? SourcesValue { get; set; } public CompositeAggregationDescriptor Aggregations(Elastic.Clients.Elasticsearch.Aggregations.AggregationDictionary? aggregations) { @@ -352,7 +352,7 @@ public CompositeAggregationDescriptor Size(int? size) return Self; } - public CompositeAggregationDescriptor Sources(IList>? sources) + public CompositeAggregationDescriptor Sources(ICollection>? sources) { SourcesValue = sources; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateHistogramAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateHistogramAggregation.g.cs index fe511338298..3d0dd035ff0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateHistogramAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateHistogramAggregation.g.cs @@ -322,7 +322,7 @@ internal DateHistogramAggregation() public Elastic.Clients.Elasticsearch.Duration? Offset { get; set; } [JsonConverter(typeof(AggregateOrderConverter))] - public IList>? Order { get; set; } + public ICollection>? Order { get; set; } public Dictionary? Params { get; set; } @@ -360,7 +360,7 @@ public DateHistogramAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Duration? OffsetValue { get; set; } - private IList>? OrderValue { get; set; } + private ICollection>? OrderValue { get; set; } private Dictionary? ParamsValue { get; set; } @@ -446,7 +446,7 @@ public DateHistogramAggregationDescriptor Offset(Elastic.Clients.Elas return Self; } - public DateHistogramAggregationDescriptor Order(IList>? order) + public DateHistogramAggregationDescriptor Order(ICollection>? order) { OrderValue = order; return Self; @@ -597,7 +597,7 @@ public DateHistogramAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Duration? OffsetValue { get; set; } - private IList>? OrderValue { get; set; } + private ICollection>? OrderValue { get; set; } private Dictionary? ParamsValue { get; set; } @@ -689,7 +689,7 @@ public DateHistogramAggregationDescriptor Offset(Elastic.Clients.Elasticsearch.D return Self; } - public DateHistogramAggregationDescriptor Order(IList>? order) + public DateHistogramAggregationDescriptor Order(ICollection>? order) { OrderValue = order; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateRangeAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateRangeAggregation.g.cs index 89a886310e2..31bb4155cb7 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateRangeAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/DateRangeAggregation.g.cs @@ -79,7 +79,7 @@ public override DateRangeAggregation Read(ref Utf8JsonReader reader, Type typeTo if (reader.ValueTextEquals("ranges")) { reader.Read(); - var value = JsonSerializer.Deserialize?>(ref reader, options); + var value = JsonSerializer.Deserialize?>(ref reader, options); if (value is not null) { agg.Ranges = value; @@ -205,7 +205,7 @@ internal DateRangeAggregation() public override string? Name { get; internal set; } - public IList? Ranges { get; set; } + public ICollection? Ranges { get; set; } public string? TimeZone { get; set; } } @@ -231,7 +231,7 @@ public DateRangeAggregationDescriptor() : base() private FieldValue? MissingValue { get; set; } - private IList? RangesValue { get; set; } + private ICollection? RangesValue { get; set; } private DateRangeExpressionDescriptor RangesDescriptor { get; set; } @@ -295,7 +295,7 @@ public DateRangeAggregationDescriptor Missing(FieldValue? missing) return Self; } - public DateRangeAggregationDescriptor Ranges(IList? ranges) + public DateRangeAggregationDescriptor Ranges(ICollection? ranges) { RangesDescriptor = null; RangesDescriptorAction = null; @@ -445,7 +445,7 @@ public DateRangeAggregationDescriptor() : base() private FieldValue? MissingValue { get; set; } - private IList? RangesValue { get; set; } + private ICollection? RangesValue { get; set; } private DateRangeExpressionDescriptor RangesDescriptor { get; set; } @@ -515,7 +515,7 @@ public DateRangeAggregationDescriptor Missing(FieldValue? missing) return Self; } - public DateRangeAggregationDescriptor Ranges(IList? ranges) + public DateRangeAggregationDescriptor Ranges(ICollection? ranges) { RangesDescriptor = null; RangesDescriptorAction = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HistogramAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HistogramAggregation.g.cs index fa847c309b1..12b4a7e3719 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HistogramAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/HistogramAggregation.g.cs @@ -266,7 +266,7 @@ internal HistogramAggregation() public double? Offset { get; set; } [JsonConverter(typeof(AggregateOrderConverter))] - public IList>? Order { get; set; } + public ICollection>? Order { get; set; } public Elastic.Clients.Elasticsearch.Script? Script { get; set; } } @@ -298,7 +298,7 @@ public HistogramAggregationDescriptor() : base() private double? OffsetValue { get; set; } - private IList>? OrderValue { get; set; } + private ICollection>? OrderValue { get; set; } private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } @@ -374,7 +374,7 @@ public HistogramAggregationDescriptor Offset(double? offset) return Self; } - public HistogramAggregationDescriptor Order(IList>? order) + public HistogramAggregationDescriptor Order(ICollection>? order) { OrderValue = order; return Self; @@ -493,7 +493,7 @@ public HistogramAggregationDescriptor() : base() private double? OffsetValue { get; set; } - private IList>? OrderValue { get; set; } + private ICollection>? OrderValue { get; set; } private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } @@ -575,7 +575,7 @@ public HistogramAggregationDescriptor Offset(double? offset) return Self; } - public HistogramAggregationDescriptor Order(IList>? order) + public HistogramAggregationDescriptor Order(ICollection>? order) { OrderValue = order; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpRangeAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpRangeAggregation.g.cs index 5f0946a89ee..f91a591c126 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpRangeAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/IpRangeAggregation.g.cs @@ -55,7 +55,7 @@ public override IpRangeAggregation Read(ref Utf8JsonReader reader, Type typeToCo if (reader.ValueTextEquals("ranges")) { reader.Read(); - var value = JsonSerializer.Deserialize?>(ref reader, options); + var value = JsonSerializer.Deserialize?>(ref reader, options); if (value is not null) { agg.Ranges = value; @@ -147,7 +147,7 @@ internal IpRangeAggregation() public override string? Name { get; internal set; } - public IList? Ranges { get; set; } + public ICollection? Ranges { get; set; } } public sealed partial class IpRangeAggregationDescriptor : SerializableDescriptor> @@ -167,7 +167,7 @@ public IpRangeAggregationDescriptor() : base() private Dictionary? MetaValue { get; set; } - private IList? RangesValue { get; set; } + private ICollection? RangesValue { get; set; } private IpRangeAggregationRangeDescriptor RangesDescriptor { get; set; } @@ -217,7 +217,7 @@ public IpRangeAggregationDescriptor Meta(Func Ranges(IList? ranges) + public IpRangeAggregationDescriptor Ranges(ICollection? ranges) { RangesDescriptor = null; RangesDescriptorAction = null; @@ -339,7 +339,7 @@ public IpRangeAggregationDescriptor() : base() private Dictionary? MetaValue { get; set; } - private IList? RangesValue { get; set; } + private ICollection? RangesValue { get; set; } private IpRangeAggregationRangeDescriptor RangesDescriptor { get; set; } @@ -395,7 +395,7 @@ public IpRangeAggregationDescriptor Meta(Func, return Self; } - public IpRangeAggregationDescriptor Ranges(IList? ranges) + public IpRangeAggregationDescriptor Ranges(ICollection? ranges) { RangesDescriptor = null; RangesDescriptorAction = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MultiTermsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MultiTermsAggregation.g.cs index d081cd51b89..e6337496bc4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MultiTermsAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/MultiTermsAggregation.g.cs @@ -127,7 +127,7 @@ public override MultiTermsAggregation Read(ref Utf8JsonReader reader, Type typeT if (reader.ValueTextEquals("terms")) { reader.Read(); - var value = JsonSerializer.Deserialize>(ref reader, options); + var value = JsonSerializer.Deserialize>(ref reader, options); if (value is not null) { agg.Terms = value; @@ -254,7 +254,7 @@ internal MultiTermsAggregation() public override string? Name { get; internal set; } [JsonConverter(typeof(AggregateOrderConverter))] - public IList>? Order { get; set; } + public ICollection>? Order { get; set; } public long? ShardMinDocCount { get; set; } @@ -264,7 +264,7 @@ internal MultiTermsAggregation() public int? Size { get; set; } - public IList Terms { get; set; } + public ICollection Terms { get; set; } } public sealed partial class MultiTermsAggregationDescriptor : SerializableDescriptor> @@ -280,7 +280,7 @@ public MultiTermsAggregationDescriptor() : base() private Action> AggregationsDescriptorAction { get; set; } - private IList TermsValue { get; set; } + private ICollection TermsValue { get; set; } private MultiTermLookupDescriptor TermsDescriptor { get; set; } @@ -294,7 +294,7 @@ public MultiTermsAggregationDescriptor() : base() private long? MinDocCountValue { get; set; } - private IList>? OrderValue { get; set; } + private ICollection>? OrderValue { get; set; } private long? ShardMinDocCountValue { get; set; } @@ -328,7 +328,7 @@ public MultiTermsAggregationDescriptor Aggregations(Action Terms(IList terms) + public MultiTermsAggregationDescriptor Terms(ICollection terms) { TermsDescriptor = null; TermsDescriptorAction = null; @@ -382,7 +382,7 @@ public MultiTermsAggregationDescriptor MinDocCount(long? minDocCount) return Self; } - public MultiTermsAggregationDescriptor Order(IList>? order) + public MultiTermsAggregationDescriptor Order(ICollection>? order) { OrderValue = order; return Self; @@ -530,7 +530,7 @@ public MultiTermsAggregationDescriptor() : base() private Action AggregationsDescriptorAction { get; set; } - private IList TermsValue { get; set; } + private ICollection TermsValue { get; set; } private MultiTermLookupDescriptor TermsDescriptor { get; set; } @@ -544,7 +544,7 @@ public MultiTermsAggregationDescriptor() : base() private long? MinDocCountValue { get; set; } - private IList>? OrderValue { get; set; } + private ICollection>? OrderValue { get; set; } private long? ShardMinDocCountValue { get; set; } @@ -578,7 +578,7 @@ public MultiTermsAggregationDescriptor Aggregations(Action terms) + public MultiTermsAggregationDescriptor Terms(ICollection terms) { TermsDescriptor = null; TermsDescriptorAction = null; @@ -632,7 +632,7 @@ public MultiTermsAggregationDescriptor MinDocCount(long? minDocCount) return Self; } - public MultiTermsAggregationDescriptor Order(IList>? order) + public MultiTermsAggregationDescriptor Order(ICollection>? order) { OrderValue = order; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesBucketAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesBucketAggregation.g.cs index 43298299845..5947178c02f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesBucketAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/PercentilesBucketAggregation.g.cs @@ -67,7 +67,7 @@ public override PercentilesBucketAggregation Read(ref Utf8JsonReader reader, Typ if (reader.ValueTextEquals("percents")) { reader.Read(); - var value = JsonSerializer.Deserialize?>(ref reader, options); + var value = JsonSerializer.Deserialize?>(ref reader, options); if (value is not null) { agg.Percents = value; @@ -148,7 +148,7 @@ internal PercentilesBucketAggregation() public override string? Name { get; internal set; } - public IList? Percents { get; set; } + public ICollection? Percents { get; set; } } public sealed partial class PercentilesBucketAggregationDescriptor : SerializableDescriptor @@ -164,7 +164,7 @@ public PercentilesBucketAggregationDescriptor() : base() private Dictionary? MetaValue { get; set; } - private IList? PercentsValue { get; set; } + private ICollection? PercentsValue { get; set; } public PercentilesBucketAggregationDescriptor Format(string? format) { @@ -184,7 +184,7 @@ public PercentilesBucketAggregationDescriptor Meta(Func? percents) + public PercentilesBucketAggregationDescriptor Percents(ICollection? percents) { PercentsValue = percents; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RangeAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RangeAggregation.g.cs index 56e3e0e15c4..f6c89878f56 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RangeAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/RangeAggregation.g.cs @@ -79,7 +79,7 @@ public override RangeAggregation Read(ref Utf8JsonReader reader, Type typeToConv if (reader.ValueTextEquals("ranges")) { reader.Read(); - var value = JsonSerializer.Deserialize?>(ref reader, options); + var value = JsonSerializer.Deserialize?>(ref reader, options); if (value is not null) { agg.Ranges = value; @@ -205,7 +205,7 @@ internal RangeAggregation() public override string? Name { get; internal set; } - public IList? Ranges { get; set; } + public ICollection? Ranges { get; set; } public Elastic.Clients.Elasticsearch.Script? Script { get; set; } } @@ -231,7 +231,7 @@ public RangeAggregationDescriptor() : base() private int? MissingValue { get; set; } - private IList? RangesValue { get; set; } + private ICollection? RangesValue { get; set; } private AggregationRangeDescriptor RangesDescriptor { get; set; } @@ -295,7 +295,7 @@ public RangeAggregationDescriptor Missing(int? missing) return Self; } - public RangeAggregationDescriptor Ranges(IList? ranges) + public RangeAggregationDescriptor Ranges(ICollection? ranges) { RangesDescriptor = null; RangesDescriptorAction = null; @@ -445,7 +445,7 @@ public RangeAggregationDescriptor() : base() private int? MissingValue { get; set; } - private IList? RangesValue { get; set; } + private ICollection? RangesValue { get; set; } private AggregationRangeDescriptor RangesDescriptor { get; set; } @@ -515,7 +515,7 @@ public RangeAggregationDescriptor Missing(int? missing) return Self; } - public RangeAggregationDescriptor Ranges(IList? ranges) + public RangeAggregationDescriptor Ranges(ICollection? ranges) { RangesDescriptor = null; RangesDescriptorAction = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TermsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TermsAggregation.g.cs index 04e3484c49c..175e65ee723 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TermsAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TermsAggregation.g.cs @@ -418,7 +418,7 @@ internal TermsAggregation() public override string? Name { get; internal set; } [JsonConverter(typeof(AggregateOrderConverter))] - public IList>? Order { get; set; } + public ICollection>? Order { get; set; } public Elastic.Clients.Elasticsearch.Script? Script { get; set; } @@ -466,7 +466,7 @@ public TermsAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Aggregations.MissingOrder? MissingOrderValue { get; set; } - private IList>? OrderValue { get; set; } + private ICollection>? OrderValue { get; set; } private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } @@ -574,7 +574,7 @@ public TermsAggregationDescriptor MissingOrder(Elastic.Clients.Elasti return Self; } - public TermsAggregationDescriptor Order(IList>? order) + public TermsAggregationDescriptor Order(ICollection>? order) { OrderValue = order; return Self; @@ -773,7 +773,7 @@ public TermsAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Aggregations.MissingOrder? MissingOrderValue { get; set; } - private IList>? OrderValue { get; set; } + private ICollection>? OrderValue { get; set; } private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } @@ -887,7 +887,7 @@ public TermsAggregationDescriptor MissingOrder(Elastic.Clients.Elasticsearch.Agg return Self; } - public TermsAggregationDescriptor Order(IList>? order) + public TermsAggregationDescriptor Order(ICollection>? order) { OrderValue = order; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopHitsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopHitsAggregation.g.cs index e5bc1317c29..48931f7cd40 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopHitsAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopHitsAggregation.g.cs @@ -384,7 +384,7 @@ internal TopHitsAggregation() public int? Size { get; set; } [JsonConverter(typeof(SortConverter))] - public IList? Sort { get; set; } + public ICollection? Sort { get; set; } public Elastic.Clients.Elasticsearch.Fields? StoredFields { get; set; } @@ -428,7 +428,7 @@ public TopHitsAggregationDescriptor() : base() private int? SizeValue { get; set; } - private IList? SortValue { get; set; } + private ICollection? SortValue { get; set; } private Elastic.Clients.Elasticsearch.Fields? StoredFieldsValue { get; set; } @@ -532,7 +532,7 @@ public TopHitsAggregationDescriptor Size(int? size) return Self; } - public TopHitsAggregationDescriptor Sort(IList? sort) + public TopHitsAggregationDescriptor Sort(ICollection? sort) { SortValue = sort; return Self; @@ -707,7 +707,7 @@ public TopHitsAggregationDescriptor() : base() private int? SizeValue { get; set; } - private IList? SortValue { get; set; } + private ICollection? SortValue { get; set; } private Elastic.Clients.Elasticsearch.Fields? StoredFieldsValue { get; set; } @@ -817,7 +817,7 @@ public TopHitsAggregationDescriptor Size(int? size) return Self; } - public TopHitsAggregationDescriptor Sort(IList? sort) + public TopHitsAggregationDescriptor Sort(ICollection? sort) { SortValue = sort; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopMetricsAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopMetricsAggregation.g.cs index da4cd0203b3..46c579f5bf9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopMetricsAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TopMetricsAggregation.g.cs @@ -55,7 +55,7 @@ public override TopMetricsAggregation Read(ref Utf8JsonReader reader, Type typeT if (reader.ValueTextEquals("metrics")) { reader.Read(); - var value = JsonSerializer.Deserialize?>(ref reader, options); + var value = JsonSerializer.Deserialize?>(ref reader, options); if (value is not null) { agg.Metrics = value; @@ -199,7 +199,7 @@ internal TopMetricsAggregation() public Dictionary? Meta { get; set; } - public IList? Metrics { get; set; } + public ICollection? Metrics { get; set; } public FieldValue? Missing { get; set; } @@ -210,7 +210,7 @@ internal TopMetricsAggregation() public int? Size { get; set; } [JsonConverter(typeof(SortConverter))] - public IList? Sort { get; set; } + public ICollection? Sort { get; set; } } public sealed partial class TopMetricsAggregationDescriptor : SerializableDescriptor> @@ -220,7 +220,7 @@ public TopMetricsAggregationDescriptor() : base() { } - private IList? MetricsValue { get; set; } + private ICollection? MetricsValue { get; set; } private TopMetricsValueDescriptor MetricsDescriptor { get; set; } @@ -238,9 +238,9 @@ public TopMetricsAggregationDescriptor() : base() private int? SizeValue { get; set; } - private IList? SortValue { get; set; } + private ICollection? SortValue { get; set; } - public TopMetricsAggregationDescriptor Metrics(IList? metrics) + public TopMetricsAggregationDescriptor Metrics(ICollection? metrics) { MetricsDescriptor = null; MetricsDescriptorAction = null; @@ -312,7 +312,7 @@ public TopMetricsAggregationDescriptor Size(int? size) return Self; } - public TopMetricsAggregationDescriptor Sort(IList? sort) + public TopMetricsAggregationDescriptor Sort(ICollection? sort) { SortValue = sort; return Self; @@ -402,7 +402,7 @@ public TopMetricsAggregationDescriptor() : base() { } - private IList? MetricsValue { get; set; } + private ICollection? MetricsValue { get; set; } private TopMetricsValueDescriptor MetricsDescriptor { get; set; } @@ -420,9 +420,9 @@ public TopMetricsAggregationDescriptor() : base() private int? SizeValue { get; set; } - private IList? SortValue { get; set; } + private ICollection? SortValue { get; set; } - public TopMetricsAggregationDescriptor Metrics(IList? metrics) + public TopMetricsAggregationDescriptor Metrics(ICollection? metrics) { MetricsDescriptor = null; MetricsDescriptorAction = null; @@ -500,7 +500,7 @@ public TopMetricsAggregationDescriptor Size(int? size) return Self; } - public TopMetricsAggregationDescriptor Sort(IList? sort) + public TopMetricsAggregationDescriptor Sort(ICollection? sort) { SortValue = sort; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CharGroupTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CharGroupTokenizer.g.cs index a7ee1e03a82..e2d9de5874d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CharGroupTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CharGroupTokenizer.g.cs @@ -33,7 +33,7 @@ public sealed partial class CharGroupTokenizer : ITokenizerDefinition [JsonInclude] [JsonPropertyName("tokenize_on_chars")] - public IList TokenizeOnChars { get; set; } + public ICollection TokenizeOnChars { get; set; } [JsonInclude] [JsonPropertyName("type")] @@ -52,7 +52,7 @@ public CharGroupTokenizerDescriptor() : base() private int? MaxTokenLengthValue { get; set; } - private IList TokenizeOnCharsValue { get; set; } + private ICollection TokenizeOnCharsValue { get; set; } private string? VersionValue { get; set; } @@ -62,7 +62,7 @@ public CharGroupTokenizerDescriptor MaxTokenLength(int? maxTokenLength) return Self; } - public CharGroupTokenizerDescriptor TokenizeOnChars(IList tokenizeOnChars) + public CharGroupTokenizerDescriptor TokenizeOnChars(ICollection tokenizeOnChars) { TokenizeOnCharsValue = tokenizeOnChars; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CommonGramsTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CommonGramsTokenFilter.g.cs index 3208c957ef3..82238423a95 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CommonGramsTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CommonGramsTokenFilter.g.cs @@ -29,7 +29,7 @@ public sealed partial class CommonGramsTokenFilter : ITokenFilterDefinition { [JsonInclude] [JsonPropertyName("common_words")] - public IList? CommonWords { get; set; } + public ICollection? CommonWords { get; set; } [JsonInclude] [JsonPropertyName("common_words_path")] @@ -58,7 +58,7 @@ public CommonGramsTokenFilterDescriptor() : base() { } - private IList? CommonWordsValue { get; set; } + private ICollection? CommonWordsValue { get; set; } private string? CommonWordsPathValue { get; set; } @@ -68,7 +68,7 @@ public CommonGramsTokenFilterDescriptor() : base() private string? VersionValue { get; set; } - public CommonGramsTokenFilterDescriptor CommonWords(IList? commonWords) + public CommonGramsTokenFilterDescriptor CommonWords(ICollection? commonWords) { CommonWordsValue = commonWords; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ConditionTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ConditionTokenFilter.g.cs index b122fcc2529..cd914b8a6c0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ConditionTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ConditionTokenFilter.g.cs @@ -29,7 +29,7 @@ public sealed partial class ConditionTokenFilter : ITokenFilterDefinition { [JsonInclude] [JsonPropertyName("filter")] - public IList Filter { get; set; } + public ICollection Filter { get; set; } [JsonInclude] [JsonPropertyName("script")] @@ -50,13 +50,13 @@ public ConditionTokenFilterDescriptor() : base() { } - private IList FilterValue { get; set; } + private ICollection FilterValue { get; set; } private Elastic.Clients.Elasticsearch.Script ScriptValue { get; set; } private string? VersionValue { get; set; } - public ConditionTokenFilterDescriptor Filter(IList filter) + public ConditionTokenFilterDescriptor Filter(ICollection filter) { FilterValue = filter; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CustomAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CustomAnalyzer.g.cs index 60164b105d0..f4e95c959c8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CustomAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CustomAnalyzer.g.cs @@ -29,11 +29,11 @@ public sealed partial class CustomAnalyzer : IAnalyzer { [JsonInclude] [JsonPropertyName("char_filter")] - public IList? CharFilter { get; set; } + public ICollection? CharFilter { get; set; } [JsonInclude] [JsonPropertyName("filter")] - public IList? Filter { get; set; } + public ICollection? Filter { get; set; } [JsonInclude] [JsonPropertyName("position_increment_gap")] @@ -59,9 +59,9 @@ public CustomAnalyzerDescriptor() : base() { } - private IList? CharFilterValue { get; set; } + private ICollection? CharFilterValue { get; set; } - private IList? FilterValue { get; set; } + private ICollection? FilterValue { get; set; } private int? PositionIncrementGapValue { get; set; } @@ -69,13 +69,13 @@ public CustomAnalyzerDescriptor() : base() private string TokenizerValue { get; set; } - public CustomAnalyzerDescriptor CharFilter(IList? charFilter) + public CustomAnalyzerDescriptor CharFilter(ICollection? charFilter) { CharFilterValue = charFilter; return Self; } - public CustomAnalyzerDescriptor Filter(IList? filter) + public CustomAnalyzerDescriptor Filter(ICollection? filter) { FilterValue = filter; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CustomNormalizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CustomNormalizer.g.cs index 8dfccc5334a..50dcf748687 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CustomNormalizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/CustomNormalizer.g.cs @@ -29,11 +29,11 @@ public sealed partial class CustomNormalizer : INormalizer { [JsonInclude] [JsonPropertyName("char_filter")] - public IList? CharFilter { get; set; } + public ICollection? CharFilter { get; set; } [JsonInclude] [JsonPropertyName("filter")] - public IList? Filter { get; set; } + public ICollection? Filter { get; set; } [JsonInclude] [JsonPropertyName("type")] @@ -47,17 +47,17 @@ public CustomNormalizerDescriptor() : base() { } - private IList? CharFilterValue { get; set; } + private ICollection? CharFilterValue { get; set; } - private IList? FilterValue { get; set; } + private ICollection? FilterValue { get; set; } - public CustomNormalizerDescriptor CharFilter(IList? charFilter) + public CustomNormalizerDescriptor CharFilter(ICollection? charFilter) { CharFilterValue = charFilter; return Self; } - public CustomNormalizerDescriptor Filter(IList? filter) + public CustomNormalizerDescriptor Filter(ICollection? filter) { FilterValue = filter; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DictionaryDecompounderTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DictionaryDecompounderTokenFilter.g.cs index 8c0a2ff48c6..a606c7c74ec 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DictionaryDecompounderTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DictionaryDecompounderTokenFilter.g.cs @@ -56,7 +56,7 @@ public sealed partial class DictionaryDecompounderTokenFilter : ITokenFilterDefi [JsonInclude] [JsonPropertyName("word_list")] - public IList? WordList { get; set; } + public ICollection? WordList { get; set; } [JsonInclude] [JsonPropertyName("word_list_path")] @@ -82,7 +82,7 @@ public DictionaryDecompounderTokenFilterDescriptor() : base() private string? VersionValue { get; set; } - private IList? WordListValue { get; set; } + private ICollection? WordListValue { get; set; } private string? WordListPathValue { get; set; } @@ -122,7 +122,7 @@ public DictionaryDecompounderTokenFilterDescriptor Version(string? version) return Self; } - public DictionaryDecompounderTokenFilterDescriptor WordList(IList? wordList) + public DictionaryDecompounderTokenFilterDescriptor WordList(ICollection? wordList) { WordListValue = wordList; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DutchAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DutchAnalyzer.g.cs index 410ba95667f..87c8a8e11dc 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DutchAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/DutchAnalyzer.g.cs @@ -30,7 +30,7 @@ public sealed partial class DutchAnalyzer : IAnalyzer [JsonInclude] [JsonPropertyName("stopwords")] [JsonConverter(typeof(StopWordsConverter))] - public IList? Stopwords { get; set; } + public ICollection? Stopwords { get; set; } [JsonInclude] [JsonPropertyName("type")] @@ -44,9 +44,9 @@ public DutchAnalyzerDescriptor() : base() { } - private IList? StopwordsValue { get; set; } + private ICollection? StopwordsValue { get; set; } - public DutchAnalyzerDescriptor Stopwords(IList? stopwords) + public DutchAnalyzerDescriptor Stopwords(ICollection? stopwords) { StopwordsValue = stopwords; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs index 6c590993653..e91253fc9e9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/EdgeNGramTokenizer.g.cs @@ -41,7 +41,7 @@ public sealed partial class EdgeNGramTokenizer : ITokenizerDefinition [JsonInclude] [JsonPropertyName("token_chars")] - public IList TokenChars { get; set; } + public ICollection TokenChars { get; set; } [JsonInclude] [JsonPropertyName("type")] @@ -64,7 +64,7 @@ public EdgeNGramTokenizerDescriptor() : base() private int MinGramValue { get; set; } - private IList TokenCharsValue { get; set; } + private ICollection TokenCharsValue { get; set; } private string? VersionValue { get; set; } @@ -86,7 +86,7 @@ public EdgeNGramTokenizerDescriptor MinGram(int minGram) return Self; } - public EdgeNGramTokenizerDescriptor TokenChars(IList tokenChars) + public EdgeNGramTokenizerDescriptor TokenChars(ICollection tokenChars) { TokenCharsValue = tokenChars; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ElisionTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ElisionTokenFilter.g.cs index 9381436bb42..6d0a90aa561 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ElisionTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/ElisionTokenFilter.g.cs @@ -29,7 +29,7 @@ public sealed partial class ElisionTokenFilter : ITokenFilterDefinition { [JsonInclude] [JsonPropertyName("articles")] - public IList? Articles { get; set; } + public ICollection? Articles { get; set; } [JsonInclude] [JsonPropertyName("articles_case")] @@ -54,7 +54,7 @@ public ElisionTokenFilterDescriptor() : base() { } - private IList? ArticlesValue { get; set; } + private ICollection? ArticlesValue { get; set; } private bool? ArticlesCaseValue { get; set; } @@ -62,7 +62,7 @@ public ElisionTokenFilterDescriptor() : base() private string? VersionValue { get; set; } - public ElisionTokenFilterDescriptor Articles(IList? articles) + public ElisionTokenFilterDescriptor Articles(ICollection? articles) { ArticlesValue = articles; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FingerprintAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FingerprintAnalyzer.g.cs index ec408f029b2..fe8b7d1eae5 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FingerprintAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/FingerprintAnalyzer.g.cs @@ -42,7 +42,7 @@ public sealed partial class FingerprintAnalyzer : IAnalyzer [JsonInclude] [JsonPropertyName("stopwords")] [JsonConverter(typeof(StopWordsConverter))] - public IList? Stopwords { get; set; } + public ICollection? Stopwords { get; set; } [JsonInclude] [JsonPropertyName("stopwords_path")] @@ -69,7 +69,7 @@ public FingerprintAnalyzerDescriptor() : base() private string SeparatorValue { get; set; } - private IList? StopwordsValue { get; set; } + private ICollection? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } @@ -93,7 +93,7 @@ public FingerprintAnalyzerDescriptor Separator(string separator) return Self; } - public FingerprintAnalyzerDescriptor Stopwords(IList? stopwords) + public FingerprintAnalyzerDescriptor Stopwords(ICollection? stopwords) { StopwordsValue = stopwords; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HyphenationDecompounderTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HyphenationDecompounderTokenFilter.g.cs index 9233f466569..86b5a873c18 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HyphenationDecompounderTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/HyphenationDecompounderTokenFilter.g.cs @@ -56,7 +56,7 @@ public sealed partial class HyphenationDecompounderTokenFilter : ITokenFilterDef [JsonInclude] [JsonPropertyName("word_list")] - public IList? WordList { get; set; } + public ICollection? WordList { get; set; } [JsonInclude] [JsonPropertyName("word_list_path")] @@ -82,7 +82,7 @@ public HyphenationDecompounderTokenFilterDescriptor() : base() private string? VersionValue { get; set; } - private IList? WordListValue { get; set; } + private ICollection? WordListValue { get; set; } private string? WordListPathValue { get; set; } @@ -122,7 +122,7 @@ public HyphenationDecompounderTokenFilterDescriptor Version(string? version) return Self; } - public HyphenationDecompounderTokenFilterDescriptor WordList(IList? wordList) + public HyphenationDecompounderTokenFilterDescriptor WordList(ICollection? wordList) { WordListValue = wordList; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeepTypesTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeepTypesTokenFilter.g.cs index 320eb63dd99..f57c5230a9f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeepTypesTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeepTypesTokenFilter.g.cs @@ -36,7 +36,7 @@ public sealed partial class KeepTypesTokenFilter : ITokenFilterDefinition public string Type => "keep_types"; [JsonInclude] [JsonPropertyName("types")] - public IList? Types { get; set; } + public ICollection? Types { get; set; } [JsonInclude] [JsonPropertyName("version")] @@ -52,7 +52,7 @@ public KeepTypesTokenFilterDescriptor() : base() private Elastic.Clients.Elasticsearch.Analysis.KeepTypesMode? ModeValue { get; set; } - private IList? TypesValue { get; set; } + private ICollection? TypesValue { get; set; } private string? VersionValue { get; set; } @@ -62,7 +62,7 @@ public KeepTypesTokenFilterDescriptor Mode(Elastic.Clients.Elasticsearch.Analysi return Self; } - public KeepTypesTokenFilterDescriptor Types(IList? types) + public KeepTypesTokenFilterDescriptor Types(ICollection? types) { TypesValue = types; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeepWordsTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeepWordsTokenFilter.g.cs index 46939016053..fc8e2c46f08 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeepWordsTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeepWordsTokenFilter.g.cs @@ -29,7 +29,7 @@ public sealed partial class KeepWordsTokenFilter : ITokenFilterDefinition { [JsonInclude] [JsonPropertyName("keep_words")] - public IList? KeepWords { get; set; } + public ICollection? KeepWords { get; set; } [JsonInclude] [JsonPropertyName("keep_words_case")] @@ -54,7 +54,7 @@ public KeepWordsTokenFilterDescriptor() : base() { } - private IList? KeepWordsValue { get; set; } + private ICollection? KeepWordsValue { get; set; } private bool? KeepWordsCaseValue { get; set; } @@ -62,7 +62,7 @@ public KeepWordsTokenFilterDescriptor() : base() private string? VersionValue { get; set; } - public KeepWordsTokenFilterDescriptor KeepWords(IList? keepWords) + public KeepWordsTokenFilterDescriptor KeepWords(ICollection? keepWords) { KeepWordsValue = keepWords; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordMarkerTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordMarkerTokenFilter.g.cs index e5ebc155545..38be4530e59 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordMarkerTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KeywordMarkerTokenFilter.g.cs @@ -33,7 +33,7 @@ public sealed partial class KeywordMarkerTokenFilter : ITokenFilterDefinition [JsonInclude] [JsonPropertyName("keywords")] - public IList? Keywords { get; set; } + public ICollection? Keywords { get; set; } [JsonInclude] [JsonPropertyName("keywords_path")] @@ -60,7 +60,7 @@ public KeywordMarkerTokenFilterDescriptor() : base() private bool? IgnoreCaseValue { get; set; } - private IList? KeywordsValue { get; set; } + private ICollection? KeywordsValue { get; set; } private string? KeywordsPathValue { get; set; } @@ -74,7 +74,7 @@ public KeywordMarkerTokenFilterDescriptor IgnoreCase(bool? ignoreCase = true) return Self; } - public KeywordMarkerTokenFilterDescriptor Keywords(IList? keywords) + public KeywordMarkerTokenFilterDescriptor Keywords(ICollection? keywords) { KeywordsValue = keywords; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiPartOfSpeechTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiPartOfSpeechTokenFilter.g.cs index 331be99d4ca..3afae9b50f4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiPartOfSpeechTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiPartOfSpeechTokenFilter.g.cs @@ -29,7 +29,7 @@ public sealed partial class KuromojiPartOfSpeechTokenFilter : ITokenFilterDefini { [JsonInclude] [JsonPropertyName("stoptags")] - public IList Stoptags { get; set; } + public ICollection Stoptags { get; set; } [JsonInclude] [JsonPropertyName("type")] @@ -46,11 +46,11 @@ public KuromojiPartOfSpeechTokenFilterDescriptor() : base() { } - private IList StoptagsValue { get; set; } + private ICollection StoptagsValue { get; set; } private string? VersionValue { get; set; } - public KuromojiPartOfSpeechTokenFilterDescriptor Stoptags(IList stoptags) + public KuromojiPartOfSpeechTokenFilterDescriptor Stoptags(ICollection stoptags) { StoptagsValue = stoptags; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiTokenizer.g.cs index 0d899624fe3..4089b2299f1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/KuromojiTokenizer.g.cs @@ -56,7 +56,7 @@ public sealed partial class KuromojiTokenizer : ITokenizerDefinition [JsonInclude] [JsonPropertyName("user_dictionary_rules")] - public IList? UserDictionaryRules { get; set; } + public ICollection? UserDictionaryRules { get; set; } [JsonInclude] [JsonPropertyName("version")] @@ -82,7 +82,7 @@ public KuromojiTokenizerDescriptor() : base() private string? UserDictionaryValue { get; set; } - private IList? UserDictionaryRulesValue { get; set; } + private ICollection? UserDictionaryRulesValue { get; set; } private string? VersionValue { get; set; } @@ -122,7 +122,7 @@ public KuromojiTokenizerDescriptor UserDictionary(string? userDictionary) return Self; } - public KuromojiTokenizerDescriptor UserDictionaryRules(IList? userDictionaryRules) + public KuromojiTokenizerDescriptor UserDictionaryRules(ICollection? userDictionaryRules) { UserDictionaryRulesValue = userDictionaryRules; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LanguageAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LanguageAnalyzer.g.cs index ff07ab8c7be..407110bb67d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LanguageAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/LanguageAnalyzer.g.cs @@ -33,12 +33,12 @@ public sealed partial class LanguageAnalyzer : IAnalyzer [JsonInclude] [JsonPropertyName("stem_exclusion")] - public IList StemExclusion { get; set; } + public ICollection StemExclusion { get; set; } [JsonInclude] [JsonPropertyName("stopwords")] [JsonConverter(typeof(StopWordsConverter))] - public IList? Stopwords { get; set; } + public ICollection? Stopwords { get; set; } [JsonInclude] [JsonPropertyName("stopwords_path")] @@ -61,9 +61,9 @@ public LanguageAnalyzerDescriptor() : base() private Elastic.Clients.Elasticsearch.Analysis.Language LanguageValue { get; set; } - private IList StemExclusionValue { get; set; } + private ICollection StemExclusionValue { get; set; } - private IList? StopwordsValue { get; set; } + private ICollection? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } @@ -75,13 +75,13 @@ public LanguageAnalyzerDescriptor Language(Elastic.Clients.Elasticsearch.Analysi return Self; } - public LanguageAnalyzerDescriptor StemExclusion(IList stemExclusion) + public LanguageAnalyzerDescriptor StemExclusion(ICollection stemExclusion) { StemExclusionValue = stemExclusion; return Self; } - public LanguageAnalyzerDescriptor Stopwords(IList? stopwords) + public LanguageAnalyzerDescriptor Stopwords(ICollection? stopwords) { StopwordsValue = stopwords; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/MappingCharFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/MappingCharFilter.g.cs index 47f8db10330..87dee038240 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/MappingCharFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/MappingCharFilter.g.cs @@ -29,7 +29,7 @@ public sealed partial class MappingCharFilter : ICharFilterDefinition { [JsonInclude] [JsonPropertyName("mappings")] - public IList? Mappings { get; set; } + public ICollection? Mappings { get; set; } [JsonInclude] [JsonPropertyName("mappings_path")] @@ -50,13 +50,13 @@ public MappingCharFilterDescriptor() : base() { } - private IList? MappingsValue { get; set; } + private ICollection? MappingsValue { get; set; } private string? MappingsPathValue { get; set; } private string? VersionValue { get; set; } - public MappingCharFilterDescriptor Mappings(IList? mappings) + public MappingCharFilterDescriptor Mappings(ICollection? mappings) { MappingsValue = mappings; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/MultiplexerTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/MultiplexerTokenFilter.g.cs index 903faae6521..ae001e8b40d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/MultiplexerTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/MultiplexerTokenFilter.g.cs @@ -29,7 +29,7 @@ public sealed partial class MultiplexerTokenFilter : ITokenFilterDefinition { [JsonInclude] [JsonPropertyName("filters")] - public IList Filters { get; set; } + public ICollection Filters { get; set; } [JsonInclude] [JsonPropertyName("preserve_original")] @@ -50,13 +50,13 @@ public MultiplexerTokenFilterDescriptor() : base() { } - private IList FiltersValue { get; set; } + private ICollection FiltersValue { get; set; } private bool? PreserveOriginalValue { get; set; } private string? VersionValue { get; set; } - public MultiplexerTokenFilterDescriptor Filters(IList filters) + public MultiplexerTokenFilterDescriptor Filters(ICollection filters) { FiltersValue = filters; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NGramTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NGramTokenizer.g.cs index 5ec8111b6a9..82dff88defa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NGramTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NGramTokenizer.g.cs @@ -41,7 +41,7 @@ public sealed partial class NGramTokenizer : ITokenizerDefinition [JsonInclude] [JsonPropertyName("token_chars")] - public IList TokenChars { get; set; } + public ICollection TokenChars { get; set; } [JsonInclude] [JsonPropertyName("type")] @@ -64,7 +64,7 @@ public NGramTokenizerDescriptor() : base() private int MinGramValue { get; set; } - private IList TokenCharsValue { get; set; } + private ICollection TokenCharsValue { get; set; } private string? VersionValue { get; set; } @@ -86,7 +86,7 @@ public NGramTokenizerDescriptor MinGram(int minGram) return Self; } - public NGramTokenizerDescriptor TokenChars(IList tokenChars) + public NGramTokenizerDescriptor TokenChars(ICollection tokenChars) { TokenCharsValue = tokenChars; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NoriAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NoriAnalyzer.g.cs index 93bf3458a2a..4bc46901d87 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NoriAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NoriAnalyzer.g.cs @@ -33,7 +33,7 @@ public sealed partial class NoriAnalyzer : IAnalyzer [JsonInclude] [JsonPropertyName("stoptags")] - public IList? Stoptags { get; set; } + public ICollection? Stoptags { get; set; } [JsonInclude] [JsonPropertyName("type")] @@ -56,7 +56,7 @@ public NoriAnalyzerDescriptor() : base() private Elastic.Clients.Elasticsearch.Analysis.NoriDecompoundMode? DecompoundModeValue { get; set; } - private IList? StoptagsValue { get; set; } + private ICollection? StoptagsValue { get; set; } private string? UserDictionaryValue { get; set; } @@ -68,7 +68,7 @@ public NoriAnalyzerDescriptor DecompoundMode(Elastic.Clients.Elasticsearch.Analy return Self; } - public NoriAnalyzerDescriptor Stoptags(IList? stoptags) + public NoriAnalyzerDescriptor Stoptags(ICollection? stoptags) { StoptagsValue = stoptags; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NoriPartOfSpeechTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NoriPartOfSpeechTokenFilter.g.cs index 5628b43fb30..b7703ee92fd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NoriPartOfSpeechTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NoriPartOfSpeechTokenFilter.g.cs @@ -29,7 +29,7 @@ public sealed partial class NoriPartOfSpeechTokenFilter : ITokenFilterDefinition { [JsonInclude] [JsonPropertyName("stoptags")] - public IList? Stoptags { get; set; } + public ICollection? Stoptags { get; set; } [JsonInclude] [JsonPropertyName("type")] @@ -46,11 +46,11 @@ public NoriPartOfSpeechTokenFilterDescriptor() : base() { } - private IList? StoptagsValue { get; set; } + private ICollection? StoptagsValue { get; set; } private string? VersionValue { get; set; } - public NoriPartOfSpeechTokenFilterDescriptor Stoptags(IList? stoptags) + public NoriPartOfSpeechTokenFilterDescriptor Stoptags(ICollection? stoptags) { StoptagsValue = stoptags; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NoriTokenizer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NoriTokenizer.g.cs index f9e890f7a75..c82e1a7ff5c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NoriTokenizer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/NoriTokenizer.g.cs @@ -44,7 +44,7 @@ public sealed partial class NoriTokenizer : ITokenizerDefinition [JsonInclude] [JsonPropertyName("user_dictionary_rules")] - public IList? UserDictionaryRules { get; set; } + public ICollection? UserDictionaryRules { get; set; } [JsonInclude] [JsonPropertyName("version")] @@ -64,7 +64,7 @@ public NoriTokenizerDescriptor() : base() private string? UserDictionaryValue { get; set; } - private IList? UserDictionaryRulesValue { get; set; } + private ICollection? UserDictionaryRulesValue { get; set; } private string? VersionValue { get; set; } @@ -86,7 +86,7 @@ public NoriTokenizerDescriptor UserDictionary(string? userDictionary) return Self; } - public NoriTokenizerDescriptor UserDictionaryRules(IList? userDictionaryRules) + public NoriTokenizerDescriptor UserDictionaryRules(ICollection? userDictionaryRules) { UserDictionaryRulesValue = userDictionaryRules; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternAnalyzer.g.cs index 3d86bfeb51d..aa8148b7372 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternAnalyzer.g.cs @@ -42,7 +42,7 @@ public sealed partial class PatternAnalyzer : IAnalyzer [JsonInclude] [JsonPropertyName("stopwords")] [JsonConverter(typeof(StopWordsConverter))] - public IList? Stopwords { get; set; } + public ICollection? Stopwords { get; set; } [JsonInclude] [JsonPropertyName("type")] @@ -65,7 +65,7 @@ public PatternAnalyzerDescriptor() : base() private string PatternValue { get; set; } - private IList? StopwordsValue { get; set; } + private ICollection? StopwordsValue { get; set; } private string? VersionValue { get; set; } @@ -87,7 +87,7 @@ public PatternAnalyzerDescriptor Pattern(string pattern) return Self; } - public PatternAnalyzerDescriptor Stopwords(IList? stopwords) + public PatternAnalyzerDescriptor Stopwords(ICollection? stopwords) { StopwordsValue = stopwords; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternCaptureTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternCaptureTokenFilter.g.cs index ac216436a77..557373e98a4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternCaptureTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PatternCaptureTokenFilter.g.cs @@ -29,7 +29,7 @@ public sealed partial class PatternCaptureTokenFilter : ITokenFilterDefinition { [JsonInclude] [JsonPropertyName("patterns")] - public IList Patterns { get; set; } + public ICollection Patterns { get; set; } [JsonInclude] [JsonPropertyName("preserve_original")] @@ -50,13 +50,13 @@ public PatternCaptureTokenFilterDescriptor() : base() { } - private IList PatternsValue { get; set; } + private ICollection PatternsValue { get; set; } private bool? PreserveOriginalValue { get; set; } private string? VersionValue { get; set; } - public PatternCaptureTokenFilterDescriptor Patterns(IList patterns) + public PatternCaptureTokenFilterDescriptor Patterns(ICollection patterns) { PatternsValue = patterns; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PhoneticTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PhoneticTokenFilter.g.cs index f2f59d730cb..e427b7337a4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PhoneticTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/PhoneticTokenFilter.g.cs @@ -33,7 +33,7 @@ public sealed partial class PhoneticTokenFilter : ITokenFilterDefinition [JsonInclude] [JsonPropertyName("languageset")] - public IList Languageset { get; set; } + public ICollection Languageset { get; set; } [JsonInclude] [JsonPropertyName("max_code_len")] @@ -68,7 +68,7 @@ public PhoneticTokenFilterDescriptor() : base() private Elastic.Clients.Elasticsearch.Analysis.PhoneticEncoder EncoderValue { get; set; } - private IList LanguagesetValue { get; set; } + private ICollection LanguagesetValue { get; set; } private int? MaxCodeLenValue { get; set; } @@ -86,7 +86,7 @@ public PhoneticTokenFilterDescriptor Encoder(Elastic.Clients.Elasticsearch.Analy return Self; } - public PhoneticTokenFilterDescriptor Languageset(IList languageset) + public PhoneticTokenFilterDescriptor Languageset(ICollection languageset) { LanguagesetValue = languageset; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SnowballAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SnowballAnalyzer.g.cs index e36a456ab12..fe9ff880c2a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SnowballAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SnowballAnalyzer.g.cs @@ -34,7 +34,7 @@ public sealed partial class SnowballAnalyzer : IAnalyzer [JsonInclude] [JsonPropertyName("stopwords")] [JsonConverter(typeof(StopWordsConverter))] - public IList? Stopwords { get; set; } + public ICollection? Stopwords { get; set; } [JsonInclude] [JsonPropertyName("type")] @@ -53,7 +53,7 @@ public SnowballAnalyzerDescriptor() : base() private Elastic.Clients.Elasticsearch.Analysis.SnowballLanguage LanguageValue { get; set; } - private IList? StopwordsValue { get; set; } + private ICollection? StopwordsValue { get; set; } private string? VersionValue { get; set; } @@ -63,7 +63,7 @@ public SnowballAnalyzerDescriptor Language(Elastic.Clients.Elasticsearch.Analysi return Self; } - public SnowballAnalyzerDescriptor Stopwords(IList? stopwords) + public SnowballAnalyzerDescriptor Stopwords(ICollection? stopwords) { StopwordsValue = stopwords; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StandardAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StandardAnalyzer.g.cs index 540ca09fcb0..f8463b1ce12 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StandardAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StandardAnalyzer.g.cs @@ -34,7 +34,7 @@ public sealed partial class StandardAnalyzer : IAnalyzer [JsonInclude] [JsonPropertyName("stopwords")] [JsonConverter(typeof(StopWordsConverter))] - public IList? Stopwords { get; set; } + public ICollection? Stopwords { get; set; } [JsonInclude] [JsonPropertyName("type")] @@ -50,7 +50,7 @@ public StandardAnalyzerDescriptor() : base() private int? MaxTokenLengthValue { get; set; } - private IList? StopwordsValue { get; set; } + private ICollection? StopwordsValue { get; set; } public StandardAnalyzerDescriptor MaxTokenLength(int? maxTokenLength) { @@ -58,7 +58,7 @@ public StandardAnalyzerDescriptor MaxTokenLength(int? maxTokenLength) return Self; } - public StandardAnalyzerDescriptor Stopwords(IList? stopwords) + public StandardAnalyzerDescriptor Stopwords(ICollection? stopwords) { StopwordsValue = stopwords; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StemmerOverrideTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StemmerOverrideTokenFilter.g.cs index dfe14aca25f..d937347e103 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StemmerOverrideTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StemmerOverrideTokenFilter.g.cs @@ -29,7 +29,7 @@ public sealed partial class StemmerOverrideTokenFilter : ITokenFilterDefinition { [JsonInclude] [JsonPropertyName("rules")] - public IList? Rules { get; set; } + public ICollection? Rules { get; set; } [JsonInclude] [JsonPropertyName("rules_path")] @@ -50,13 +50,13 @@ public StemmerOverrideTokenFilterDescriptor() : base() { } - private IList? RulesValue { get; set; } + private ICollection? RulesValue { get; set; } private string? RulesPathValue { get; set; } private string? VersionValue { get; set; } - public StemmerOverrideTokenFilterDescriptor Rules(IList? rules) + public StemmerOverrideTokenFilterDescriptor Rules(ICollection? rules) { RulesValue = rules; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StopAnalyzer.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StopAnalyzer.g.cs index 442e4073a78..0656f2a1835 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StopAnalyzer.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StopAnalyzer.g.cs @@ -30,7 +30,7 @@ public sealed partial class StopAnalyzer : IAnalyzer [JsonInclude] [JsonPropertyName("stopwords")] [JsonConverter(typeof(StopWordsConverter))] - public IList? Stopwords { get; set; } + public ICollection? Stopwords { get; set; } [JsonInclude] [JsonPropertyName("stopwords_path")] @@ -51,13 +51,13 @@ public StopAnalyzerDescriptor() : base() { } - private IList? StopwordsValue { get; set; } + private ICollection? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } private string? VersionValue { get; set; } - public StopAnalyzerDescriptor Stopwords(IList? stopwords) + public StopAnalyzerDescriptor Stopwords(ICollection? stopwords) { StopwordsValue = stopwords; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StopTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StopTokenFilter.g.cs index 89808dd633b..4074fdf438a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StopTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/StopTokenFilter.g.cs @@ -38,7 +38,7 @@ public sealed partial class StopTokenFilter : ITokenFilterDefinition [JsonInclude] [JsonPropertyName("stopwords")] [JsonConverter(typeof(StopWordsConverter))] - public IList? Stopwords { get; set; } + public ICollection? Stopwords { get; set; } [JsonInclude] [JsonPropertyName("stopwords_path")] @@ -63,7 +63,7 @@ public StopTokenFilterDescriptor() : base() private bool? RemoveTrailingValue { get; set; } - private IList? StopwordsValue { get; set; } + private ICollection? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } @@ -81,7 +81,7 @@ public StopTokenFilterDescriptor RemoveTrailing(bool? removeTrailing = true) return Self; } - public StopTokenFilterDescriptor Stopwords(IList? stopwords) + public StopTokenFilterDescriptor Stopwords(ICollection? stopwords) { StopwordsValue = stopwords; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SynonymGraphTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SynonymGraphTokenFilter.g.cs index 0eb1ad7ab70..1265f511337 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SynonymGraphTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SynonymGraphTokenFilter.g.cs @@ -41,7 +41,7 @@ public sealed partial class SynonymGraphTokenFilter : ITokenFilterDefinition [JsonInclude] [JsonPropertyName("synonyms")] - public IList? Synonyms { get; set; } + public ICollection? Synonyms { get; set; } [JsonInclude] [JsonPropertyName("synonyms_path")] @@ -76,7 +76,7 @@ public SynonymGraphTokenFilterDescriptor() : base() private bool? LenientValue { get; set; } - private IList? SynonymsValue { get; set; } + private ICollection? SynonymsValue { get; set; } private string? SynonymsPathValue { get; set; } @@ -104,7 +104,7 @@ public SynonymGraphTokenFilterDescriptor Lenient(bool? lenient = true) return Self; } - public SynonymGraphTokenFilterDescriptor Synonyms(IList? synonyms) + public SynonymGraphTokenFilterDescriptor Synonyms(ICollection? synonyms) { SynonymsValue = synonyms; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SynonymTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SynonymTokenFilter.g.cs index 665e859886e..470e80579ef 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SynonymTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/SynonymTokenFilter.g.cs @@ -41,7 +41,7 @@ public sealed partial class SynonymTokenFilter : ITokenFilterDefinition [JsonInclude] [JsonPropertyName("synonyms")] - public IList? Synonyms { get; set; } + public ICollection? Synonyms { get; set; } [JsonInclude] [JsonPropertyName("synonyms_path")] @@ -76,7 +76,7 @@ public SynonymTokenFilterDescriptor() : base() private bool? LenientValue { get; set; } - private IList? SynonymsValue { get; set; } + private ICollection? SynonymsValue { get; set; } private string? SynonymsPathValue { get; set; } @@ -104,7 +104,7 @@ public SynonymTokenFilterDescriptor Lenient(bool? lenient = true) return Self; } - public SynonymTokenFilterDescriptor Synonyms(IList? synonyms) + public SynonymTokenFilterDescriptor Synonyms(ICollection? synonyms) { SynonymsValue = synonyms; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WordDelimiterGraphTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WordDelimiterGraphTokenFilter.g.cs index 54397dfd004..024e52b97d2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WordDelimiterGraphTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WordDelimiterGraphTokenFilter.g.cs @@ -61,7 +61,7 @@ public sealed partial class WordDelimiterGraphTokenFilter : ITokenFilterDefiniti [JsonInclude] [JsonPropertyName("protected_words")] - public IList? ProtectedWords { get; set; } + public ICollection? ProtectedWords { get; set; } [JsonInclude] [JsonPropertyName("protected_words_path")] @@ -84,7 +84,7 @@ public sealed partial class WordDelimiterGraphTokenFilter : ITokenFilterDefiniti public string Type => "word_delimiter_graph"; [JsonInclude] [JsonPropertyName("type_table")] - public IList? TypeTable { get; set; } + public ICollection? TypeTable { get; set; } [JsonInclude] [JsonPropertyName("type_table_path")] @@ -118,7 +118,7 @@ public WordDelimiterGraphTokenFilterDescriptor() : base() private bool? PreserveOriginalValue { get; set; } - private IList? ProtectedWordsValue { get; set; } + private ICollection? ProtectedWordsValue { get; set; } private string? ProtectedWordsPathValue { get; set; } @@ -128,7 +128,7 @@ public WordDelimiterGraphTokenFilterDescriptor() : base() private bool? StemEnglishPossessiveValue { get; set; } - private IList? TypeTableValue { get; set; } + private ICollection? TypeTableValue { get; set; } private string? TypeTablePathValue { get; set; } @@ -182,7 +182,7 @@ public WordDelimiterGraphTokenFilterDescriptor PreserveOriginal(bool? preserveOr return Self; } - public WordDelimiterGraphTokenFilterDescriptor ProtectedWords(IList? protectedWords) + public WordDelimiterGraphTokenFilterDescriptor ProtectedWords(ICollection? protectedWords) { ProtectedWordsValue = protectedWords; return Self; @@ -212,7 +212,7 @@ public WordDelimiterGraphTokenFilterDescriptor StemEnglishPossessive(bool? stemE return Self; } - public WordDelimiterGraphTokenFilterDescriptor TypeTable(IList? typeTable) + public WordDelimiterGraphTokenFilterDescriptor TypeTable(ICollection? typeTable) { TypeTableValue = typeTable; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WordDelimiterTokenFilter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WordDelimiterTokenFilter.g.cs index 16775734d43..8ff2f3ff34d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WordDelimiterTokenFilter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Analysis/WordDelimiterTokenFilter.g.cs @@ -53,7 +53,7 @@ public sealed partial class WordDelimiterTokenFilter : ITokenFilterDefinition [JsonInclude] [JsonPropertyName("protected_words")] - public IList? ProtectedWords { get; set; } + public ICollection? ProtectedWords { get; set; } [JsonInclude] [JsonPropertyName("protected_words_path")] @@ -76,7 +76,7 @@ public sealed partial class WordDelimiterTokenFilter : ITokenFilterDefinition public string Type => "word_delimiter"; [JsonInclude] [JsonPropertyName("type_table")] - public IList? TypeTable { get; set; } + public ICollection? TypeTable { get; set; } [JsonInclude] [JsonPropertyName("type_table_path")] @@ -106,7 +106,7 @@ public WordDelimiterTokenFilterDescriptor() : base() private bool? PreserveOriginalValue { get; set; } - private IList? ProtectedWordsValue { get; set; } + private ICollection? ProtectedWordsValue { get; set; } private string? ProtectedWordsPathValue { get; set; } @@ -116,7 +116,7 @@ public WordDelimiterTokenFilterDescriptor() : base() private bool? StemEnglishPossessiveValue { get; set; } - private IList? TypeTableValue { get; set; } + private ICollection? TypeTableValue { get; set; } private string? TypeTablePathValue { get; set; } @@ -158,7 +158,7 @@ public WordDelimiterTokenFilterDescriptor PreserveOriginal(bool? preserveOrigina return Self; } - public WordDelimiterTokenFilterDescriptor ProtectedWords(IList? protectedWords) + public WordDelimiterTokenFilterDescriptor ProtectedWords(ICollection? protectedWords) { ProtectedWordsValue = protectedWords; return Self; @@ -188,7 +188,7 @@ public WordDelimiterTokenFilterDescriptor StemEnglishPossessive(bool? stemEnglis return Self; } - public WordDelimiterTokenFilterDescriptor TypeTable(IList? typeTable) + public WordDelimiterTokenFilterDescriptor TypeTable(ICollection? typeTable) { TypeTableValue = typeTable; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultisearchBody.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultisearchBody.g.cs index acef634c1f4..fe6018905ef 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultisearchBody.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultisearchBody.g.cs @@ -57,7 +57,7 @@ public override MultisearchBody Read(ref Utf8JsonReader reader, Type typeToConve if (property == "docvalue_fields") { - variant.DocvalueFields = JsonSerializer.Deserialize?>(ref reader, options); + variant.DocvalueFields = JsonSerializer.Deserialize?>(ref reader, options); continue; } @@ -75,7 +75,7 @@ public override MultisearchBody Read(ref Utf8JsonReader reader, Type typeToConve if (property == "fields") { - variant.Fields = JsonSerializer.Deserialize?>(ref reader, options); + variant.Fields = JsonSerializer.Deserialize?>(ref reader, options); continue; } @@ -93,7 +93,7 @@ public override MultisearchBody Read(ref Utf8JsonReader reader, Type typeToConve if (property == "indices_boost") { - variant.IndicesBoost = JsonSerializer.Deserialize>?>(ref reader, options); + variant.IndicesBoost = JsonSerializer.Deserialize>?>(ref reader, options); continue; } @@ -135,7 +135,7 @@ public override MultisearchBody Read(ref Utf8JsonReader reader, Type typeToConve if (property == "rescore") { - variant.Rescore = JsonSerializer.Deserialize?>(ref reader, options); + variant.Rescore = JsonSerializer.Deserialize?>(ref reader, options); continue; } @@ -153,7 +153,7 @@ public override MultisearchBody Read(ref Utf8JsonReader reader, Type typeToConve if (property == "search_after") { - variant.SearchAfter = JsonSerializer.Deserialize?>(ref reader, options); + variant.SearchAfter = JsonSerializer.Deserialize?>(ref reader, options); continue; } @@ -171,13 +171,13 @@ public override MultisearchBody Read(ref Utf8JsonReader reader, Type typeToConve if (property == "sort") { - variant.Sort = JsonSerializer.Deserialize?>(ref reader, options); + variant.Sort = JsonSerializer.Deserialize?>(ref reader, options); continue; } if (property == "stats") { - variant.Stats = JsonSerializer.Deserialize?>(ref reader, options); + variant.Stats = JsonSerializer.Deserialize?>(ref reader, options); continue; } @@ -430,19 +430,19 @@ public sealed partial class MultisearchBody public Elastic.Clients.Elasticsearch.Core.Search.FieldCollapse? Collapse { get; set; } - public IList? DocvalueFields { get; set; } + public ICollection? DocvalueFields { get; set; } public bool? Explain { get; set; } public Dictionary? Ext { get; set; } - public IList? Fields { get; set; } + public ICollection? Fields { get; set; } public int? From { get; set; } public Elastic.Clients.Elasticsearch.Core.Search.Highlight? Highlight { get; set; } - public IList>? IndicesBoost { get; set; } + public ICollection>? IndicesBoost { get; set; } public Elastic.Clients.Elasticsearch.KnnQuery? Knn { get; set; } @@ -456,22 +456,22 @@ public sealed partial class MultisearchBody public Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? Query { get; set; } - public IList? Rescore { get; set; } + public ICollection? Rescore { get; set; } public Dictionary? RuntimeMappings { get; set; } public Dictionary? ScriptFields { get; set; } - public IList? SearchAfter { get; set; } + public ICollection? SearchAfter { get; set; } public bool? SeqNoPrimaryTerm { get; set; } public int? Size { get; set; } [JsonConverter(typeof(SortConverter))] - public IList? Sort { get; set; } + public ICollection? Sort { get; set; } - public IList? Stats { get; set; } + public ICollection? Stats { get; set; } public Elastic.Clients.Elasticsearch.Fields? StoredFields { get; set; } @@ -501,7 +501,7 @@ public MultisearchBodyDescriptor() : base() private Action> CollapseDescriptorAction { get; set; } - private IList? DocvalueFieldsValue { get; set; } + private ICollection? DocvalueFieldsValue { get; set; } private QueryDsl.FieldAndFormatDescriptor DocvalueFieldsDescriptor { get; set; } @@ -509,7 +509,7 @@ public MultisearchBodyDescriptor() : base() private Action>[] DocvalueFieldsDescriptorActions { get; set; } - private IList? FieldsValue { get; set; } + private ICollection? FieldsValue { get; set; } private QueryDsl.FieldAndFormatDescriptor FieldsDescriptor { get; set; } @@ -541,7 +541,7 @@ public MultisearchBodyDescriptor() : base() private Action> QueryDescriptorAction { get; set; } - private IList? RescoreValue { get; set; } + private ICollection? RescoreValue { get; set; } private Core.Search.RescoreDescriptor RescoreDescriptor { get; set; } @@ -559,7 +559,7 @@ public MultisearchBodyDescriptor() : base() private int? FromValue { get; set; } - private IList>? IndicesBoostValue { get; set; } + private ICollection>? IndicesBoostValue { get; set; } private double? MinScoreValue { get; set; } @@ -575,15 +575,15 @@ public MultisearchBodyDescriptor() : base() private Dictionary? ScriptFieldsValue { get; set; } - private IList? SearchAfterValue { get; set; } + private ICollection? SearchAfterValue { get; set; } private bool? SeqNoPrimaryTermValue { get; set; } private int? SizeValue { get; set; } - private IList? SortValue { get; set; } + private ICollection? SortValue { get; set; } - private IList? StatsValue { get; set; } + private ICollection? StatsValue { get; set; } private Elastic.Clients.Elasticsearch.Fields? StoredFieldsValue { get; set; } @@ -627,7 +627,7 @@ public MultisearchBodyDescriptor Collapse(Action DocvalueFields(IList? docvalueFields) + public MultisearchBodyDescriptor DocvalueFields(ICollection? docvalueFields) { DocvalueFieldsDescriptor = null; DocvalueFieldsDescriptorAction = null; @@ -663,7 +663,7 @@ public MultisearchBodyDescriptor DocvalueFields(params Action Fields(IList? fields) + public MultisearchBodyDescriptor Fields(ICollection? fields) { FieldsDescriptor = null; FieldsDescriptorAction = null; @@ -795,7 +795,7 @@ public MultisearchBodyDescriptor Query(Action Rescore(IList? rescore) + public MultisearchBodyDescriptor Rescore(ICollection? rescore) { RescoreDescriptor = null; RescoreDescriptorAction = null; @@ -861,7 +861,7 @@ public MultisearchBodyDescriptor From(int? from) return Self; } - public MultisearchBodyDescriptor IndicesBoost(IList>? indicesBoost) + public MultisearchBodyDescriptor IndicesBoost(ICollection>? indicesBoost) { IndicesBoostValue = indicesBoost; return Self; @@ -915,7 +915,7 @@ public MultisearchBodyDescriptor ScriptFields(Func SearchAfter(IList? searchAfter) + public MultisearchBodyDescriptor SearchAfter(ICollection? searchAfter) { SearchAfterValue = searchAfter; return Self; @@ -933,13 +933,13 @@ public MultisearchBodyDescriptor Size(int? size) return Self; } - public MultisearchBodyDescriptor Sort(IList? sort) + public MultisearchBodyDescriptor Sort(ICollection? sort) { SortValue = sort; return Self; } - public MultisearchBodyDescriptor Stats(IList? stats) + public MultisearchBodyDescriptor Stats(ICollection? stats) { StatsValue = stats; return Self; @@ -1356,7 +1356,7 @@ public MultisearchBodyDescriptor() : base() private Action CollapseDescriptorAction { get; set; } - private IList? DocvalueFieldsValue { get; set; } + private ICollection? DocvalueFieldsValue { get; set; } private QueryDsl.FieldAndFormatDescriptor DocvalueFieldsDescriptor { get; set; } @@ -1364,7 +1364,7 @@ public MultisearchBodyDescriptor() : base() private Action[] DocvalueFieldsDescriptorActions { get; set; } - private IList? FieldsValue { get; set; } + private ICollection? FieldsValue { get; set; } private QueryDsl.FieldAndFormatDescriptor FieldsDescriptor { get; set; } @@ -1396,7 +1396,7 @@ public MultisearchBodyDescriptor() : base() private Action QueryDescriptorAction { get; set; } - private IList? RescoreValue { get; set; } + private ICollection? RescoreValue { get; set; } private Core.Search.RescoreDescriptor RescoreDescriptor { get; set; } @@ -1414,7 +1414,7 @@ public MultisearchBodyDescriptor() : base() private int? FromValue { get; set; } - private IList>? IndicesBoostValue { get; set; } + private ICollection>? IndicesBoostValue { get; set; } private double? MinScoreValue { get; set; } @@ -1430,15 +1430,15 @@ public MultisearchBodyDescriptor() : base() private Dictionary? ScriptFieldsValue { get; set; } - private IList? SearchAfterValue { get; set; } + private ICollection? SearchAfterValue { get; set; } private bool? SeqNoPrimaryTermValue { get; set; } private int? SizeValue { get; set; } - private IList? SortValue { get; set; } + private ICollection? SortValue { get; set; } - private IList? StatsValue { get; set; } + private ICollection? StatsValue { get; set; } private Elastic.Clients.Elasticsearch.Fields? StoredFieldsValue { get; set; } @@ -1482,7 +1482,7 @@ public MultisearchBodyDescriptor Collapse(Action? docvalueFields) + public MultisearchBodyDescriptor DocvalueFields(ICollection? docvalueFields) { DocvalueFieldsDescriptor = null; DocvalueFieldsDescriptorAction = null; @@ -1518,7 +1518,7 @@ public MultisearchBodyDescriptor DocvalueFields(params Action? fields) + public MultisearchBodyDescriptor Fields(ICollection? fields) { FieldsDescriptor = null; FieldsDescriptorAction = null; @@ -1650,7 +1650,7 @@ public MultisearchBodyDescriptor Query(Action return Self; } - public MultisearchBodyDescriptor Rescore(IList? rescore) + public MultisearchBodyDescriptor Rescore(ICollection? rescore) { RescoreDescriptor = null; RescoreDescriptorAction = null; @@ -1716,7 +1716,7 @@ public MultisearchBodyDescriptor From(int? from) return Self; } - public MultisearchBodyDescriptor IndicesBoost(IList>? indicesBoost) + public MultisearchBodyDescriptor IndicesBoost(ICollection>? indicesBoost) { IndicesBoostValue = indicesBoost; return Self; @@ -1770,7 +1770,7 @@ public MultisearchBodyDescriptor ScriptFields(Func? searchAfter) + public MultisearchBodyDescriptor SearchAfter(ICollection? searchAfter) { SearchAfterValue = searchAfter; return Self; @@ -1788,13 +1788,13 @@ public MultisearchBodyDescriptor Size(int? size) return Self; } - public MultisearchBodyDescriptor Sort(IList? sort) + public MultisearchBodyDescriptor Sort(ICollection? sort) { SortValue = sort; return Self; } - public MultisearchBodyDescriptor Stats(IList? stats) + public MultisearchBodyDescriptor Stats(ICollection? stats) { StatsValue = stats; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultisearchHeader.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultisearchHeader.g.cs index d3399ade310..4898f72b965 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultisearchHeader.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/MSearch/MultisearchHeader.g.cs @@ -42,7 +42,7 @@ public sealed partial class MultisearchHeader [JsonInclude] [JsonPropertyName("expand_wildcards")] [JsonConverter(typeof(ExpandWildcardsConverter))] - public IList? ExpandWildcards { get; set; } + public ICollection? ExpandWildcards { get; set; } [JsonInclude] [JsonPropertyName("ignore_throttled")] @@ -86,7 +86,7 @@ public MultisearchHeaderDescriptor() : base() private bool? CcsMinimizeRoundtripsValue { get; set; } - private IList? ExpandWildcardsValue { get; set; } + private ICollection? ExpandWildcardsValue { get; set; } private bool? IgnoreThrottledValue { get; set; } @@ -120,7 +120,7 @@ public MultisearchHeaderDescriptor CcsMinimizeRoundtrips(bool? ccsMinimizeRoundt return Self; } - public MultisearchHeaderDescriptor ExpandWildcards(IList? expandWildcards) + public MultisearchHeaderDescriptor ExpandWildcards(ICollection? expandWildcards) { ExpandWildcardsValue = expandWildcards; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalRequestItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalRequestItem.g.cs index a7e407c1e84..c25bd64e2ec 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalRequestItem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/RankEval/RankEvalRequestItem.g.cs @@ -37,7 +37,7 @@ public sealed partial class RankEvalRequestItem [JsonInclude] [JsonPropertyName("ratings")] - public IList Ratings { get; set; } + public ICollection Ratings { get; set; } [JsonInclude] [JsonPropertyName("request")] @@ -65,7 +65,7 @@ public RankEvalRequestItemDescriptor() : base() private Dictionary? ParamsValue { get; set; } - private IList RatingsValue { get; set; } + private ICollection RatingsValue { get; set; } private DocumentRatingDescriptor RatingsDescriptor { get; set; } @@ -111,7 +111,7 @@ public RankEvalRequestItemDescriptor Params(Func Ratings(IList ratings) + public RankEvalRequestItemDescriptor Ratings(ICollection ratings) { RatingsDescriptor = null; RatingsDescriptorAction = null; @@ -238,7 +238,7 @@ public RankEvalRequestItemDescriptor() : base() private Dictionary? ParamsValue { get; set; } - private IList RatingsValue { get; set; } + private ICollection RatingsValue { get; set; } private DocumentRatingDescriptor RatingsDescriptor { get; set; } @@ -284,7 +284,7 @@ public RankEvalRequestItemDescriptor Params(Func ratings) + public RankEvalRequestItemDescriptor Ratings(ICollection ratings) { RatingsDescriptor = null; RatingsDescriptorAction = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/Source.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/Source.g.cs index 2a83e1b2649..4fad0b161fa 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/Source.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Reindex/Source.g.cs @@ -58,7 +58,7 @@ public sealed partial class Source [JsonInclude] [JsonPropertyName("sort")] [JsonConverter(typeof(SortConverter))] - public IList? Sort { get; set; } + public ICollection? Sort { get; set; } } public sealed partial class SourceDescriptor : SerializableDescriptor> @@ -94,7 +94,7 @@ public SourceDescriptor() : base() private int? SizeValue { get; set; } - private IList? SortValue { get; set; } + private ICollection? SortValue { get; set; } public SourceDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? query) { @@ -192,7 +192,7 @@ public SourceDescriptor Size(int? size) return Self; } - public SourceDescriptor Sort(IList? sort) + public SourceDescriptor Sort(ICollection? sort) { SortValue = sort; return Self; @@ -312,7 +312,7 @@ public SourceDescriptor() : base() private int? SizeValue { get; set; } - private IList? SortValue { get; set; } + private ICollection? SortValue { get; set; } public SourceDescriptor Query(Elastic.Clients.Elasticsearch.QueryDsl.QueryContainer? query) { @@ -410,7 +410,7 @@ public SourceDescriptor Size(int? size) return Self; } - public SourceDescriptor Sort(IList? sort) + public SourceDescriptor Sort(ICollection? sort) { SortValue = sort; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionContext.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionContext.g.cs index adb5b52d811..1f267df8529 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionContext.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionContext.g.cs @@ -33,7 +33,7 @@ public sealed partial class CompletionContext [JsonInclude] [JsonPropertyName("neighbours")] - public IList? Neighbours { get; set; } + public ICollection? Neighbours { get; set; } [JsonInclude] [JsonPropertyName("precision")] @@ -53,7 +53,7 @@ public CompletionContextDescriptor() : base() private double? BoostValue { get; set; } - private IList? NeighboursValue { get; set; } + private ICollection? NeighboursValue { get; set; } private Elastic.Clients.Elasticsearch.GeoHashPrecision? PrecisionValue { get; set; } @@ -65,7 +65,7 @@ public CompletionContextDescriptor Boost(double? boost) return Self; } - public CompletionContextDescriptor Neighbours(IList? neighbours) + public CompletionContextDescriptor Neighbours(ICollection? neighbours) { NeighboursValue = neighbours; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionSuggester.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionSuggester.g.cs index 57091ebf61b..ad5ad825d07 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionSuggester.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/CompletionSuggester.g.cs @@ -33,7 +33,7 @@ public sealed partial class CompletionSuggester [JsonInclude] [JsonPropertyName("contexts")] - public Dictionary>? Contexts { get; set; } + public Dictionary>? Contexts { get; set; } [JsonInclude] [JsonPropertyName("field")] @@ -71,7 +71,7 @@ public CompletionSuggesterDescriptor() : base() private string? AnalyzerValue { get; set; } - private Dictionary>? ContextsValue { get; set; } + private Dictionary>? ContextsValue { get; set; } private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } @@ -95,9 +95,9 @@ public CompletionSuggesterDescriptor Analyzer(string? analyzer) return Self; } - public CompletionSuggesterDescriptor Contexts(Func>, FluentDictionary>> selector) + public CompletionSuggesterDescriptor Contexts(Func>, FluentDictionary>> selector) { - ContextsValue = selector?.Invoke(new FluentDictionary>()); + ContextsValue = selector?.Invoke(new FluentDictionary>()); return Self; } @@ -231,7 +231,7 @@ public CompletionSuggesterDescriptor() : base() private string? AnalyzerValue { get; set; } - private Dictionary>? ContextsValue { get; set; } + private Dictionary>? ContextsValue { get; set; } private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } @@ -255,9 +255,9 @@ public CompletionSuggesterDescriptor Analyzer(string? analyzer) return Self; } - public CompletionSuggesterDescriptor Contexts(Func>, FluentDictionary>> selector) + public CompletionSuggesterDescriptor Contexts(Func>, FluentDictionary>> selector) { - ContextsValue = selector?.Invoke(new FluentDictionary>()); + ContextsValue = selector?.Invoke(new FluentDictionary>()); return Self; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/FieldCollapse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/FieldCollapse.g.cs index a5a49877d8e..e33ddb36b8b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/FieldCollapse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/FieldCollapse.g.cs @@ -37,7 +37,7 @@ public sealed partial class FieldCollapse [JsonInclude] [JsonPropertyName("inner_hits")] - public IList? InnerHits { get; set; } + public ICollection? InnerHits { get; set; } [JsonInclude] [JsonPropertyName("max_concurrent_group_searches")] @@ -57,7 +57,7 @@ public FieldCollapseDescriptor() : base() private Action> CollapseDescriptorAction { get; set; } - private IList? InnerHitsValue { get; set; } + private ICollection? InnerHitsValue { get; set; } private InnerHitsDescriptor InnerHitsDescriptor { get; set; } @@ -93,7 +93,7 @@ public FieldCollapseDescriptor Collapse(Action InnerHits(IList? innerHits) + public FieldCollapseDescriptor InnerHits(ICollection? innerHits) { InnerHitsDescriptor = null; InnerHitsDescriptorAction = null; @@ -222,7 +222,7 @@ public FieldCollapseDescriptor() : base() private Action CollapseDescriptorAction { get; set; } - private IList? InnerHitsValue { get; set; } + private ICollection? InnerHitsValue { get; set; } private InnerHitsDescriptor InnerHitsDescriptor { get; set; } @@ -258,7 +258,7 @@ public FieldCollapseDescriptor Collapse(Action configur return Self; } - public FieldCollapseDescriptor InnerHits(IList? innerHits) + public FieldCollapseDescriptor InnerHits(ICollection? innerHits) { InnerHitsDescriptor = null; InnerHitsDescriptorAction = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Highlight.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Highlight.g.cs index b0fa4dfab25..03234fa92f6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Highlight.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/Highlight.g.cs @@ -101,11 +101,11 @@ public sealed partial class Highlight [JsonInclude] [JsonPropertyName("post_tags")] - public IList? PostTags { get; set; } + public ICollection? PostTags { get; set; } [JsonInclude] [JsonPropertyName("pre_tags")] - public IList? PreTags { get; set; } + public ICollection? PreTags { get; set; } [JsonInclude] [JsonPropertyName("require_field_match")] @@ -167,9 +167,9 @@ public HighlightDescriptor() : base() private int? PhraseLimitValue { get; set; } - private IList? PostTagsValue { get; set; } + private ICollection? PostTagsValue { get; set; } - private IList? PreTagsValue { get; set; } + private ICollection? PreTagsValue { get; set; } private bool? RequireFieldMatchValue { get; set; } @@ -303,13 +303,13 @@ public HighlightDescriptor PhraseLimit(int? phraseLimit) return Self; } - public HighlightDescriptor PostTags(IList? postTags) + public HighlightDescriptor PostTags(ICollection? postTags) { PostTagsValue = postTags; return Self; } - public HighlightDescriptor PreTags(IList? preTags) + public HighlightDescriptor PreTags(ICollection? preTags) { PreTagsValue = preTags; return Self; @@ -531,9 +531,9 @@ public HighlightDescriptor() : base() private int? PhraseLimitValue { get; set; } - private IList? PostTagsValue { get; set; } + private ICollection? PostTagsValue { get; set; } - private IList? PreTagsValue { get; set; } + private ICollection? PreTagsValue { get; set; } private bool? RequireFieldMatchValue { get; set; } @@ -667,13 +667,13 @@ public HighlightDescriptor PhraseLimit(int? phraseLimit) return Self; } - public HighlightDescriptor PostTags(IList? postTags) + public HighlightDescriptor PostTags(ICollection? postTags) { PostTagsValue = postTags; return Self; } - public HighlightDescriptor PreTags(IList? preTags) + public HighlightDescriptor PreTags(ICollection? preTags) { PreTagsValue = preTags; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/HighlightField.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/HighlightField.g.cs index 6554932a0c7..11f94396692 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/HighlightField.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/HighlightField.g.cs @@ -105,11 +105,11 @@ public sealed partial class HighlightField [JsonInclude] [JsonPropertyName("post_tags")] - public IList? PostTags { get; set; } + public ICollection? PostTags { get; set; } [JsonInclude] [JsonPropertyName("pre_tags")] - public IList? PreTags { get; set; } + public ICollection? PreTags { get; set; } [JsonInclude] [JsonPropertyName("require_field_match")] @@ -173,9 +173,9 @@ public HighlightFieldDescriptor() : base() private int? PhraseLimitValue { get; set; } - private IList? PostTagsValue { get; set; } + private ICollection? PostTagsValue { get; set; } - private IList? PreTagsValue { get; set; } + private ICollection? PreTagsValue { get; set; } private bool? RequireFieldMatchValue { get; set; } @@ -315,13 +315,13 @@ public HighlightFieldDescriptor PhraseLimit(int? phraseLimit) return Self; } - public HighlightFieldDescriptor PostTags(IList? postTags) + public HighlightFieldDescriptor PostTags(ICollection? postTags) { PostTagsValue = postTags; return Self; } - public HighlightFieldDescriptor PreTags(IList? preTags) + public HighlightFieldDescriptor PreTags(ICollection? preTags) { PreTagsValue = preTags; return Self; @@ -555,9 +555,9 @@ public HighlightFieldDescriptor() : base() private int? PhraseLimitValue { get; set; } - private IList? PostTagsValue { get; set; } + private ICollection? PostTagsValue { get; set; } - private IList? PreTagsValue { get; set; } + private ICollection? PreTagsValue { get; set; } private bool? RequireFieldMatchValue { get; set; } @@ -697,13 +697,13 @@ public HighlightFieldDescriptor PhraseLimit(int? phraseLimit) return Self; } - public HighlightFieldDescriptor PostTags(IList? postTags) + public HighlightFieldDescriptor PostTags(ICollection? postTags) { PostTagsValue = postTags; return Self; } - public HighlightFieldDescriptor PreTags(IList? preTags) + public HighlightFieldDescriptor PreTags(ICollection? preTags) { PreTagsValue = preTags; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/InnerHits.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/InnerHits.g.cs index 2458ec12fd4..c9a7c659656 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/InnerHits.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/InnerHits.g.cs @@ -37,7 +37,7 @@ public sealed partial class InnerHits [JsonInclude] [JsonPropertyName("docvalue_fields")] - public IList? DocvalueFields { get; set; } + public ICollection? DocvalueFields { get; set; } [JsonInclude] [JsonPropertyName("explain")] @@ -78,7 +78,7 @@ public sealed partial class InnerHits [JsonInclude] [JsonPropertyName("sort")] [JsonConverter(typeof(SortConverter))] - public IList? Sort { get; set; } + public ICollection? Sort { get; set; } [JsonInclude] [JsonPropertyName("stored_field")] @@ -106,7 +106,7 @@ public InnerHitsDescriptor() : base() private Action> CollapseDescriptorAction { get; set; } - private IList? DocvalueFieldsValue { get; set; } + private ICollection? DocvalueFieldsValue { get; set; } private QueryDsl.FieldAndFormatDescriptor DocvalueFieldsDescriptor { get; set; } @@ -138,7 +138,7 @@ public InnerHitsDescriptor() : base() private int? SizeValue { get; set; } - private IList? SortValue { get; set; } + private ICollection? SortValue { get; set; } private Elastic.Clients.Elasticsearch.Fields? StoredFieldValue { get; set; } @@ -170,7 +170,7 @@ public InnerHitsDescriptor Collapse(Action DocvalueFields(IList? docvalueFields) + public InnerHitsDescriptor DocvalueFields(ICollection? docvalueFields) { DocvalueFieldsDescriptor = null; DocvalueFieldsDescriptorAction = null; @@ -284,7 +284,7 @@ public InnerHitsDescriptor Size(int? size) return Self; } - public InnerHitsDescriptor Sort(IList? sort) + public InnerHitsDescriptor Sort(ICollection? sort) { SortValue = sort; return Self; @@ -469,7 +469,7 @@ public InnerHitsDescriptor() : base() private Action CollapseDescriptorAction { get; set; } - private IList? DocvalueFieldsValue { get; set; } + private ICollection? DocvalueFieldsValue { get; set; } private QueryDsl.FieldAndFormatDescriptor DocvalueFieldsDescriptor { get; set; } @@ -501,7 +501,7 @@ public InnerHitsDescriptor() : base() private int? SizeValue { get; set; } - private IList? SortValue { get; set; } + private ICollection? SortValue { get; set; } private Elastic.Clients.Elasticsearch.Fields? StoredFieldValue { get; set; } @@ -533,7 +533,7 @@ public InnerHitsDescriptor Collapse(Action configure) return Self; } - public InnerHitsDescriptor DocvalueFields(IList? docvalueFields) + public InnerHitsDescriptor DocvalueFields(ICollection? docvalueFields) { DocvalueFieldsDescriptor = null; DocvalueFieldsDescriptorAction = null; @@ -647,7 +647,7 @@ public InnerHitsDescriptor Size(int? size) return Self; } - public InnerHitsDescriptor Sort(IList? sort) + public InnerHitsDescriptor Sort(ICollection? sort) { SortValue = sort; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggester.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggester.g.cs index 7a5bf488a21..6fde1102ad9 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggester.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggester.g.cs @@ -41,7 +41,7 @@ public sealed partial class PhraseSuggester [JsonInclude] [JsonPropertyName("direct_generator")] - public IList? DirectGenerator { get; set; } + public ICollection? DirectGenerator { get; set; } [JsonInclude] [JsonPropertyName("field")] @@ -101,7 +101,7 @@ public PhraseSuggesterDescriptor() : base() { } - private IList? DirectGeneratorValue { get; set; } + private ICollection? DirectGeneratorValue { get; set; } private DirectGeneratorDescriptor DirectGeneratorDescriptor { get; set; } @@ -151,7 +151,7 @@ public PhraseSuggesterDescriptor() : base() private int? TokenLimitValue { get; set; } - public PhraseSuggesterDescriptor DirectGenerator(IList? directGenerator) + public PhraseSuggesterDescriptor DirectGenerator(ICollection? directGenerator) { DirectGeneratorDescriptor = null; DirectGeneratorDescriptorAction = null; @@ -498,7 +498,7 @@ public PhraseSuggesterDescriptor() : base() { } - private IList? DirectGeneratorValue { get; set; } + private ICollection? DirectGeneratorValue { get; set; } private DirectGeneratorDescriptor DirectGeneratorDescriptor { get; set; } @@ -548,7 +548,7 @@ public PhraseSuggesterDescriptor() : base() private int? TokenLimitValue { get; set; } - public PhraseSuggesterDescriptor DirectGenerator(IList? directGenerator) + public PhraseSuggesterDescriptor DirectGenerator(ICollection? directGenerator) { DirectGeneratorDescriptor = null; DirectGeneratorDescriptorAction = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ExpandWildcardsConverter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ExpandWildcardsConverter.g.cs index 443065965b7..48956377630 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/ExpandWildcardsConverter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/ExpandWildcardsConverter.g.cs @@ -26,6 +26,6 @@ #nullable restore namespace Elastic.Clients.Elasticsearch; -internal sealed class ExpandWildcardsConverter : IEnumerableSingleOrManyConverter +internal sealed class ExpandWildcardsConverter : ICollectionSingleOrManyConverter { } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/FeaturesConverter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/FeaturesConverter.g.cs index 7a92ea06912..9f79bdae049 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/FeaturesConverter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/FeaturesConverter.g.cs @@ -26,6 +26,6 @@ #nullable restore namespace Elastic.Clients.Elasticsearch; -internal sealed class FeaturesConverter : IEnumerableSingleOrManyConverter +internal sealed class FeaturesConverter : ICollectionSingleOrManyConverter { } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSegmentSort.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSegmentSort.g.cs index e97ec16de8e..1eb453c7ac1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSegmentSort.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSegmentSort.g.cs @@ -33,15 +33,15 @@ public sealed partial class IndexSegmentSort [JsonInclude] [JsonPropertyName("missing")] - public IList? Missing { get; set; } + public ICollection? Missing { get; set; } [JsonInclude] [JsonPropertyName("mode")] - public IList? Mode { get; set; } + public ICollection? Mode { get; set; } [JsonInclude] [JsonPropertyName("order")] - public IList? Order { get; set; } + public ICollection? Order { get; set; } } public sealed partial class IndexSegmentSortDescriptor : SerializableDescriptor> @@ -53,11 +53,11 @@ public IndexSegmentSortDescriptor() : base() private Elastic.Clients.Elasticsearch.Fields? FieldValue { get; set; } - private IList? MissingValue { get; set; } + private ICollection? MissingValue { get; set; } - private IList? ModeValue { get; set; } + private ICollection? ModeValue { get; set; } - private IList? OrderValue { get; set; } + private ICollection? OrderValue { get; set; } public IndexSegmentSortDescriptor Field(Elastic.Clients.Elasticsearch.Fields? field) { @@ -65,19 +65,19 @@ public IndexSegmentSortDescriptor Field(Elastic.Clients.Elasticsearch return Self; } - public IndexSegmentSortDescriptor Missing(IList? missing) + public IndexSegmentSortDescriptor Missing(ICollection? missing) { MissingValue = missing; return Self; } - public IndexSegmentSortDescriptor Mode(IList? mode) + public IndexSegmentSortDescriptor Mode(ICollection? mode) { ModeValue = mode; return Self; } - public IndexSegmentSortDescriptor Order(IList? order) + public IndexSegmentSortDescriptor Order(ICollection? order) { OrderValue = order; return Self; @@ -123,11 +123,11 @@ public IndexSegmentSortDescriptor() : base() private Elastic.Clients.Elasticsearch.Fields? FieldValue { get; set; } - private IList? MissingValue { get; set; } + private ICollection? MissingValue { get; set; } - private IList? ModeValue { get; set; } + private ICollection? ModeValue { get; set; } - private IList? OrderValue { get; set; } + private ICollection? OrderValue { get; set; } public IndexSegmentSortDescriptor Field(Elastic.Clients.Elasticsearch.Fields? field) { @@ -135,19 +135,19 @@ public IndexSegmentSortDescriptor Field(Elastic.Clients.Elasticsearch.Fields? fi return Self; } - public IndexSegmentSortDescriptor Missing(IList? missing) + public IndexSegmentSortDescriptor Missing(ICollection? missing) { MissingValue = missing; return Self; } - public IndexSegmentSortDescriptor Mode(IList? mode) + public IndexSegmentSortDescriptor Mode(ICollection? mode) { ModeValue = mode; return Self; } - public IndexSegmentSortDescriptor Order(IList? order) + public IndexSegmentSortDescriptor Order(ICollection? order) { OrderValue = order; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettings.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettings.g.cs index 10010891bcf..99e6227abe0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettings.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/IndexManagement/IndexSettings.g.cs @@ -298,7 +298,7 @@ public override IndexSettings Read(ref Utf8JsonReader reader, Type typeToConvert if (property == "routing_path") { - variant.RoutingPath = JsonSerializer.Deserialize?>(ref reader, options); + variant.RoutingPath = JsonSerializer.Deserialize?>(ref reader, options); continue; } @@ -840,7 +840,7 @@ public sealed partial class IndexSettings public int? RoutingPartitionSize { get; set; } - public IList? RoutingPath { get; set; } + public ICollection? RoutingPath { get; set; } public Elastic.Clients.Elasticsearch.IndexManagement.SettingsSearch? Search { get; set; } @@ -1028,7 +1028,7 @@ public IndexSettingsDescriptor() : base() private int? RoutingPartitionSizeValue { get; set; } - private IList? RoutingPathValue { get; set; } + private ICollection? RoutingPathValue { get; set; } private Elastic.Clients.Elasticsearch.IndexManagement.SettingsSearch? SearchValue { get; set; } @@ -1626,7 +1626,7 @@ public IndexSettingsDescriptor RoutingPartitionSize(int? routingParti return Self; } - public IndexSettingsDescriptor RoutingPath(IList? routingPath) + public IndexSettingsDescriptor RoutingPath(ICollection? routingPath) { RoutingPathValue = routingPath; return Self; @@ -2561,7 +2561,7 @@ public IndexSettingsDescriptor() : base() private int? RoutingPartitionSizeValue { get; set; } - private IList? RoutingPathValue { get; set; } + private ICollection? RoutingPathValue { get; set; } private Elastic.Clients.Elasticsearch.IndexManagement.SettingsSearch? SearchValue { get; set; } @@ -3159,7 +3159,7 @@ public IndexSettingsDescriptor RoutingPartitionSize(int? routingPartitionSize) return Self; } - public IndexSettingsDescriptor RoutingPath(IList? routingPath) + public IndexSettingsDescriptor RoutingPath(ICollection? routingPath) { RoutingPathValue = routingPath; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnQuery.g.cs index e37a6188849..b17aa116a1f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/KnnQuery.g.cs @@ -37,7 +37,7 @@ public sealed partial class KnnQuery [JsonInclude] [JsonPropertyName("filter")] - public IList? Filter { get; set; } + public ICollection? Filter { get; set; } [JsonInclude] [JsonPropertyName("k")] @@ -49,7 +49,7 @@ public sealed partial class KnnQuery [JsonInclude] [JsonPropertyName("query_vector")] - public IList QueryVector { get; set; } + public ICollection QueryVector { get; set; } } public sealed partial class KnnQueryDescriptor : SerializableDescriptor> @@ -59,7 +59,7 @@ public KnnQueryDescriptor() : base() { } - private IList? FilterValue { get; set; } + private ICollection? FilterValue { get; set; } private QueryDsl.QueryContainerDescriptor FilterDescriptor { get; set; } @@ -75,9 +75,9 @@ public KnnQueryDescriptor() : base() private long NumCandidatesValue { get; set; } - private IList QueryVectorValue { get; set; } + private ICollection QueryVectorValue { get; set; } - public KnnQueryDescriptor Filter(IList? filter) + public KnnQueryDescriptor Filter(ICollection? filter) { FilterDescriptor = null; FilterDescriptorAction = null; @@ -143,7 +143,7 @@ public KnnQueryDescriptor NumCandidates(long numCandidates) return Self; } - public KnnQueryDescriptor QueryVector(IList queryVector) + public KnnQueryDescriptor QueryVector(ICollection queryVector) { QueryVectorValue = queryVector; return Self; @@ -208,7 +208,7 @@ public KnnQueryDescriptor() : base() { } - private IList? FilterValue { get; set; } + private ICollection? FilterValue { get; set; } private QueryDsl.QueryContainerDescriptor FilterDescriptor { get; set; } @@ -224,9 +224,9 @@ public KnnQueryDescriptor() : base() private long NumCandidatesValue { get; set; } - private IList QueryVectorValue { get; set; } + private ICollection QueryVectorValue { get; set; } - public KnnQueryDescriptor Filter(IList? filter) + public KnnQueryDescriptor Filter(ICollection? filter) { FilterDescriptor = null; FilterDescriptorAction = null; @@ -298,7 +298,7 @@ public KnnQueryDescriptor NumCandidates(long numCandidates) return Self; } - public KnnQueryDescriptor QueryVector(IList queryVector) + public KnnQueryDescriptor QueryVector(ICollection queryVector) { QueryVectorValue = queryVector; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/AggregateMetricDoubleProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/AggregateMetricDoubleProperty.g.cs index 6145490799f..238227e36ee 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/AggregateMetricDoubleProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/AggregateMetricDoubleProperty.g.cs @@ -53,7 +53,7 @@ public sealed partial class AggregateMetricDoubleProperty : IProperty [JsonInclude] [JsonPropertyName("metrics")] - public IList Metrics { get; set; } + public ICollection Metrics { get; set; } [JsonInclude] [JsonPropertyName("properties")] @@ -87,7 +87,7 @@ public AggregateMetricDoublePropertyDescriptor() : base() private Dictionary? MetaValue { get; set; } - private IList MetricsValue { get; set; } + private ICollection MetricsValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -143,7 +143,7 @@ public AggregateMetricDoublePropertyDescriptor Meta(Func Metrics(IList metrics) + public AggregateMetricDoublePropertyDescriptor Metrics(ICollection metrics) { MetricsValue = metrics; return Self; @@ -252,7 +252,7 @@ public AggregateMetricDoublePropertyDescriptor() : base() private Dictionary? MetaValue { get; set; } - private IList MetricsValue { get; set; } + private ICollection MetricsValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -308,7 +308,7 @@ public AggregateMetricDoublePropertyDescriptor Meta(Func metrics) + public AggregateMetricDoublePropertyDescriptor Metrics(ICollection metrics) { MetricsValue = metrics; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CompletionProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CompletionProperty.g.cs index e410eeecfae..b62c17aafaf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CompletionProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/CompletionProperty.g.cs @@ -33,7 +33,7 @@ public sealed partial class CompletionProperty : IProperty [JsonInclude] [JsonPropertyName("contexts")] - public IList? Contexts { get; set; } + public ICollection? Contexts { get; set; } [JsonInclude] [JsonPropertyName("copy_to")] @@ -103,7 +103,7 @@ public CompletionPropertyDescriptor() : base() { } - private IList? ContextsValue { get; set; } + private ICollection? ContextsValue { get; set; } private SuggestContextDescriptor ContextsDescriptor { get; set; } @@ -141,7 +141,7 @@ public CompletionPropertyDescriptor() : base() private bool? StoreValue { get; set; } - public CompletionPropertyDescriptor Contexts(IList? contexts) + public CompletionPropertyDescriptor Contexts(ICollection? contexts) { ContextsDescriptor = null; ContextsDescriptorAction = null; @@ -435,7 +435,7 @@ public CompletionPropertyDescriptor() : base() { } - private IList? ContextsValue { get; set; } + private ICollection? ContextsValue { get; set; } private SuggestContextDescriptor ContextsDescriptor { get; set; } @@ -473,7 +473,7 @@ public CompletionPropertyDescriptor() : base() private bool? StoreValue { get; set; } - public CompletionPropertyDescriptor Contexts(IList? contexts) + public CompletionPropertyDescriptor Contexts(ICollection? contexts) { ContextsDescriptor = null; ContextsDescriptorAction = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/JoinProperty.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/JoinProperty.g.cs index a8fb6682638..d2201a7f80c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/JoinProperty.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/JoinProperty.g.cs @@ -57,7 +57,7 @@ public sealed partial class JoinProperty : IProperty [JsonInclude] [JsonPropertyName("relations")] - public Dictionary>? Relations { get; set; } + public Dictionary>? Relations { get; set; } [JsonInclude] [JsonPropertyName("type")] @@ -85,7 +85,7 @@ public JoinPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private Dictionary>? RelationsValue { get; set; } + private Dictionary>? RelationsValue { get; set; } public JoinPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? dynamic) { @@ -157,9 +157,9 @@ public JoinPropertyDescriptor Properties(Action Relations(Func>, FluentDictionary>> selector) + public JoinPropertyDescriptor Relations(Func>, FluentDictionary>> selector) { - RelationsValue = selector?.Invoke(new FluentDictionary>()); + RelationsValue = selector?.Invoke(new FluentDictionary>()); return Self; } @@ -244,7 +244,7 @@ public JoinPropertyDescriptor() : base() private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } - private Dictionary>? RelationsValue { get; set; } + private Dictionary>? RelationsValue { get; set; } public JoinPropertyDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? dynamic) { @@ -316,9 +316,9 @@ public JoinPropertyDescriptor Properties(Action>, FluentDictionary>> selector) + public JoinPropertyDescriptor Relations(Func>, FluentDictionary>> selector) { - RelationsValue = selector?.Invoke(new FluentDictionary>()); + RelationsValue = selector?.Invoke(new FluentDictionary>()); return Self; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SourceField.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SourceField.g.cs index 9529349011b..d9572a9911a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SourceField.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/SourceField.g.cs @@ -41,11 +41,11 @@ public sealed partial class SourceField [JsonInclude] [JsonPropertyName("excludes")] - public IList? Excludes { get; set; } + public ICollection? Excludes { get; set; } [JsonInclude] [JsonPropertyName("includes")] - public IList? Includes { get; set; } + public ICollection? Includes { get; set; } [JsonInclude] [JsonPropertyName("mode")] @@ -65,9 +65,9 @@ public SourceFieldDescriptor() : base() private bool? EnabledValue { get; set; } - private IList? ExcludesValue { get; set; } + private ICollection? ExcludesValue { get; set; } - private IList? IncludesValue { get; set; } + private ICollection? IncludesValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.SourceFieldMode? ModeValue { get; set; } @@ -89,13 +89,13 @@ public SourceFieldDescriptor Enabled(bool? enabled = true) return Self; } - public SourceFieldDescriptor Excludes(IList? excludes) + public SourceFieldDescriptor Excludes(ICollection? excludes) { ExcludesValue = excludes; return Self; } - public SourceFieldDescriptor Includes(IList? includes) + public SourceFieldDescriptor Includes(ICollection? includes) { IncludesValue = includes; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TypeMapping.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TypeMapping.g.cs index f70097136e3..b25f04b857f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TypeMapping.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Mapping/TypeMapping.g.cs @@ -65,11 +65,11 @@ public sealed partial class TypeMapping [JsonInclude] [JsonPropertyName("dynamic_date_formats")] - public IList? DynamicDateFormats { get; set; } + public ICollection? DynamicDateFormats { get; set; } [JsonInclude] [JsonPropertyName("dynamic_templates")] - public Union?, IList>?>? DynamicTemplates { get; set; } + public Union?, ICollection>?>? DynamicTemplates { get; set; } [JsonInclude] [JsonPropertyName("enabled")] @@ -141,9 +141,9 @@ public TypeMappingDescriptor() : base() private Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? DynamicValue { get; set; } - private IList? DynamicDateFormatsValue { get; set; } + private ICollection? DynamicDateFormatsValue { get; set; } - private Union?, IList>?>? DynamicTemplatesValue { get; set; } + private Union?, ICollection>?>? DynamicTemplatesValue { get; set; } private bool? EnabledValue { get; set; } @@ -321,13 +321,13 @@ public TypeMappingDescriptor Dynamic(Elastic.Clients.Elasticsearch.Ma return Self; } - public TypeMappingDescriptor DynamicDateFormats(IList? dynamicDateFormats) + public TypeMappingDescriptor DynamicDateFormats(ICollection? dynamicDateFormats) { DynamicDateFormatsValue = dynamicDateFormats; return Self; } - public TypeMappingDescriptor DynamicTemplates(Union?, IList>?>? dynamicTemplates) + public TypeMappingDescriptor DynamicTemplates(Union?, ICollection>?>? dynamicTemplates) { DynamicTemplatesValue = dynamicTemplates; return Self; @@ -617,9 +617,9 @@ public TypeMappingDescriptor() : base() private Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? DynamicValue { get; set; } - private IList? DynamicDateFormatsValue { get; set; } + private ICollection? DynamicDateFormatsValue { get; set; } - private Union?, IList>?>? DynamicTemplatesValue { get; set; } + private Union?, ICollection>?>? DynamicTemplatesValue { get; set; } private bool? EnabledValue { get; set; } @@ -797,13 +797,13 @@ public TypeMappingDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mapping.Dynam return Self; } - public TypeMappingDescriptor DynamicDateFormats(IList? dynamicDateFormats) + public TypeMappingDescriptor DynamicDateFormats(ICollection? dynamicDateFormats) { DynamicDateFormatsValue = dynamicDateFormats; return Self; } - public TypeMappingDescriptor DynamicTemplates(Union?, IList>?>? dynamicTemplates) + public TypeMappingDescriptor DynamicTemplates(Union?, ICollection>?>? dynamicTemplates) { DynamicTemplatesValue = dynamicTemplates; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/NerInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/NerInferenceOptions.g.cs index 7082b5efd10..bc38cd26080 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/NerInferenceOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/NerInferenceOptions.g.cs @@ -29,7 +29,7 @@ public sealed partial class NerInferenceOptions { [JsonInclude] [JsonPropertyName("classification_labels")] - public IList? ClassificationLabels { get; set; } + public ICollection? ClassificationLabels { get; set; } [JsonInclude] [JsonPropertyName("results_field")] @@ -49,7 +49,7 @@ public NerInferenceOptionsDescriptor() : base() { } - private IList? ClassificationLabelsValue { get; set; } + private ICollection? ClassificationLabelsValue { get; set; } private string? ResultsFieldValue { get; set; } @@ -59,7 +59,7 @@ public NerInferenceOptionsDescriptor() : base() private Action TokenizationDescriptorAction { get; set; } - public NerInferenceOptionsDescriptor ClassificationLabels(IList? classificationLabels) + public NerInferenceOptionsDescriptor ClassificationLabels(ICollection? classificationLabels) { ClassificationLabelsValue = classificationLabels; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TextClassificationInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TextClassificationInferenceOptions.g.cs index 02bb1133140..0ec1b28c257 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TextClassificationInferenceOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TextClassificationInferenceOptions.g.cs @@ -29,7 +29,7 @@ public sealed partial class TextClassificationInferenceOptions { [JsonInclude] [JsonPropertyName("classification_labels")] - public IList? ClassificationLabels { get; set; } + public ICollection? ClassificationLabels { get; set; } [JsonInclude] [JsonPropertyName("num_top_classes")] @@ -53,7 +53,7 @@ public TextClassificationInferenceOptionsDescriptor() : base() { } - private IList? ClassificationLabelsValue { get; set; } + private ICollection? ClassificationLabelsValue { get; set; } private int? NumTopClassesValue { get; set; } @@ -65,7 +65,7 @@ public TextClassificationInferenceOptionsDescriptor() : base() private Action TokenizationDescriptorAction { get; set; } - public TextClassificationInferenceOptionsDescriptor ClassificationLabels(IList? classificationLabels) + public TextClassificationInferenceOptionsDescriptor ClassificationLabels(ICollection? classificationLabels) { ClassificationLabelsValue = classificationLabels; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TextClassificationInferenceUpdateOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TextClassificationInferenceUpdateOptions.g.cs index c69cccf6678..06cea249e6f 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TextClassificationInferenceUpdateOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/TextClassificationInferenceUpdateOptions.g.cs @@ -29,7 +29,7 @@ public sealed partial class TextClassificationInferenceUpdateOptions { [JsonInclude] [JsonPropertyName("classification_labels")] - public IList? ClassificationLabels { get; set; } + public ICollection? ClassificationLabels { get; set; } [JsonInclude] [JsonPropertyName("num_top_classes")] @@ -53,7 +53,7 @@ public TextClassificationInferenceUpdateOptionsDescriptor() : base() { } - private IList? ClassificationLabelsValue { get; set; } + private ICollection? ClassificationLabelsValue { get; set; } private int? NumTopClassesValue { get; set; } @@ -65,7 +65,7 @@ public TextClassificationInferenceUpdateOptionsDescriptor() : base() private Action TokenizationDescriptorAction { get; set; } - public TextClassificationInferenceUpdateOptionsDescriptor ClassificationLabels(IList? classificationLabels) + public TextClassificationInferenceUpdateOptionsDescriptor ClassificationLabels(ICollection? classificationLabels) { ClassificationLabelsValue = classificationLabels; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ZeroShotClassificationInferenceOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ZeroShotClassificationInferenceOptions.g.cs index 0d494791b92..ecaef87f497 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ZeroShotClassificationInferenceOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ZeroShotClassificationInferenceOptions.g.cs @@ -29,7 +29,7 @@ public sealed partial class ZeroShotClassificationInferenceOptions { [JsonInclude] [JsonPropertyName("classification_labels")] - public IList ClassificationLabels { get; set; } + public ICollection ClassificationLabels { get; set; } [JsonInclude] [JsonPropertyName("hypothesis_template")] @@ -37,7 +37,7 @@ public sealed partial class ZeroShotClassificationInferenceOptions [JsonInclude] [JsonPropertyName("labels")] - public IList? Labels { get; set; } + public ICollection? Labels { get; set; } [JsonInclude] [JsonPropertyName("multi_label")] @@ -61,11 +61,11 @@ public ZeroShotClassificationInferenceOptionsDescriptor() : base() { } - private IList ClassificationLabelsValue { get; set; } + private ICollection ClassificationLabelsValue { get; set; } private string? HypothesisTemplateValue { get; set; } - private IList? LabelsValue { get; set; } + private ICollection? LabelsValue { get; set; } private bool? MultiLabelValue { get; set; } @@ -77,7 +77,7 @@ public ZeroShotClassificationInferenceOptionsDescriptor() : base() private Action TokenizationDescriptorAction { get; set; } - public ZeroShotClassificationInferenceOptionsDescriptor ClassificationLabels(IList classificationLabels) + public ZeroShotClassificationInferenceOptionsDescriptor ClassificationLabels(ICollection classificationLabels) { ClassificationLabelsValue = classificationLabels; return Self; @@ -89,7 +89,7 @@ public ZeroShotClassificationInferenceOptionsDescriptor HypothesisTemplate(strin return Self; } - public ZeroShotClassificationInferenceOptionsDescriptor Labels(IList? labels) + public ZeroShotClassificationInferenceOptionsDescriptor Labels(ICollection? labels) { LabelsValue = labels; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ZeroShotClassificationInferenceUpdateOptions.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ZeroShotClassificationInferenceUpdateOptions.g.cs index 190fda22aa7..0a28d862aaf 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ZeroShotClassificationInferenceUpdateOptions.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Ml/ZeroShotClassificationInferenceUpdateOptions.g.cs @@ -29,7 +29,7 @@ public sealed partial class ZeroShotClassificationInferenceUpdateOptions { [JsonInclude] [JsonPropertyName("labels")] - public IList Labels { get; set; } + public ICollection Labels { get; set; } [JsonInclude] [JsonPropertyName("multi_label")] @@ -53,7 +53,7 @@ public ZeroShotClassificationInferenceUpdateOptionsDescriptor() : base() { } - private IList LabelsValue { get; set; } + private ICollection LabelsValue { get; set; } private bool? MultiLabelValue { get; set; } @@ -65,7 +65,7 @@ public ZeroShotClassificationInferenceUpdateOptionsDescriptor() : base() private Action TokenizationDescriptorAction { get; set; } - public ZeroShotClassificationInferenceUpdateOptionsDescriptor Labels(IList labels) + public ZeroShotClassificationInferenceUpdateOptionsDescriptor Labels(ICollection labels) { LabelsValue = labels; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/BoolQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/BoolQuery.g.cs index 6da80aab18d..6f517ddc6ec 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/BoolQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/BoolQuery.g.cs @@ -37,7 +37,7 @@ public sealed partial class BoolQuery : Query [JsonInclude] [JsonPropertyName("filter")] - public IList? Filter { get; set; } + public ICollection? Filter { get; set; } [JsonInclude] [JsonPropertyName("minimum_should_match")] @@ -45,15 +45,15 @@ public sealed partial class BoolQuery : Query [JsonInclude] [JsonPropertyName("must")] - public IList? Must { get; set; } + public ICollection? Must { get; set; } [JsonInclude] [JsonPropertyName("must_not")] - public IList? MustNot { get; set; } + public ICollection? MustNot { get; set; } [JsonInclude] [JsonPropertyName("should")] - public IList? Should { get; set; } + public ICollection? Should { get; set; } public static implicit operator QueryContainer(BoolQuery boolQuery) => QueryContainer.Bool(boolQuery); } @@ -65,7 +65,7 @@ public BoolQueryDescriptor() : base() { } - private IList? FilterValue { get; set; } + private ICollection? FilterValue { get; set; } private QueryContainerDescriptor FilterDescriptor { get; set; } @@ -73,7 +73,7 @@ public BoolQueryDescriptor() : base() private Action>[] FilterDescriptorActions { get; set; } - private IList? MustValue { get; set; } + private ICollection? MustValue { get; set; } private QueryContainerDescriptor MustDescriptor { get; set; } @@ -81,7 +81,7 @@ public BoolQueryDescriptor() : base() private Action>[] MustDescriptorActions { get; set; } - private IList? MustNotValue { get; set; } + private ICollection? MustNotValue { get; set; } private QueryContainerDescriptor MustNotDescriptor { get; set; } @@ -89,7 +89,7 @@ public BoolQueryDescriptor() : base() private Action>[] MustNotDescriptorActions { get; set; } - private IList? ShouldValue { get; set; } + private ICollection? ShouldValue { get; set; } private QueryContainerDescriptor ShouldDescriptor { get; set; } @@ -103,7 +103,7 @@ public BoolQueryDescriptor() : base() private Elastic.Clients.Elasticsearch.MinimumShouldMatch? MinimumShouldMatchValue { get; set; } - public BoolQueryDescriptor Filter(IList? filter) + public BoolQueryDescriptor Filter(ICollection? filter) { FilterDescriptor = null; FilterDescriptorAction = null; @@ -139,7 +139,7 @@ public BoolQueryDescriptor Filter(params Action Must(IList? must) + public BoolQueryDescriptor Must(ICollection? must) { MustDescriptor = null; MustDescriptorAction = null; @@ -175,7 +175,7 @@ public BoolQueryDescriptor Must(params Action MustNot(IList? mustNot) + public BoolQueryDescriptor MustNot(ICollection? mustNot) { MustNotDescriptor = null; MustNotDescriptorAction = null; @@ -211,7 +211,7 @@ public BoolQueryDescriptor MustNot(params Action Should(IList? should) + public BoolQueryDescriptor Should(ICollection? should) { ShouldDescriptor = null; ShouldDescriptorAction = null; @@ -421,7 +421,7 @@ public BoolQueryDescriptor() : base() { } - private IList? FilterValue { get; set; } + private ICollection? FilterValue { get; set; } private QueryContainerDescriptor FilterDescriptor { get; set; } @@ -429,7 +429,7 @@ public BoolQueryDescriptor() : base() private Action[] FilterDescriptorActions { get; set; } - private IList? MustValue { get; set; } + private ICollection? MustValue { get; set; } private QueryContainerDescriptor MustDescriptor { get; set; } @@ -437,7 +437,7 @@ public BoolQueryDescriptor() : base() private Action[] MustDescriptorActions { get; set; } - private IList? MustNotValue { get; set; } + private ICollection? MustNotValue { get; set; } private QueryContainerDescriptor MustNotDescriptor { get; set; } @@ -445,7 +445,7 @@ public BoolQueryDescriptor() : base() private Action[] MustNotDescriptorActions { get; set; } - private IList? ShouldValue { get; set; } + private ICollection? ShouldValue { get; set; } private QueryContainerDescriptor ShouldDescriptor { get; set; } @@ -459,7 +459,7 @@ public BoolQueryDescriptor() : base() private Elastic.Clients.Elasticsearch.MinimumShouldMatch? MinimumShouldMatchValue { get; set; } - public BoolQueryDescriptor Filter(IList? filter) + public BoolQueryDescriptor Filter(ICollection? filter) { FilterDescriptor = null; FilterDescriptorAction = null; @@ -495,7 +495,7 @@ public BoolQueryDescriptor Filter(params Action[] conf return Self; } - public BoolQueryDescriptor Must(IList? must) + public BoolQueryDescriptor Must(ICollection? must) { MustDescriptor = null; MustDescriptorAction = null; @@ -531,7 +531,7 @@ public BoolQueryDescriptor Must(params Action[] config return Self; } - public BoolQueryDescriptor MustNot(IList? mustNot) + public BoolQueryDescriptor MustNot(ICollection? mustNot) { MustNotDescriptor = null; MustNotDescriptorAction = null; @@ -567,7 +567,7 @@ public BoolQueryDescriptor MustNot(params Action[] con return Self; } - public BoolQueryDescriptor Should(IList? should) + public BoolQueryDescriptor Should(ICollection? should) { ShouldDescriptor = null; ShouldDescriptorAction = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/DisMaxQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/DisMaxQuery.g.cs index f3805161ff1..32465646cf0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/DisMaxQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/DisMaxQuery.g.cs @@ -37,7 +37,7 @@ public sealed partial class DisMaxQuery : Query [JsonInclude] [JsonPropertyName("queries")] - public IList Queries { get; set; } + public ICollection Queries { get; set; } [JsonInclude] [JsonPropertyName("tie_breaker")] @@ -53,7 +53,7 @@ public DisMaxQueryDescriptor() : base() { } - private IList QueriesValue { get; set; } + private ICollection QueriesValue { get; set; } private QueryContainerDescriptor QueriesDescriptor { get; set; } @@ -67,7 +67,7 @@ public DisMaxQueryDescriptor() : base() private double? TieBreakerValue { get; set; } - public DisMaxQueryDescriptor Queries(IList queries) + public DisMaxQueryDescriptor Queries(ICollection queries) { QueriesDescriptor = null; QueriesDescriptorAction = null; @@ -184,7 +184,7 @@ public DisMaxQueryDescriptor() : base() { } - private IList QueriesValue { get; set; } + private ICollection QueriesValue { get; set; } private QueryContainerDescriptor QueriesDescriptor { get; set; } @@ -198,7 +198,7 @@ public DisMaxQueryDescriptor() : base() private double? TieBreakerValue { get; set; } - public DisMaxQueryDescriptor Queries(IList queries) + public DisMaxQueryDescriptor Queries(ICollection queries) { QueriesDescriptor = null; QueriesDescriptorAction = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FunctionScoreQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FunctionScoreQuery.g.cs index 57e46326a3b..6ee34cf0fa8 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FunctionScoreQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/FunctionScoreQuery.g.cs @@ -41,7 +41,7 @@ public sealed partial class FunctionScoreQuery : Query [JsonInclude] [JsonPropertyName("functions")] - public IList? Functions { get; set; } + public ICollection? Functions { get; set; } [JsonInclude] [JsonPropertyName("max_boost")] @@ -69,7 +69,7 @@ public FunctionScoreQueryDescriptor() : base() { } - private IList? FunctionsValue { get; set; } + private ICollection? FunctionsValue { get; set; } private FunctionScoreContainerDescriptor FunctionsDescriptor { get; set; } @@ -95,7 +95,7 @@ public FunctionScoreQueryDescriptor() : base() private Elastic.Clients.Elasticsearch.QueryDsl.FunctionScoreMode? ScoreModeValue { get; set; } - public FunctionScoreQueryDescriptor Functions(IList? functions) + public FunctionScoreQueryDescriptor Functions(ICollection? functions) { FunctionsDescriptor = null; FunctionsDescriptorAction = null; @@ -288,7 +288,7 @@ public FunctionScoreQueryDescriptor() : base() { } - private IList? FunctionsValue { get; set; } + private ICollection? FunctionsValue { get; set; } private FunctionScoreContainerDescriptor FunctionsDescriptor { get; set; } @@ -314,7 +314,7 @@ public FunctionScoreQueryDescriptor() : base() private Elastic.Clients.Elasticsearch.QueryDsl.FunctionScoreMode? ScoreModeValue { get; set; } - public FunctionScoreQueryDescriptor Functions(IList? functions) + public FunctionScoreQueryDescriptor Functions(ICollection? functions) { FunctionsDescriptor = null; FunctionsDescriptorAction = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsAllOf.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsAllOf.g.cs index f8395f9ea64..9a7afa1f966 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsAllOf.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsAllOf.g.cs @@ -33,7 +33,7 @@ public sealed partial class IntervalsAllOf [JsonInclude] [JsonPropertyName("intervals")] - public IList Intervals { get; set; } + public ICollection Intervals { get; set; } [JsonInclude] [JsonPropertyName("max_gaps")] @@ -51,7 +51,7 @@ public IntervalsAllOfDescriptor() : base() { } - private IList IntervalsValue { get; set; } + private ICollection IntervalsValue { get; set; } private IntervalsContainerDescriptor IntervalsDescriptor { get; set; } @@ -69,7 +69,7 @@ public IntervalsAllOfDescriptor() : base() private bool? OrderedValue { get; set; } - public IntervalsAllOfDescriptor Intervals(IList intervals) + public IntervalsAllOfDescriptor Intervals(ICollection intervals) { IntervalsDescriptor = null; IntervalsDescriptorAction = null; @@ -214,7 +214,7 @@ public IntervalsAllOfDescriptor() : base() { } - private IList IntervalsValue { get; set; } + private ICollection IntervalsValue { get; set; } private IntervalsContainerDescriptor IntervalsDescriptor { get; set; } @@ -232,7 +232,7 @@ public IntervalsAllOfDescriptor() : base() private bool? OrderedValue { get; set; } - public IntervalsAllOfDescriptor Intervals(IList intervals) + public IntervalsAllOfDescriptor Intervals(ICollection intervals) { IntervalsDescriptor = null; IntervalsDescriptorAction = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsAnyOf.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsAnyOf.g.cs index a9c8b955cea..1642423660b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsAnyOf.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/IntervalsAnyOf.g.cs @@ -33,7 +33,7 @@ public sealed partial class IntervalsAnyOf [JsonInclude] [JsonPropertyName("intervals")] - public IList Intervals { get; set; } + public ICollection Intervals { get; set; } } public sealed partial class IntervalsAnyOfDescriptor : SerializableDescriptor> @@ -43,7 +43,7 @@ public IntervalsAnyOfDescriptor() : base() { } - private IList IntervalsValue { get; set; } + private ICollection IntervalsValue { get; set; } private IntervalsContainerDescriptor IntervalsDescriptor { get; set; } @@ -57,7 +57,7 @@ public IntervalsAnyOfDescriptor() : base() private Action FilterDescriptorAction { get; set; } - public IntervalsAnyOfDescriptor Intervals(IList intervals) + public IntervalsAnyOfDescriptor Intervals(ICollection intervals) { IntervalsDescriptor = null; IntervalsDescriptorAction = null; @@ -178,7 +178,7 @@ public IntervalsAnyOfDescriptor() : base() { } - private IList IntervalsValue { get; set; } + private ICollection IntervalsValue { get; set; } private IntervalsContainerDescriptor IntervalsDescriptor { get; set; } @@ -192,7 +192,7 @@ public IntervalsAnyOfDescriptor() : base() private Action FilterDescriptorAction { get; set; } - public IntervalsAnyOfDescriptor Intervals(IList intervals) + public IntervalsAnyOfDescriptor Intervals(ICollection intervals) { IntervalsDescriptor = null; IntervalsDescriptorAction = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MoreLikeThisQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MoreLikeThisQuery.g.cs index 04ac1ef34a7..91da69ab002 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MoreLikeThisQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MoreLikeThisQuery.g.cs @@ -57,7 +57,7 @@ public sealed partial class MoreLikeThisQuery : Query [JsonInclude] [JsonPropertyName("like")] - public IList Like { get; set; } + public ICollection Like { get; set; } [JsonInclude] [JsonPropertyName("max_doc_freq")] @@ -98,11 +98,11 @@ public sealed partial class MoreLikeThisQuery : Query [JsonInclude] [JsonPropertyName("stop_words")] [JsonConverter(typeof(StopWordsConverter))] - public IList? StopWords { get; set; } + public ICollection? StopWords { get; set; } [JsonInclude] [JsonPropertyName("unlike")] - public IList? Unlike { get; set; } + public ICollection? Unlike { get; set; } [JsonInclude] [JsonPropertyName("version")] @@ -136,7 +136,7 @@ public MoreLikeThisQueryDescriptor() : base() private bool? IncludeValue { get; set; } - private IList LikeValue { get; set; } + private ICollection LikeValue { get; set; } private int? MaxDocFreqValue { get; set; } @@ -156,9 +156,9 @@ public MoreLikeThisQueryDescriptor() : base() private Elastic.Clients.Elasticsearch.Routing? RoutingValue { get; set; } - private IList? StopWordsValue { get; set; } + private ICollection? StopWordsValue { get; set; } - private IList? UnlikeValue { get; set; } + private ICollection? UnlikeValue { get; set; } private long? VersionValue { get; set; } @@ -206,7 +206,7 @@ public MoreLikeThisQueryDescriptor Include(bool? include = true) return Self; } - public MoreLikeThisQueryDescriptor Like(IList like) + public MoreLikeThisQueryDescriptor Like(ICollection like) { LikeValue = like; return Self; @@ -266,13 +266,13 @@ public MoreLikeThisQueryDescriptor Routing(Elastic.Clients.Elasticsea return Self; } - public MoreLikeThisQueryDescriptor StopWords(IList? stopWords) + public MoreLikeThisQueryDescriptor StopWords(ICollection? stopWords) { StopWordsValue = stopWords; return Self; } - public MoreLikeThisQueryDescriptor Unlike(IList? unlike) + public MoreLikeThisQueryDescriptor Unlike(ICollection? unlike) { UnlikeValue = unlike; return Self; @@ -440,7 +440,7 @@ public MoreLikeThisQueryDescriptor() : base() private bool? IncludeValue { get; set; } - private IList LikeValue { get; set; } + private ICollection LikeValue { get; set; } private int? MaxDocFreqValue { get; set; } @@ -460,9 +460,9 @@ public MoreLikeThisQueryDescriptor() : base() private Elastic.Clients.Elasticsearch.Routing? RoutingValue { get; set; } - private IList? StopWordsValue { get; set; } + private ICollection? StopWordsValue { get; set; } - private IList? UnlikeValue { get; set; } + private ICollection? UnlikeValue { get; set; } private long? VersionValue { get; set; } @@ -510,7 +510,7 @@ public MoreLikeThisQueryDescriptor Include(bool? include = true) return Self; } - public MoreLikeThisQueryDescriptor Like(IList like) + public MoreLikeThisQueryDescriptor Like(ICollection like) { LikeValue = like; return Self; @@ -570,13 +570,13 @@ public MoreLikeThisQueryDescriptor Routing(Elastic.Clients.Elasticsearch.Routing return Self; } - public MoreLikeThisQueryDescriptor StopWords(IList? stopWords) + public MoreLikeThisQueryDescriptor StopWords(ICollection? stopWords) { StopWordsValue = stopWords; return Self; } - public MoreLikeThisQueryDescriptor Unlike(IList? unlike) + public MoreLikeThisQueryDescriptor Unlike(ICollection? unlike) { UnlikeValue = unlike; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/PercolateQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/PercolateQuery.g.cs index d51bfb703d9..5c114cc3e25 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/PercolateQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/PercolateQuery.g.cs @@ -41,7 +41,7 @@ public sealed partial class PercolateQuery : Query [JsonInclude] [JsonPropertyName("documents")] - public IList? Documents { get; set; } + public ICollection? Documents { get; set; } [JsonInclude] [JsonPropertyName("field")] @@ -87,7 +87,7 @@ public PercolateQueryDescriptor() : base() private object? DocumentValue { get; set; } - private IList? DocumentsValue { get; set; } + private ICollection? DocumentsValue { get; set; } private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } @@ -121,7 +121,7 @@ public PercolateQueryDescriptor Document(object? document) return Self; } - public PercolateQueryDescriptor Documents(IList? documents) + public PercolateQueryDescriptor Documents(ICollection? documents) { DocumentsValue = documents; return Self; @@ -251,7 +251,7 @@ public PercolateQueryDescriptor() : base() private object? DocumentValue { get; set; } - private IList? DocumentsValue { get; set; } + private ICollection? DocumentsValue { get; set; } private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } @@ -285,7 +285,7 @@ public PercolateQueryDescriptor Document(object? document) return Self; } - public PercolateQueryDescriptor Documents(IList? documents) + public PercolateQueryDescriptor Documents(ICollection? documents) { DocumentsValue = documents; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanNearQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanNearQuery.g.cs index 01538a79a3e..700b73ef4f3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanNearQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanNearQuery.g.cs @@ -37,7 +37,7 @@ public sealed partial class SpanNearQuery : Query [JsonInclude] [JsonPropertyName("clauses")] - public IList Clauses { get; set; } + public ICollection Clauses { get; set; } [JsonInclude] [JsonPropertyName("in_order")] @@ -55,7 +55,7 @@ public SpanNearQueryDescriptor() : base() { } - private IList ClausesValue { get; set; } + private ICollection ClausesValue { get; set; } private SpanQueryDescriptor ClausesDescriptor { get; set; } @@ -71,7 +71,7 @@ public SpanNearQueryDescriptor() : base() private int? SlopValue { get; set; } - public SpanNearQueryDescriptor Clauses(IList clauses) + public SpanNearQueryDescriptor Clauses(ICollection clauses) { ClausesDescriptor = null; ClausesDescriptorAction = null; @@ -200,7 +200,7 @@ public SpanNearQueryDescriptor() : base() { } - private IList ClausesValue { get; set; } + private ICollection ClausesValue { get; set; } private SpanQueryDescriptor ClausesDescriptor { get; set; } @@ -216,7 +216,7 @@ public SpanNearQueryDescriptor() : base() private int? SlopValue { get; set; } - public SpanNearQueryDescriptor Clauses(IList clauses) + public SpanNearQueryDescriptor Clauses(ICollection clauses) { ClausesDescriptor = null; ClausesDescriptorAction = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanOrQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanOrQuery.g.cs index 8c38e20ef78..5b0577e2b75 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanOrQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SpanOrQuery.g.cs @@ -37,7 +37,7 @@ public sealed partial class SpanOrQuery : Query [JsonInclude] [JsonPropertyName("clauses")] - public IList Clauses { get; set; } + public ICollection Clauses { get; set; } } public sealed partial class SpanOrQueryDescriptor : SerializableDescriptor> @@ -47,7 +47,7 @@ public SpanOrQueryDescriptor() : base() { } - private IList ClausesValue { get; set; } + private ICollection ClausesValue { get; set; } private SpanQueryDescriptor ClausesDescriptor { get; set; } @@ -59,7 +59,7 @@ public SpanOrQueryDescriptor() : base() private float? BoostValue { get; set; } - public SpanOrQueryDescriptor Clauses(IList clauses) + public SpanOrQueryDescriptor Clauses(ICollection clauses) { ClausesDescriptor = null; ClausesDescriptorAction = null; @@ -164,7 +164,7 @@ public SpanOrQueryDescriptor() : base() { } - private IList ClausesValue { get; set; } + private ICollection ClausesValue { get; set; } private SpanQueryDescriptor ClausesDescriptor { get; set; } @@ -176,7 +176,7 @@ public SpanOrQueryDescriptor() : base() private float? BoostValue { get; set; } - public SpanOrQueryDescriptor Clauses(IList clauses) + public SpanOrQueryDescriptor Clauses(ICollection clauses) { ClausesDescriptor = null; ClausesDescriptorAction = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermsSetQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermsSetQuery.g.cs index 9bf3e8b269f..c096a82669a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermsSetQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/TermsSetQuery.g.cs @@ -66,7 +66,7 @@ public override TermsSetQuery Read(ref Utf8JsonReader reader, Type typeToConvert if (property == "terms") { - variant.Terms = JsonSerializer.Deserialize>(ref reader, options); + variant.Terms = JsonSerializer.Deserialize>(ref reader, options); continue; } } @@ -138,7 +138,7 @@ public TermsSetQuery(Field field) public Elastic.Clients.Elasticsearch.Script? MinimumShouldMatchScript { get; set; } - public IList Terms { get; set; } + public ICollection Terms { get; set; } public Elastic.Clients.Elasticsearch.Field Field { get; set; } @@ -176,7 +176,7 @@ public TermsSetQueryDescriptor(Expression> field) private Elastic.Clients.Elasticsearch.Script? MinimumShouldMatchScriptValue { get; set; } - private IList TermsValue { get; set; } + private ICollection TermsValue { get; set; } public TermsSetQueryDescriptor QueryName(string? queryName) { @@ -220,7 +220,7 @@ public TermsSetQueryDescriptor MinimumShouldMatchScript(Elastic.Clien return Self; } - public TermsSetQueryDescriptor Terms(IList terms) + public TermsSetQueryDescriptor Terms(ICollection terms) { TermsValue = terms; return Self; @@ -288,7 +288,7 @@ public TermsSetQueryDescriptor(Field field) private Elastic.Clients.Elasticsearch.Script? MinimumShouldMatchScriptValue { get; set; } - private IList TermsValue { get; set; } + private ICollection TermsValue { get; set; } public TermsSetQueryDescriptor QueryName(string? queryName) { @@ -344,7 +344,7 @@ public TermsSetQueryDescriptor MinimumShouldMatchScript(Elastic.Clients.Elastics return Self; } - public TermsSetQueryDescriptor Terms(IList terms) + public TermsSetQueryDescriptor Terms(ICollection terms) { TermsValue = terms; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SortConverter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SortConverter.g.cs index 1272f62e4a9..0f943f9f5a6 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/SortConverter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/SortConverter.g.cs @@ -26,6 +26,6 @@ #nullable restore namespace Elastic.Clients.Elasticsearch; -internal sealed class SortConverter : IEnumerableSingleOrManyConverter +internal sealed class SortConverter : ICollectionSingleOrManyConverter { } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/StopWordsConverter.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/StopWordsConverter.g.cs index ce3f9e8fc39..82364f20702 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/StopWordsConverter.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/StopWordsConverter.g.cs @@ -26,6 +26,6 @@ #nullable restore namespace Elastic.Clients.Elasticsearch; -internal sealed class StopWordsConverter : IEnumerableSingleOrManyConverter +internal sealed class StopWordsConverter : ICollectionSingleOrManyConverter { } \ No newline at end of file