diff --git a/src/Elastic.Clients.Elasticsearch/Serialization/IEnumerableSingleOrManyConverter.cs b/src/Elastic.Clients.Elasticsearch/Serialization/IEnumerableSingleOrManyConverter.cs index 113b00b47a4..7bb2f96a8ec 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 IEnumerableSingleOrManyConverter : JsonConverter> { - public override IEnumerable? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) => + public override IList? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) => SingleOrManySerializationHelper.Deserialize(ref reader, options); - public override void Write(Utf8JsonWriter writer, IEnumerable value, JsonSerializerOptions options) => + public override void Write(Utf8JsonWriter writer, IList 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 ea3c40f20d3..3b26266abe4 100644 --- a/src/Elastic.Clients.Elasticsearch/Serialization/SingleOrManySerializationHelper.cs +++ b/src/Elastic.Clients.Elasticsearch/Serialization/SingleOrManySerializationHelper.cs @@ -5,13 +5,12 @@ using System.Collections.Generic; using System.Linq; using System.Text.Json; -using System; namespace Elastic.Clients.Elasticsearch.Serialization; internal static class SingleOrManySerializationHelper { - public static IEnumerable Deserialize(ref Utf8JsonReader reader, JsonSerializerOptions options) + public static IList Deserialize(ref Utf8JsonReader reader, JsonSerializerOptions options) { if (reader.TokenType == JsonTokenType.StartObject) { @@ -44,7 +43,7 @@ public static IEnumerable Deserialize(ref Utf8JsonReader reader, J throw new JsonException("Unexpected token."); } - public static void Serialize(IEnumerable value, Utf8JsonWriter writer, JsonSerializerOptions options) + public static void Serialize(IList value, Utf8JsonWriter writer, JsonSerializerOptions options) { if (value is not ICollection collection) { 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 0fbe0ed81fc..c7e56e0a298 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable>? IndicesBoost { get; set; } + public IList>? IndicesBoost { get; set; } [JsonInclude] [JsonPropertyName("docvalue_fields")] - public IEnumerable? DocvalueFields { get; set; } + public IList? DocvalueFields { get; set; } [JsonInclude] [JsonPropertyName("knn")] @@ -702,7 +702,7 @@ public AsyncSearchSubmitRequest(Elastic.Clients.Elasticsearch.Indices? indices) [JsonInclude] [JsonPropertyName("rescore")] - public IEnumerable? Rescore { get; set; } + public IList? Rescore { get; set; } [JsonInclude] [JsonPropertyName("script_fields")] @@ -710,7 +710,7 @@ public AsyncSearchSubmitRequest(Elastic.Clients.Elasticsearch.Indices? indices) [JsonInclude] [JsonPropertyName("search_after")] - public IEnumerable? SearchAfter { get; set; } + public IList? SearchAfter { get; set; } [JsonInclude] [JsonPropertyName("size")] @@ -723,7 +723,7 @@ public AsyncSearchSubmitRequest(Elastic.Clients.Elasticsearch.Indices? indices) [JsonInclude] [JsonPropertyName("sort")] [JsonConverter(typeof(SortConverter))] - public IEnumerable? Sort { get; set; } + public IList? Sort { get; set; } [JsonInclude] [JsonPropertyName("_source")] @@ -731,7 +731,7 @@ public AsyncSearchSubmitRequest(Elastic.Clients.Elasticsearch.Indices? indices) [JsonInclude] [JsonPropertyName("fields")] - public IEnumerable? Fields { get; set; } + public IList? Fields { get; set; } [JsonInclude] [JsonPropertyName("suggest")] @@ -771,7 +771,7 @@ public AsyncSearchSubmitRequest(Elastic.Clients.Elasticsearch.Indices? indices) [JsonInclude] [JsonPropertyName("stats")] - public IEnumerable? Stats { get; set; } + public IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public AsyncSearchSubmitRequestDescriptor ExpandWildcards(IList? 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 IEnumerable? DocvalueFieldsValue { get; set; } + private IList? 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 IEnumerable? FieldsValue { get; set; } + private IList? 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 IEnumerable? RescoreValue { get; set; } + private IList? 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 IEnumerable>? IndicesBoostValue { get; set; } + private IList>? IndicesBoostValue { get; set; } private double? MinScoreValue { get; set; } @@ -919,15 +919,15 @@ public AsyncSearchSubmitRequestDescriptor Indices(Elastic.Clients.Ela private Dictionary? ScriptFieldsValue { get; set; } - private IEnumerable? SearchAfterValue { get; set; } + private IList? SearchAfterValue { get; set; } private bool? SeqNoPrimaryTermValue { get; set; } private int? SizeValue { get; set; } - private IEnumerable? SortValue { get; set; } + private IList? SortValue { get; set; } - private IEnumerable? StatsValue { get; set; } + private IList? StatsValue { get; set; } private Elastic.Clients.Elasticsearch.Fields? StoredFieldsValue { get; set; } @@ -995,7 +995,7 @@ public AsyncSearchSubmitRequestDescriptor Collapse(Action DocvalueFields(IEnumerable? docvalueFields) + public AsyncSearchSubmitRequestDescriptor DocvalueFields(IList? docvalueFields) { DocvalueFieldsDescriptor = null; DocvalueFieldsDescriptorAction = null; @@ -1031,7 +1031,7 @@ public AsyncSearchSubmitRequestDescriptor DocvalueFields(params Actio return Self; } - public AsyncSearchSubmitRequestDescriptor Fields(IEnumerable? fields) + public AsyncSearchSubmitRequestDescriptor Fields(IList? fields) { FieldsDescriptor = null; FieldsDescriptorAction = null; @@ -1163,7 +1163,7 @@ public AsyncSearchSubmitRequestDescriptor Query(Action Rescore(IEnumerable? rescore) + public AsyncSearchSubmitRequestDescriptor Rescore(IList? rescore) { RescoreDescriptor = null; RescoreDescriptorAction = null; @@ -1247,7 +1247,7 @@ public AsyncSearchSubmitRequestDescriptor From(int? from) return Self; } - public AsyncSearchSubmitRequestDescriptor IndicesBoost(IEnumerable>? indicesBoost) + public AsyncSearchSubmitRequestDescriptor IndicesBoost(IList>? indicesBoost) { IndicesBoostValue = indicesBoost; return Self; @@ -1301,7 +1301,7 @@ public AsyncSearchSubmitRequestDescriptor ScriptFields(Func SearchAfter(IEnumerable? searchAfter) + public AsyncSearchSubmitRequestDescriptor SearchAfter(IList? searchAfter) { SearchAfterValue = searchAfter; return Self; @@ -1319,13 +1319,13 @@ public AsyncSearchSubmitRequestDescriptor Size(int? size) return Self; } - public AsyncSearchSubmitRequestDescriptor Sort(IEnumerable? sort) + public AsyncSearchSubmitRequestDescriptor Sort(IList? sort) { SortValue = sort; return Self; } - public AsyncSearchSubmitRequestDescriptor Stats(IEnumerable? stats) + public AsyncSearchSubmitRequestDescriptor Stats(IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public AsyncSearchSubmitRequestDescriptor ExpandWildcards(IList? 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 IEnumerable? DocvalueFieldsValue { get; set; } + private IList? 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 IEnumerable? FieldsValue { get; set; } + private IList? 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 IEnumerable? RescoreValue { get; set; } + private IList? 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 IEnumerable>? IndicesBoostValue { get; set; } + private IList>? IndicesBoostValue { get; set; } private double? MinScoreValue { get; set; } @@ -1893,15 +1893,15 @@ public AsyncSearchSubmitRequestDescriptor Indices(Elastic.Clients.Elasticsearch. private Dictionary? ScriptFieldsValue { get; set; } - private IEnumerable? SearchAfterValue { get; set; } + private IList? SearchAfterValue { get; set; } private bool? SeqNoPrimaryTermValue { get; set; } private int? SizeValue { get; set; } - private IEnumerable? SortValue { get; set; } + private IList? SortValue { get; set; } - private IEnumerable? StatsValue { get; set; } + private IList? StatsValue { get; set; } private Elastic.Clients.Elasticsearch.Fields? StoredFieldsValue { get; set; } @@ -1969,7 +1969,7 @@ public AsyncSearchSubmitRequestDescriptor Collapse(Action? docvalueFields) + public AsyncSearchSubmitRequestDescriptor DocvalueFields(IList? docvalueFields) { DocvalueFieldsDescriptor = null; DocvalueFieldsDescriptorAction = null; @@ -2005,7 +2005,7 @@ public AsyncSearchSubmitRequestDescriptor DocvalueFields(params Action? fields) + public AsyncSearchSubmitRequestDescriptor Fields(IList? fields) { FieldsDescriptor = null; FieldsDescriptorAction = null; @@ -2137,7 +2137,7 @@ public AsyncSearchSubmitRequestDescriptor Query(Action? rescore) + public AsyncSearchSubmitRequestDescriptor Rescore(IList? rescore) { RescoreDescriptor = null; RescoreDescriptorAction = null; @@ -2221,7 +2221,7 @@ public AsyncSearchSubmitRequestDescriptor From(int? from) return Self; } - public AsyncSearchSubmitRequestDescriptor IndicesBoost(IEnumerable>? indicesBoost) + public AsyncSearchSubmitRequestDescriptor IndicesBoost(IList>? indicesBoost) { IndicesBoostValue = indicesBoost; return Self; @@ -2275,7 +2275,7 @@ public AsyncSearchSubmitRequestDescriptor ScriptFields(Func? searchAfter) + public AsyncSearchSubmitRequestDescriptor SearchAfter(IList? searchAfter) { SearchAfterValue = searchAfter; return Self; @@ -2293,13 +2293,13 @@ public AsyncSearchSubmitRequestDescriptor Size(int? size) return Self; } - public AsyncSearchSubmitRequestDescriptor Sort(IEnumerable? sort) + public AsyncSearchSubmitRequestDescriptor Sort(IList? sort) { SortValue = sort; return Self; } - public AsyncSearchSubmitRequestDescriptor Stats(IEnumerable? stats) + public AsyncSearchSubmitRequestDescriptor Stats(IList? 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 64bb432ae2f..d08fa1c8bd0 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public ClusterHealthRequestDescriptor ExpandWildcards(IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public ClusterHealthRequestDescriptor ExpandWildcards(IList? 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 2b5c3b5b3f8..55b10781ccd 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public CountRequestDescriptor ExpandWildcards(IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public CountRequestDescriptor ExpandWildcards(IList? 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 721efeb3761..90e4014ee4f 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? Sort { get => Q?>("sort"); set => Q("sort", value); } + public IList? Sort { get => Q?>("sort"); set => Q("sort", value); } [JsonIgnore] - public IEnumerable? Stats { get => Q?>("stats"); set => Q("stats", value); } + public IList? 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? Sort { get => Q?>("sort"); set => Q("sort", value); } + public IList? Sort { get => Q?>("sort"); set => Q("sort", value); } [JsonIgnore] - public IEnumerable? Stats { get => Q?>("stats"); set => Q("stats", value); } + public IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public DeleteByQueryRequestDescriptor ExpandWildcards(IList? 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(IEnumerable? sort) => Qs("sort", sort); - public DeleteByQueryRequestDescriptor Stats(IEnumerable? stats) => Qs("stats", stats); + public DeleteByQueryRequestDescriptor Sort(IList? sort) => Qs("sort", sort); + public DeleteByQueryRequestDescriptor Stats(IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public DeleteByQueryRequestDescriptor ExpandWildcards(IList? 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(IEnumerable? sort) => Qs("sort", sort); - public DeleteByQueryRequestDescriptor Stats(IEnumerable? stats) => Qs("stats", stats); + public DeleteByQueryRequestDescriptor Sort(IList? sort) => Qs("sort", sort); + public DeleteByQueryRequestDescriptor Stats(IList? 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 e85eca65a0e..d40de579fb5 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? Filter { get; set; } + public IList? Filter { get; set; } [JsonInclude] [JsonPropertyName("keep_alive")] @@ -103,7 +103,7 @@ public EqlSearchRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r [JsonInclude] [JsonPropertyName("fields")] - public IEnumerable? Fields { get; set; } + public IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public EqlSearchRequestDescriptor ExpandWildcards(IList? 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 IEnumerable? FieldsValue { get; set; } + private IList? 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 IEnumerable? FilterValue { get; set; } + private IList? 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(IEnumerable? fields) + public EqlSearchRequestDescriptor Fields(IList? fields) { FieldsDescriptor = null; FieldsDescriptorAction = null; @@ -213,7 +213,7 @@ public EqlSearchRequestDescriptor Fields(params Action Filter(IEnumerable? filter) + public EqlSearchRequestDescriptor Filter(IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public EqlSearchRequestDescriptor ExpandWildcards(IList? 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 IEnumerable? FieldsValue { get; set; } + private IList? 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 IEnumerable? FilterValue { get; set; } + private IList? 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(IEnumerable? fields) + public EqlSearchRequestDescriptor Fields(IList? fields) { FieldsDescriptor = null; FieldsDescriptorAction = null; @@ -575,7 +575,7 @@ public EqlSearchRequestDescriptor Fields(params Action? filter) + public EqlSearchRequestDescriptor Filter(IList? 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 dfe84a1e81f..f1a1946329d 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? Types { get => Q?>("types"); set => Q("types", value); } + public IList? 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? Types { get => Q?>("types"); set => Q("types", value); } + public IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public FieldCapsRequestDescriptor ExpandWildcards(IList? 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(IEnumerable? types) => Qs("types", types); + public FieldCapsRequestDescriptor Types(IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public FieldCapsRequestDescriptor ExpandWildcards(IList? 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(IEnumerable? types) => Qs("types", types); + public FieldCapsRequestDescriptor Types(IList? 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 a16ecda01f0..ad580bf7229 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public AliasRequestDescriptor ExpandWildcards(IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public AliasRequestDescriptor ExpandWildcards(IList? 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/AnalyzeRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AnalyzeRequest.g.cs index c9de4f3d9a3..f00581d7f81 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AnalyzeRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/AnalyzeRequest.g.cs @@ -50,11 +50,11 @@ public AnalyzeRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r = [JsonInclude] [JsonPropertyName("attributes")] - public IEnumerable? Attributes { get; set; } + public IList? Attributes { get; set; } [JsonInclude] [JsonPropertyName("char_filter")] - public IEnumerable? CharFilter { get; set; } + public IList? CharFilter { get; set; } [JsonInclude] [JsonPropertyName("explain")] @@ -66,7 +66,7 @@ public AnalyzeRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r = [JsonInclude] [JsonPropertyName("filter")] - public IEnumerable? Filter { get; set; } + public IList? Filter { get; set; } [JsonInclude] [JsonPropertyName("normalizer")] @@ -75,7 +75,7 @@ public AnalyzeRequest(Elastic.Clients.Elasticsearch.IndexName? index) : base(r = [JsonInclude] [JsonPropertyName("text")] [JsonConverter(typeof(TextToAnalyzeConverter))] - public IEnumerable? Text { get; set; } + public IList? Text { get; set; } [JsonInclude] [JsonPropertyName("tokenizer")] @@ -100,19 +100,19 @@ public AnalyzeRequestDescriptor Index(Elastic.Clients.Elasticsearch.I private string? AnalyzerValue { get; set; } - private IEnumerable? AttributesValue { get; set; } + private IList? AttributesValue { get; set; } - private IEnumerable? CharFilterValue { get; set; } + private IList? CharFilterValue { get; set; } private bool? ExplainValue { get; set; } private Elastic.Clients.Elasticsearch.Field? FieldValue { get; set; } - private IEnumerable? FilterValue { get; set; } + private IList? FilterValue { get; set; } private string? NormalizerValue { get; set; } - private IEnumerable? TextValue { get; set; } + private IList? TextValue { get; set; } private Elastic.Clients.Elasticsearch.Analysis.Tokenizer? TokenizerValue { get; set; } @@ -122,13 +122,13 @@ public AnalyzeRequestDescriptor Analyzer(string? analyzer) return Self; } - public AnalyzeRequestDescriptor Attributes(IEnumerable? attributes) + public AnalyzeRequestDescriptor Attributes(IList? attributes) { AttributesValue = attributes; return Self; } - public AnalyzeRequestDescriptor CharFilter(IEnumerable? charFilter) + public AnalyzeRequestDescriptor CharFilter(IList? charFilter) { CharFilterValue = charFilter; return Self; @@ -152,7 +152,7 @@ public AnalyzeRequestDescriptor Field(Expression Filter(IEnumerable? filter) + public AnalyzeRequestDescriptor Filter(IList? filter) { FilterValue = filter; return Self; @@ -164,7 +164,7 @@ public AnalyzeRequestDescriptor Normalizer(string? normalizer) return Self; } - public AnalyzeRequestDescriptor Text(IEnumerable? text) + public AnalyzeRequestDescriptor Text(IList? text) { TextValue = text; return Self; @@ -255,19 +255,19 @@ public AnalyzeRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName? i private string? AnalyzerValue { get; set; } - private IEnumerable? AttributesValue { get; set; } + private IList? AttributesValue { get; set; } - private IEnumerable? CharFilterValue { get; set; } + private IList? CharFilterValue { get; set; } private bool? ExplainValue { get; set; } private Elastic.Clients.Elasticsearch.Field? FieldValue { get; set; } - private IEnumerable? FilterValue { get; set; } + private IList? FilterValue { get; set; } private string? NormalizerValue { get; set; } - private IEnumerable? TextValue { get; set; } + private IList? TextValue { get; set; } private Elastic.Clients.Elasticsearch.Analysis.Tokenizer? TokenizerValue { get; set; } @@ -277,13 +277,13 @@ public AnalyzeRequestDescriptor Analyzer(string? analyzer) return Self; } - public AnalyzeRequestDescriptor Attributes(IEnumerable? attributes) + public AnalyzeRequestDescriptor Attributes(IList? attributes) { AttributesValue = attributes; return Self; } - public AnalyzeRequestDescriptor CharFilter(IEnumerable? charFilter) + public AnalyzeRequestDescriptor CharFilter(IList? charFilter) { CharFilterValue = charFilter; return Self; @@ -313,7 +313,7 @@ public AnalyzeRequestDescriptor Field(Expression? filter) + public AnalyzeRequestDescriptor Filter(IList? filter) { FilterValue = filter; return Self; @@ -325,7 +325,7 @@ public AnalyzeRequestDescriptor Normalizer(string? normalizer) return Self; } - public AnalyzeRequestDescriptor Text(IEnumerable? text) + public AnalyzeRequestDescriptor Text(IList? text) { TextValue = text; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs index 670ab177475..fb7babd9853 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ClearCacheRequest.g.cs @@ -33,7 +33,7 @@ public sealed class ClearCacheRequestParameters : RequestParameters Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? Fielddata { get => Q("fielddata"); set => Q("fielddata", value); } @@ -68,7 +68,7 @@ public ClearCacheRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base( public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? Fielddata { get => Q("fielddata"); set => Q("fielddata", value); } @@ -97,7 +97,7 @@ public ClearCacheRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.POST; protected override bool SupportsBody => false; public ClearCacheRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ClearCacheRequestDescriptor ExpandWildcards(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public ClearCacheRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); public ClearCacheRequestDescriptor Fielddata(bool? fielddata = true) => Qs("fielddata", fielddata); public ClearCacheRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Fields? fields) => Qs("fields", fields); public ClearCacheRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); @@ -125,7 +125,7 @@ public ClearCacheRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.POST; protected override bool SupportsBody => false; public ClearCacheRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ClearCacheRequestDescriptor ExpandWildcards(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public ClearCacheRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); public ClearCacheRequestDescriptor Fielddata(bool? fielddata = true) => Qs("fielddata", fielddata); public ClearCacheRequestDescriptor Fields(Elastic.Clients.Elasticsearch.Fields? fields) => Qs("fields", fields); public ClearCacheRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); 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 ae832e9bb2c..efbe433eecf 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public CloseRequestDescriptor ExpandWildcards(IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public CloseRequestDescriptor ExpandWildcards(IList? 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 20508cfc567..0c989591bbb 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public DataStreamRequestDescriptor ExpandWildcards(IList? 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/DataStreamsStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsRequest.g.cs index 3c607b2f373..ddf6fbc5c2d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/DataStreamsStatsRequest.g.cs @@ -30,7 +30,7 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; public sealed class DataStreamsStatsRequestParameters : RequestParameters { [JsonIgnore] - public IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } } public sealed partial class DataStreamsStatsRequest : PlainRequest @@ -47,7 +47,7 @@ public DataStreamsStatsRequest(Elastic.Clients.Elasticsearch.IndexName? name) : protected override HttpMethod HttpMethod => HttpMethod.GET; protected override bool SupportsBody => false; [JsonIgnore] - public IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } } public sealed partial class DataStreamsStatsRequestDescriptor : RequestDescriptor @@ -60,7 +60,7 @@ public DataStreamsStatsRequestDescriptor() internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementDataStreamsStats; protected override HttpMethod HttpMethod => HttpMethod.GET; protected override bool SupportsBody => false; - public DataStreamsStatsRequestDescriptor ExpandWildcards(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public DataStreamsStatsRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); public DataStreamsStatsRequestDescriptor Name(Elastic.Clients.Elasticsearch.IndexName? 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 bed1ce8eca8..79d8706ff11 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public DeleteDataStreamRequestDescriptor ExpandWildcards(IList? 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 b41999abccd..5d2ed3eaf6e 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public DeleteRequestDescriptor ExpandWildcards(IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public DeleteRequestDescriptor ExpandWildcards(IList? 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 277847c246e..e03d35d4c0f 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public ExistsAliasRequestDescriptor ExpandWildcards(IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public ExistsAliasRequestDescriptor ExpandWildcards(IList? 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 9235fea289c..f2f638b9766 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public ExistsRequestDescriptor ExpandWildcards(IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public ExistsRequestDescriptor ExpandWildcards(IList? 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 50f7a0a40b3..c24143d612a 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public FieldMappingRequestDescriptor ExpandWildcards(IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public FieldMappingRequestDescriptor ExpandWildcards(IList? 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 7ff28ebd0ec..811130c85a8 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public FlushRequestDescriptor ExpandWildcards(IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public FlushRequestDescriptor ExpandWildcards(IList? 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 d7c77b9b1d5..1be37bfec55 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public ForcemergeRequestDescriptor ExpandWildcards(IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public ForcemergeRequestDescriptor ExpandWildcards(IList? 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 51346c84e43..59af84183ed 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? Features { get => Q?>("features"); set => Q("features", value); } + public IList? 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? Features { get => Q?>("features"); set => Q("features", value); } + public IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public GetRequestDescriptor Features(IEnumerable? features) => Qs("features", features); + public GetRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public GetRequestDescriptor Features(IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); - public GetRequestDescriptor Features(IEnumerable? features) => Qs("features", features); + public GetRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public GetRequestDescriptor Features(IList? 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 f68f0d664a7..3b8f6649f2e 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public MappingRequestDescriptor ExpandWildcards(IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public MappingRequestDescriptor ExpandWildcards(IList? 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 90ce71e5942..50a3a661f97 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public OpenRequestDescriptor ExpandWildcards(IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public OpenRequestDescriptor ExpandWildcards(IList? 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 31e1e3d7387..b32aea72b13 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 IEnumerable? ComposedOf { get; set; } + public IList? ComposedOf { get; set; } [JsonInclude] [JsonPropertyName("template")] @@ -103,7 +103,7 @@ public PutIndexTemplateRequestDescriptor Name(Elastic.Clients.Elastic private Dictionary? MetaValue { get; set; } - private IEnumerable? ComposedOfValue { get; set; } + private IList? ComposedOfValue { get; set; } private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamVisibility? DataStreamValue { get; set; } @@ -147,7 +147,7 @@ public PutIndexTemplateRequestDescriptor Meta(Func ComposedOf(IEnumerable? composedOf) + public PutIndexTemplateRequestDescriptor ComposedOf(IList? composedOf) { ComposedOfValue = composedOf; return Self; @@ -293,7 +293,7 @@ public PutIndexTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name private Dictionary? MetaValue { get; set; } - private IEnumerable? ComposedOfValue { get; set; } + private IList? ComposedOfValue { get; set; } private Elastic.Clients.Elasticsearch.IndexManagement.DataStreamVisibility? DataStreamValue { get; set; } @@ -337,7 +337,7 @@ public PutIndexTemplateRequestDescriptor Meta(Func? composedOf) + public PutIndexTemplateRequestDescriptor ComposedOf(IList? 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 b57db4b0283..1619c78b8bd 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? DynamicDateFormats { get; set; } + public IList? DynamicDateFormats { get; set; } [JsonInclude] [JsonPropertyName("dynamic_templates")] - public Union?, IEnumerable>?>? DynamicTemplates { get; set; } + public Union?, IList>?>? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public PutMappingRequestDescriptor ExpandWildcards(IList? 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 IEnumerable? DynamicDateFormatsValue { get; set; } + private IList? DynamicDateFormatsValue { get; set; } - private Union?, IEnumerable>?>? DynamicTemplatesValue { get; set; } + private Union?, IList>?>? DynamicTemplatesValue { get; set; } private bool? NumericDetectionValue { get; set; } @@ -270,13 +270,13 @@ public PutMappingRequestDescriptor Dynamic(Elastic.Clients.Elasticsea return Self; } - public PutMappingRequestDescriptor DynamicDateFormats(IEnumerable? dynamicDateFormats) + public PutMappingRequestDescriptor DynamicDateFormats(IList? dynamicDateFormats) { DynamicDateFormatsValue = dynamicDateFormats; return Self; } - public PutMappingRequestDescriptor DynamicTemplates(Union?, IEnumerable>?>? dynamicTemplates) + public PutMappingRequestDescriptor DynamicTemplates(Union?, IList>?>? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public PutMappingRequestDescriptor ExpandWildcards(IList? 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 IEnumerable? DynamicDateFormatsValue { get; set; } + private IList? DynamicDateFormatsValue { get; set; } - private Union?, IEnumerable>?>? DynamicTemplatesValue { get; set; } + private Union?, IList>?>? DynamicTemplatesValue { get; set; } private bool? NumericDetectionValue { get; set; } @@ -567,13 +567,13 @@ public PutMappingRequestDescriptor Dynamic(Elastic.Clients.Elasticsearch.Mapping return Self; } - public PutMappingRequestDescriptor DynamicDateFormats(IEnumerable? dynamicDateFormats) + public PutMappingRequestDescriptor DynamicDateFormats(IList? dynamicDateFormats) { DynamicDateFormatsValue = dynamicDateFormats; return Self; } - public PutMappingRequestDescriptor DynamicTemplates(Union?, IEnumerable>?>? dynamicTemplates) + public PutMappingRequestDescriptor DynamicTemplates(Union?, IList>?>? dynamicTemplates) { DynamicTemplatesValue = dynamicTemplates; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSettingsRequest.g.cs index ab37be53b55..785e3ff0129 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSettingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/PutSettingsRequest.g.cs @@ -33,7 +33,7 @@ public sealed class PutSettingsRequestParameters : RequestParameters Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } @@ -68,7 +68,7 @@ public PutSettingsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } @@ -97,7 +97,7 @@ public PutSettingsRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.PUT; protected override bool SupportsBody => false; public PutSettingsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public PutSettingsRequestDescriptor ExpandWildcards(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public PutSettingsRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); public PutSettingsRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); public PutSettingsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public PutSettingsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); @@ -125,7 +125,7 @@ public PutSettingsRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.PUT; protected override bool SupportsBody => false; public PutSettingsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public PutSettingsRequestDescriptor ExpandWildcards(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public PutSettingsRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); public PutSettingsRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); public PutSettingsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public PutSettingsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? masterTimeout) => Qs("master_timeout", masterTimeout); 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 5d0abbc7797..711c817075c 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 IEnumerable? IndexPatterns { get; set; } + public IList? IndexPatterns { get; set; } [JsonInclude] [JsonPropertyName("mappings")] @@ -114,7 +114,7 @@ public PutTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch.Name name private Dictionary? AliasesValue { get; set; } - private IEnumerable? IndexPatternsValue { get; set; } + private IList? IndexPatternsValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.TypeMapping? MappingsValue { get; set; } @@ -134,7 +134,7 @@ public PutTemplateRequestDescriptor Aliases(Func? indexPatterns) + public PutTemplateRequestDescriptor IndexPatterns(IList? 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 162c4d4e5e7..fd604ad4d7f 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public RefreshRequestDescriptor ExpandWildcards(IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public RefreshRequestDescriptor ExpandWildcards(IList? 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/ReloadSearchAnalyzersRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs index 8c2a5270390..e9e7298c475 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ReloadSearchAnalyzersRequest.g.cs @@ -33,7 +33,7 @@ public sealed class ReloadSearchAnalyzersRequestParameters : RequestParameters Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 ReloadSearchAnalyzersRequest(Elastic.Clients.Elasticsearch.Indices indice public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 @@ internal ReloadSearchAnalyzersRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.POST; protected override bool SupportsBody => false; public ReloadSearchAnalyzersRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ReloadSearchAnalyzersRequestDescriptor ExpandWildcards(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public ReloadSearchAnalyzersRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); public ReloadSearchAnalyzersRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public ReloadSearchAnalyzersRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) { @@ -101,7 +101,7 @@ internal ReloadSearchAnalyzersRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.POST; protected override bool SupportsBody => false; public ReloadSearchAnalyzersRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ReloadSearchAnalyzersRequestDescriptor ExpandWildcards(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public ReloadSearchAnalyzersRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); public ReloadSearchAnalyzersRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public ReloadSearchAnalyzersRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices indices) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs index 34535f94c94..2516cd8644e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ResolveIndexRequest.g.cs @@ -30,7 +30,7 @@ namespace Elastic.Clients.Elasticsearch.IndexManagement; public sealed class ResolveIndexRequestParameters : RequestParameters { [JsonIgnore] - public IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } } public sealed partial class ResolveIndexRequest : PlainRequest @@ -43,7 +43,7 @@ public ResolveIndexRequest(Elastic.Clients.Elasticsearch.Names name) : base(r => protected override HttpMethod HttpMethod => HttpMethod.GET; protected override bool SupportsBody => false; [JsonIgnore] - public IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } } public sealed partial class ResolveIndexRequestDescriptor : RequestDescriptor @@ -60,7 +60,7 @@ internal ResolveIndexRequestDescriptor() internal override ApiUrls ApiUrls => ApiUrlsLookups.IndexManagementResolveIndex; protected override HttpMethod HttpMethod => HttpMethod.GET; protected override bool SupportsBody => false; - public ResolveIndexRequestDescriptor ExpandWildcards(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public ResolveIndexRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); public ResolveIndexRequestDescriptor Name(Elastic.Clients.Elasticsearch.Names name) { RouteValues.Required("name", name); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs index 246e1ab8dcd..632665583b3 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SegmentsRequest.g.cs @@ -33,7 +33,7 @@ public sealed class SegmentsRequestParameters : RequestParameters Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 SegmentsRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -79,7 +79,7 @@ public SegmentsRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.GET; protected override bool SupportsBody => false; public SegmentsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public SegmentsRequestDescriptor ExpandWildcards(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public SegmentsRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); public SegmentsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public SegmentsRequestDescriptor Verbose(bool? verbose = true) => Qs("verbose", verbose); public SegmentsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) @@ -104,7 +104,7 @@ public SegmentsRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.GET; protected override bool SupportsBody => false; public SegmentsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public SegmentsRequestDescriptor ExpandWildcards(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public SegmentsRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); public SegmentsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public SegmentsRequestDescriptor Verbose(bool? verbose = true) => Qs("verbose", verbose); public SegmentsRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SettingsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SettingsRequest.g.cs index 7d58675cdb2..7f9518c7091 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SettingsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/SettingsRequest.g.cs @@ -33,7 +33,7 @@ public sealed class SettingsRequestParameters : RequestParameters Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } @@ -76,7 +76,7 @@ public SettingsRequest(Elastic.Clients.Elasticsearch.Names? name) : base(r => r. public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? FlatSettings { get => Q("flat_settings"); set => Q("flat_settings", value); } @@ -113,7 +113,7 @@ public SettingsRequestDescriptor(Elastic.Clients.Elasticsearch.Names? name) : ba protected override HttpMethod HttpMethod => HttpMethod.GET; protected override bool SupportsBody => false; public SettingsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public SettingsRequestDescriptor ExpandWildcards(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public SettingsRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); public SettingsRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); public SettingsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public SettingsRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); @@ -155,7 +155,7 @@ public SettingsRequestDescriptor(Elastic.Clients.Elasticsearch.Names? name) : ba protected override HttpMethod HttpMethod => HttpMethod.GET; protected override bool SupportsBody => false; public SettingsRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public SettingsRequestDescriptor ExpandWildcards(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public SettingsRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); public SettingsRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings); public SettingsRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public SettingsRequestDescriptor IncludeDefaults(bool? includeDefaults = true) => Qs("include_defaults", includeDefaults); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs index ef630ba2246..66061a4f544 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ShardStoresRequest.g.cs @@ -33,13 +33,13 @@ public sealed class ShardStoresRequestParameters : RequestParameters Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } [JsonIgnore] - public IEnumerable? Status { get => Q?>("status"); set => Q("status", value); } + public IList? Status { get => Q?>("status"); set => Q("status", value); } } public sealed partial class ShardStoresRequest : PlainRequest @@ -59,13 +59,13 @@ public ShardStoresRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base public bool? AllowNoIndices { get => Q("allow_no_indices"); set => Q("allow_no_indices", value); } [JsonIgnore] - public IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } [JsonIgnore] - public IEnumerable? Status { get => Q?>("status"); set => Q("status", value); } + public IList? Status { get => Q?>("status"); set => Q("status", value); } } public sealed partial class ShardStoresRequestDescriptor : RequestDescriptor, ShardStoresRequestParameters> @@ -79,9 +79,9 @@ public ShardStoresRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.GET; protected override bool SupportsBody => false; public ShardStoresRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ShardStoresRequestDescriptor ExpandWildcards(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public ShardStoresRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); public ShardStoresRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public ShardStoresRequestDescriptor Status(IEnumerable? status) => Qs("status", status); + public ShardStoresRequestDescriptor Status(IList? status) => Qs("status", status); public ShardStoresRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) { RouteValues.Optional("index", indices); @@ -104,9 +104,9 @@ public ShardStoresRequestDescriptor() protected override HttpMethod HttpMethod => HttpMethod.GET; protected override bool SupportsBody => false; public ShardStoresRequestDescriptor AllowNoIndices(bool? allowNoIndices = true) => Qs("allow_no_indices", allowNoIndices); - public ShardStoresRequestDescriptor ExpandWildcards(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public ShardStoresRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); public ShardStoresRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); - public ShardStoresRequestDescriptor Status(IEnumerable? status) => Qs("status", status); + public ShardStoresRequestDescriptor Status(IList? status) => Qs("status", status); public ShardStoresRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices? indices) { RouteValues.Optional("index", 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 a8e83be0a60..82b1f5c658d 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 IEnumerable? ComposedOf { get; set; } + public IList? ComposedOf { get; set; } [JsonInclude] [JsonPropertyName("template")] @@ -116,7 +116,7 @@ public SimulateIndexTemplateRequestDescriptor Name(Elastic.Clients.El private bool? AllowAutoCreateValue { get; set; } - private IEnumerable? ComposedOfValue { get; set; } + private IList? 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(IEnumerable? composedOf) + public SimulateIndexTemplateRequestDescriptor ComposedOf(IList? composedOf) { ComposedOfValue = composedOf; return Self; @@ -321,7 +321,7 @@ public SimulateIndexTemplateRequestDescriptor Name(Elastic.Clients.Elasticsearch private bool? AllowAutoCreateValue { get; set; } - private IEnumerable? ComposedOfValue { get; set; } + private IList? 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(IEnumerable? composedOf) + public SimulateIndexTemplateRequestDescriptor ComposedOf(IList? 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 b1ce41b8caf..ce01b332183 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? Groups { get => Q?>("groups"); set => Q("groups", value); } + public IList? 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? Groups { get => Q?>("groups"); set => Q("groups", value); } + public IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public StatsRequestDescriptor ExpandWildcards(IList? 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(IEnumerable? groups) => Qs("groups", groups); + public StatsRequestDescriptor Groups(IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public StatsRequestDescriptor ExpandWildcards(IList? 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(IEnumerable? groups) => Qs("groups", groups); + public StatsRequestDescriptor Groups(IList? 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/IndexManagement/ValidateQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs index cd23b6f9ec8..fc420097922 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/IndexManagement/ValidateQueryRequest.g.cs @@ -48,7 +48,7 @@ public sealed class ValidateQueryRequestParameters : RequestParameters Q("df"); set => Q("df", value); } [JsonIgnore] - public IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? Explain { get => Q("explain"); set => Q("explain", value); } @@ -98,7 +98,7 @@ public ValidateQueryRequest(Elastic.Clients.Elasticsearch.Indices? indices) : ba public string? Df { get => Q("df"); set => Q("df", value); } [JsonIgnore] - public IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? Explain { get => Q("explain"); set => Q("explain", value); } @@ -136,7 +136,7 @@ public ValidateQueryRequestDescriptor() public ValidateQueryRequestDescriptor Analyzer(string? analyzer) => Qs("analyzer", analyzer); public ValidateQueryRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); public ValidateQueryRequestDescriptor Df(string? df) => Qs("df", df); - public ValidateQueryRequestDescriptor ExpandWildcards(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public ValidateQueryRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); public ValidateQueryRequestDescriptor Explain(bool? explain = true) => Qs("explain", explain); public ValidateQueryRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public ValidateQueryRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); @@ -217,7 +217,7 @@ public ValidateQueryRequestDescriptor() public ValidateQueryRequestDescriptor Analyzer(string? analyzer) => Qs("analyzer", analyzer); public ValidateQueryRequestDescriptor DefaultOperator(Elastic.Clients.Elasticsearch.QueryDsl.Operator? defaultOperator) => Qs("default_operator", defaultOperator); public ValidateQueryRequestDescriptor Df(string? df) => Qs("df", df); - public ValidateQueryRequestDescriptor ExpandWildcards(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public ValidateQueryRequestDescriptor ExpandWildcards(IList? expandWildcards) => Qs("expand_wildcards", expandWildcards); public ValidateQueryRequestDescriptor Explain(bool? explain = true) => Qs("explain", explain); public ValidateQueryRequestDescriptor IgnoreUnavailable(bool? ignoreUnavailable = true) => Qs("ignore_unavailable", ignoreUnavailable); public ValidateQueryRequestDescriptor Lenient(bool? lenient = true) => Qs("lenient", lenient); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/MultiGetRequest.g.cs index da77385e8bd..b7a0d62cad6 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 IEnumerable? Docs { get; set; } + public IList? Docs { get; set; } [JsonInclude] [JsonPropertyName("ids")] @@ -124,7 +124,7 @@ public MultiGetRequestDescriptor Index(Elastic.Clients.Elasticsearch. return Self; } - private IEnumerable? DocsValue { get; set; } + private IList? 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(IEnumerable? docs) + public MultiGetRequestDescriptor Docs(IList? docs) { DocsDescriptor = null; DocsDescriptorAction = null; @@ -244,7 +244,7 @@ public MultiGetRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName? return Self; } - private IEnumerable? DocsValue { get; set; } + private IList? 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(IEnumerable? docs) + public MultiGetRequestDescriptor Docs(IList? 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 80f5c4014a1..3aece40cf1b 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public MultiSearchRequestDescriptor ExpandWildcards(IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public MultiSearchRequestDescriptor ExpandWildcards(IList? 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 45f049fb62d..cbf2fbb46cd 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } [JsonIgnore] public bool? IgnoreUnavailable { get => Q("ignore_unavailable"); set => Q("ignore_unavailable", value); } @@ -55,7 +55,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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 RankEvalRequest(Elastic.Clients.Elasticsearch.Indices indices) : base(r = [JsonInclude] [JsonPropertyName("requests")] - public IEnumerable Requests { get; set; } + public IList Requests { get; set; } [JsonInclude] [JsonPropertyName("metric")] @@ -87,7 +87,7 @@ internal 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public RankEvalRequestDescriptor ExpandWildcards(IList? 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 IEnumerable RequestsValue { get; set; } + private IList 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(IEnumerable requests) + public RankEvalRequestDescriptor Requests(IList requests) { RequestsDescriptor = null; RequestsDescriptorAction = null; @@ -239,7 +239,7 @@ internal 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public RankEvalRequestDescriptor ExpandWildcards(IList? 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) @@ -248,7 +248,7 @@ public RankEvalRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices i return Self; } - private IEnumerable RequestsValue { get; set; } + private IList RequestsValue { get; set; } private Core.RankEval.RankEvalRequestItemDescriptor RequestsDescriptor { get; set; } @@ -262,7 +262,7 @@ public RankEvalRequestDescriptor Indices(Elastic.Clients.Elasticsearch.Indices i private Action MetricDescriptorAction { get; set; } - public RankEvalRequestDescriptor Requests(IEnumerable requests) + public RankEvalRequestDescriptor Requests(IList 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 9aca98f1f5f..c2802d1add2 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable>? IndicesBoost { get; set; } + public IList>? IndicesBoost { get; set; } [JsonInclude] [JsonPropertyName("docvalue_fields")] - public IEnumerable? DocvalueFields { get; set; } + public IList? DocvalueFields { get; set; } [JsonInclude] [JsonPropertyName("knn")] @@ -684,7 +684,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => [JsonInclude] [JsonPropertyName("rescore")] - public IEnumerable? Rescore { get; set; } + public IList? 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 IEnumerable? SearchAfter { get; set; } + public IList? 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 IEnumerable? Sort { get; set; } + public IList? Sort { get; set; } [JsonInclude] [JsonPropertyName("_source")] @@ -713,7 +713,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => [JsonInclude] [JsonPropertyName("fields")] - public IEnumerable? Fields { get; set; } + public IList? Fields { get; set; } [JsonInclude] [JsonPropertyName("suggest")] @@ -753,7 +753,7 @@ public SearchRequest(Elastic.Clients.Elasticsearch.Indices? indices) : base(r => [JsonInclude] [JsonPropertyName("stats")] - public IEnumerable? Stats { get; set; } + public IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public SearchRequestDescriptor ExpandWildcards(IList? 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 IEnumerable? DocvalueFieldsValue { get; set; } + private IList? 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 IEnumerable? FieldsValue { get; set; } + private IList? 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 IEnumerable? RescoreValue { get; set; } + private IList? 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 IEnumerable>? IndicesBoostValue { get; set; } + private IList>? IndicesBoostValue { get; set; } private double? MinScoreValue { get; set; } @@ -902,15 +902,15 @@ public SearchRequestDescriptor Indices(Elastic.Clients.Elasticsearch. private Dictionary? ScriptFieldsValue { get; set; } - private IEnumerable? SearchAfterValue { get; set; } + private IList? SearchAfterValue { get; set; } private bool? SeqNoPrimaryTermValue { get; set; } private int? SizeValue { get; set; } - private IEnumerable? SortValue { get; set; } + private IList? SortValue { get; set; } - private IEnumerable? StatsValue { get; set; } + private IList? StatsValue { get; set; } private Elastic.Clients.Elasticsearch.Fields? StoredFieldsValue { get; set; } @@ -978,7 +978,7 @@ public SearchRequestDescriptor Collapse(Action DocvalueFields(IEnumerable? docvalueFields) + public SearchRequestDescriptor DocvalueFields(IList? docvalueFields) { DocvalueFieldsDescriptor = null; DocvalueFieldsDescriptorAction = null; @@ -1014,7 +1014,7 @@ public SearchRequestDescriptor DocvalueFields(params Action Fields(IEnumerable? fields) + public SearchRequestDescriptor Fields(IList? fields) { FieldsDescriptor = null; FieldsDescriptorAction = null; @@ -1146,7 +1146,7 @@ public SearchRequestDescriptor Query(Action Rescore(IEnumerable? rescore) + public SearchRequestDescriptor Rescore(IList? rescore) { RescoreDescriptor = null; RescoreDescriptorAction = null; @@ -1230,7 +1230,7 @@ public SearchRequestDescriptor From(int? from) return Self; } - public SearchRequestDescriptor IndicesBoost(IEnumerable>? indicesBoost) + public SearchRequestDescriptor IndicesBoost(IList>? indicesBoost) { IndicesBoostValue = indicesBoost; return Self; @@ -1284,7 +1284,7 @@ public SearchRequestDescriptor ScriptFields(Func SearchAfter(IEnumerable? searchAfter) + public SearchRequestDescriptor SearchAfter(IList? searchAfter) { SearchAfterValue = searchAfter; return Self; @@ -1302,13 +1302,13 @@ public SearchRequestDescriptor Size(int? size) return Self; } - public SearchRequestDescriptor Sort(IEnumerable? sort) + public SearchRequestDescriptor Sort(IList? sort) { SortValue = sort; return Self; } - public SearchRequestDescriptor Stats(IEnumerable? stats) + public SearchRequestDescriptor Stats(IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public SearchRequestDescriptor ExpandWildcards(IList? 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 IEnumerable? DocvalueFieldsValue { get; set; } + private IList? 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 IEnumerable? FieldsValue { get; set; } + private IList? 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 IEnumerable? RescoreValue { get; set; } + private IList? 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 IEnumerable>? IndicesBoostValue { get; set; } + private IList>? 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 IEnumerable? SearchAfterValue { get; set; } + private IList? SearchAfterValue { get; set; } private bool? SeqNoPrimaryTermValue { get; set; } private int? SizeValue { get; set; } - private IEnumerable? SortValue { get; set; } + private IList? SortValue { get; set; } - private IEnumerable? StatsValue { get; set; } + private IList? StatsValue { get; set; } private Elastic.Clients.Elasticsearch.Fields? StoredFieldsValue { get; set; } @@ -1953,7 +1953,7 @@ public SearchRequestDescriptor Collapse(Action? docvalueFields) + public SearchRequestDescriptor DocvalueFields(IList? docvalueFields) { DocvalueFieldsDescriptor = null; DocvalueFieldsDescriptorAction = null; @@ -1989,7 +1989,7 @@ public SearchRequestDescriptor DocvalueFields(params Action? fields) + public SearchRequestDescriptor Fields(IList? fields) { FieldsDescriptor = null; FieldsDescriptorAction = null; @@ -2121,7 +2121,7 @@ public SearchRequestDescriptor Query(Action c return Self; } - public SearchRequestDescriptor Rescore(IEnumerable? rescore) + public SearchRequestDescriptor Rescore(IList? rescore) { RescoreDescriptor = null; RescoreDescriptorAction = null; @@ -2205,7 +2205,7 @@ public SearchRequestDescriptor From(int? from) return Self; } - public SearchRequestDescriptor IndicesBoost(IEnumerable>? indicesBoost) + public SearchRequestDescriptor IndicesBoost(IList>? indicesBoost) { IndicesBoostValue = indicesBoost; return Self; @@ -2259,7 +2259,7 @@ public SearchRequestDescriptor ScriptFields(Func? searchAfter) + public SearchRequestDescriptor SearchAfter(IList? searchAfter) { SearchAfterValue = searchAfter; return Self; @@ -2277,13 +2277,13 @@ public SearchRequestDescriptor Size(int? size) return Self; } - public SearchRequestDescriptor Sort(IEnumerable? sort) + public SearchRequestDescriptor Sort(IList? sort) { SortValue = sort; return Self; } - public SearchRequestDescriptor Stats(IEnumerable? stats) + public SearchRequestDescriptor Stats(IList? 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 ac60981f64d..203813cb608 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public SearchShardsRequestDescriptor ExpandWildcards(IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public SearchShardsRequestDescriptor ExpandWildcards(IList? 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 88c8ab909eb..44da21d64c4 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? Sort { get => Q?>("sort"); set => Q("sort", value); } + public IList? Sort { get => Q?>("sort"); set => Q("sort", value); } [JsonIgnore] - public IEnumerable? Stats { get => Q?>("stats"); set => Q("stats", value); } + public IList? 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 IEnumerable? ExpandWildcards { get => Q?>("expand_wildcards"); set => Q("expand_wildcards", value); } + public IList? 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 IEnumerable? Sort { get => Q?>("sort"); set => Q("sort", value); } + public IList? Sort { get => Q?>("sort"); set => Q("sort", value); } [JsonIgnore] - public IEnumerable? Stats { get => Q?>("stats"); set => Q("stats", value); } + public IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public UpdateByQueryRequestDescriptor ExpandWildcards(IList? 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(IEnumerable? sort) => Qs("sort", sort); - public UpdateByQueryRequestDescriptor Stats(IEnumerable? stats) => Qs("stats", stats); + public UpdateByQueryRequestDescriptor Sort(IList? sort) => Qs("sort", sort); + public UpdateByQueryRequestDescriptor Stats(IList? 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(IEnumerable? expandWildcards) => Qs("expand_wildcards", expandWildcards); + public UpdateByQueryRequestDescriptor ExpandWildcards(IList? 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(IEnumerable? sort) => Qs("sort", sort); - public UpdateByQueryRequestDescriptor Stats(IEnumerable? stats) => Qs("stats", stats); + public UpdateByQueryRequestDescriptor Sort(IList? sort) => Qs("sort", sort); + public UpdateByQueryRequestDescriptor Stats(IList? 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/Aggregations/CompositeAggregation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/CompositeAggregation.g.cs index dabc15e69f3..99d7435a5b8 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 IEnumerable>? Sources { get; set; } + public IList>? Sources { get; set; } } public sealed partial class CompositeAggregationDescriptor : SerializableDescriptor> @@ -189,7 +189,7 @@ public CompositeAggregationDescriptor() : base() private int? SizeValue { get; set; } - private IEnumerable>? SourcesValue { get; set; } + private IList>? 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(IEnumerable>? sources) + public CompositeAggregationDescriptor Sources(IList>? sources) { SourcesValue = sources; return Self; @@ -308,7 +308,7 @@ public CompositeAggregationDescriptor() : base() private int? SizeValue { get; set; } - private IEnumerable>? SourcesValue { get; set; } + private IList>? 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(IEnumerable>? sources) + public CompositeAggregationDescriptor Sources(IList>? 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 6027abf83c7..fe511338298 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 IEnumerable>? Order { get; set; } + public IList>? Order { get; set; } public Dictionary? Params { get; set; } @@ -360,7 +360,7 @@ public DateHistogramAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Duration? OffsetValue { get; set; } - private IEnumerable>? OrderValue { get; set; } + private IList>? OrderValue { get; set; } private Dictionary? ParamsValue { get; set; } @@ -446,7 +446,7 @@ public DateHistogramAggregationDescriptor Offset(Elastic.Clients.Elas return Self; } - public DateHistogramAggregationDescriptor Order(IEnumerable>? order) + public DateHistogramAggregationDescriptor Order(IList>? order) { OrderValue = order; return Self; @@ -597,7 +597,7 @@ public DateHistogramAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Duration? OffsetValue { get; set; } - private IEnumerable>? OrderValue { get; set; } + private IList>? OrderValue { get; set; } private Dictionary? ParamsValue { get; set; } @@ -689,7 +689,7 @@ public DateHistogramAggregationDescriptor Offset(Elastic.Clients.Elasticsearch.D return Self; } - public DateHistogramAggregationDescriptor Order(IEnumerable>? order) + public DateHistogramAggregationDescriptor Order(IList>? 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 3d203333967..89a886310e2 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 IEnumerable? Ranges { get; set; } + public IList? Ranges { get; set; } public string? TimeZone { get; set; } } @@ -231,7 +231,7 @@ public DateRangeAggregationDescriptor() : base() private FieldValue? MissingValue { get; set; } - private IEnumerable? RangesValue { get; set; } + private IList? RangesValue { get; set; } private DateRangeExpressionDescriptor RangesDescriptor { get; set; } @@ -295,7 +295,7 @@ public DateRangeAggregationDescriptor Missing(FieldValue? missing) return Self; } - public DateRangeAggregationDescriptor Ranges(IEnumerable? ranges) + public DateRangeAggregationDescriptor Ranges(IList? ranges) { RangesDescriptor = null; RangesDescriptorAction = null; @@ -445,7 +445,7 @@ public DateRangeAggregationDescriptor() : base() private FieldValue? MissingValue { get; set; } - private IEnumerable? RangesValue { get; set; } + private IList? RangesValue { get; set; } private DateRangeExpressionDescriptor RangesDescriptor { get; set; } @@ -515,7 +515,7 @@ public DateRangeAggregationDescriptor Missing(FieldValue? missing) return Self; } - public DateRangeAggregationDescriptor Ranges(IEnumerable? ranges) + public DateRangeAggregationDescriptor Ranges(IList? 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 0b3207cf5c1..fa847c309b1 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 IEnumerable>? Order { get; set; } + public IList>? Order { get; set; } public Elastic.Clients.Elasticsearch.Script? Script { get; set; } } @@ -298,7 +298,7 @@ public HistogramAggregationDescriptor() : base() private double? OffsetValue { get; set; } - private IEnumerable>? OrderValue { get; set; } + private IList>? 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(IEnumerable>? order) + public HistogramAggregationDescriptor Order(IList>? order) { OrderValue = order; return Self; @@ -493,7 +493,7 @@ public HistogramAggregationDescriptor() : base() private double? OffsetValue { get; set; } - private IEnumerable>? OrderValue { get; set; } + private IList>? 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(IEnumerable>? order) + public HistogramAggregationDescriptor Order(IList>? 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 c41e8d8a465..5f0946a89ee 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 IEnumerable? Ranges { get; set; } + public IList? Ranges { get; set; } } public sealed partial class IpRangeAggregationDescriptor : SerializableDescriptor> @@ -167,7 +167,7 @@ public IpRangeAggregationDescriptor() : base() private Dictionary? MetaValue { get; set; } - private IEnumerable? RangesValue { get; set; } + private IList? RangesValue { get; set; } private IpRangeAggregationRangeDescriptor RangesDescriptor { get; set; } @@ -217,7 +217,7 @@ public IpRangeAggregationDescriptor Meta(Func Ranges(IEnumerable? ranges) + public IpRangeAggregationDescriptor Ranges(IList? ranges) { RangesDescriptor = null; RangesDescriptorAction = null; @@ -339,7 +339,7 @@ public IpRangeAggregationDescriptor() : base() private Dictionary? MetaValue { get; set; } - private IEnumerable? RangesValue { get; set; } + private IList? RangesValue { get; set; } private IpRangeAggregationRangeDescriptor RangesDescriptor { get; set; } @@ -395,7 +395,7 @@ public IpRangeAggregationDescriptor Meta(Func, return Self; } - public IpRangeAggregationDescriptor Ranges(IEnumerable? ranges) + public IpRangeAggregationDescriptor Ranges(IList? 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 55bdab7216a..d081cd51b89 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 IEnumerable>? Order { get; set; } + public IList>? Order { get; set; } public long? ShardMinDocCount { get; set; } @@ -264,7 +264,7 @@ internal MultiTermsAggregation() public int? Size { get; set; } - public IEnumerable Terms { get; set; } + public IList Terms { get; set; } } public sealed partial class MultiTermsAggregationDescriptor : SerializableDescriptor> @@ -280,7 +280,7 @@ public MultiTermsAggregationDescriptor() : base() private Action> AggregationsDescriptorAction { get; set; } - private IEnumerable TermsValue { get; set; } + private IList TermsValue { get; set; } private MultiTermLookupDescriptor TermsDescriptor { get; set; } @@ -294,7 +294,7 @@ public MultiTermsAggregationDescriptor() : base() private long? MinDocCountValue { get; set; } - private IEnumerable>? OrderValue { get; set; } + private IList>? OrderValue { get; set; } private long? ShardMinDocCountValue { get; set; } @@ -328,7 +328,7 @@ public MultiTermsAggregationDescriptor Aggregations(Action Terms(IEnumerable terms) + public MultiTermsAggregationDescriptor Terms(IList terms) { TermsDescriptor = null; TermsDescriptorAction = null; @@ -382,7 +382,7 @@ public MultiTermsAggregationDescriptor MinDocCount(long? minDocCount) return Self; } - public MultiTermsAggregationDescriptor Order(IEnumerable>? order) + public MultiTermsAggregationDescriptor Order(IList>? order) { OrderValue = order; return Self; @@ -530,7 +530,7 @@ public MultiTermsAggregationDescriptor() : base() private Action AggregationsDescriptorAction { get; set; } - private IEnumerable TermsValue { get; set; } + private IList TermsValue { get; set; } private MultiTermLookupDescriptor TermsDescriptor { get; set; } @@ -544,7 +544,7 @@ public MultiTermsAggregationDescriptor() : base() private long? MinDocCountValue { get; set; } - private IEnumerable>? OrderValue { get; set; } + private IList>? OrderValue { get; set; } private long? ShardMinDocCountValue { get; set; } @@ -578,7 +578,7 @@ public MultiTermsAggregationDescriptor Aggregations(Action terms) + public MultiTermsAggregationDescriptor Terms(IList terms) { TermsDescriptor = null; TermsDescriptorAction = null; @@ -632,7 +632,7 @@ public MultiTermsAggregationDescriptor MinDocCount(long? minDocCount) return Self; } - public MultiTermsAggregationDescriptor Order(IEnumerable>? order) + public MultiTermsAggregationDescriptor Order(IList>? 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 cd79132f121..43298299845 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 IEnumerable? Percents { get; set; } + public IList? Percents { get; set; } } public sealed partial class PercentilesBucketAggregationDescriptor : SerializableDescriptor @@ -164,7 +164,7 @@ public PercentilesBucketAggregationDescriptor() : base() private Dictionary? MetaValue { get; set; } - private IEnumerable? PercentsValue { get; set; } + private IList? PercentsValue { get; set; } public PercentilesBucketAggregationDescriptor Format(string? format) { @@ -184,7 +184,7 @@ public PercentilesBucketAggregationDescriptor Meta(Func? percents) + public PercentilesBucketAggregationDescriptor Percents(IList? 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 40d1a257878..56e3e0e15c4 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 IEnumerable? Ranges { get; set; } + public IList? Ranges { get; set; } public Elastic.Clients.Elasticsearch.Script? Script { get; set; } } @@ -231,7 +231,7 @@ public RangeAggregationDescriptor() : base() private int? MissingValue { get; set; } - private IEnumerable? RangesValue { get; set; } + private IList? RangesValue { get; set; } private AggregationRangeDescriptor RangesDescriptor { get; set; } @@ -295,7 +295,7 @@ public RangeAggregationDescriptor Missing(int? missing) return Self; } - public RangeAggregationDescriptor Ranges(IEnumerable? ranges) + public RangeAggregationDescriptor Ranges(IList? ranges) { RangesDescriptor = null; RangesDescriptorAction = null; @@ -445,7 +445,7 @@ public RangeAggregationDescriptor() : base() private int? MissingValue { get; set; } - private IEnumerable? RangesValue { get; set; } + private IList? RangesValue { get; set; } private AggregationRangeDescriptor RangesDescriptor { get; set; } @@ -515,7 +515,7 @@ public RangeAggregationDescriptor Missing(int? missing) return Self; } - public RangeAggregationDescriptor Ranges(IEnumerable? ranges) + public RangeAggregationDescriptor Ranges(IList? 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 4b148951400..9b29c320a4a 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TermsAggregation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Aggregations/TermsAggregation.g.cs @@ -378,7 +378,7 @@ internal TermsAggregation() public Elastic.Clients.Elasticsearch.Aggregations.TermsAggregationCollectMode? CollectMode { get; set; } [JsonConverter(typeof(TermsExcludeConverter))] - public IEnumerable? Exclude { get; set; } + public IList? Exclude { get; set; } public Elastic.Clients.Elasticsearch.Aggregations.TermsAggregationExecutionHint? ExecutionHint { get; set; } @@ -399,7 +399,7 @@ internal TermsAggregation() public override string? Name { get; internal set; } [JsonConverter(typeof(AggregateOrderConverter))] - public IEnumerable>? Order { get; set; } + public IList>? Order { get; set; } public Elastic.Clients.Elasticsearch.Script? Script { get; set; } @@ -427,7 +427,7 @@ public TermsAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Aggregations.TermsAggregationCollectMode? CollectModeValue { get; set; } - private IEnumerable? ExcludeValue { get; set; } + private IList? ExcludeValue { get; set; } private Elastic.Clients.Elasticsearch.Aggregations.TermsAggregationExecutionHint? ExecutionHintValue { get; set; } @@ -445,7 +445,7 @@ public TermsAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Aggregations.MissingOrder? MissingOrderValue { get; set; } - private IEnumerable>? OrderValue { get; set; } + private IList>? OrderValue { get; set; } private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } @@ -487,7 +487,7 @@ public TermsAggregationDescriptor CollectMode(Elastic.Clients.Elastic return Self; } - public TermsAggregationDescriptor Exclude(IEnumerable? exclude) + public TermsAggregationDescriptor Exclude(IList? exclude) { ExcludeValue = exclude; return Self; @@ -547,7 +547,7 @@ public TermsAggregationDescriptor MissingOrder(Elastic.Clients.Elasti return Self; } - public TermsAggregationDescriptor Order(IEnumerable>? order) + public TermsAggregationDescriptor Order(IList>? order) { OrderValue = order; return Self; @@ -720,7 +720,7 @@ public TermsAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Aggregations.TermsAggregationCollectMode? CollectModeValue { get; set; } - private IEnumerable? ExcludeValue { get; set; } + private IList? ExcludeValue { get; set; } private Elastic.Clients.Elasticsearch.Aggregations.TermsAggregationExecutionHint? ExecutionHintValue { get; set; } @@ -738,7 +738,7 @@ public TermsAggregationDescriptor() : base() private Elastic.Clients.Elasticsearch.Aggregations.MissingOrder? MissingOrderValue { get; set; } - private IEnumerable>? OrderValue { get; set; } + private IList>? OrderValue { get; set; } private Elastic.Clients.Elasticsearch.Script? ScriptValue { get; set; } @@ -780,7 +780,7 @@ public TermsAggregationDescriptor CollectMode(Elastic.Clients.Elasticsearch.Aggr return Self; } - public TermsAggregationDescriptor Exclude(IEnumerable? exclude) + public TermsAggregationDescriptor Exclude(IList? exclude) { ExcludeValue = exclude; return Self; @@ -846,7 +846,7 @@ public TermsAggregationDescriptor MissingOrder(Elastic.Clients.Elasticsearch.Agg return Self; } - public TermsAggregationDescriptor Order(IEnumerable>? order) + public TermsAggregationDescriptor Order(IList>? 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 f9b199244d8..e5bc1317c29 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 IEnumerable? Sort { get; set; } + public IList? Sort { get; set; } public Elastic.Clients.Elasticsearch.Fields? StoredFields { get; set; } @@ -428,7 +428,7 @@ public TopHitsAggregationDescriptor() : base() private int? SizeValue { get; set; } - private IEnumerable? SortValue { get; set; } + private IList? 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(IEnumerable? sort) + public TopHitsAggregationDescriptor Sort(IList? sort) { SortValue = sort; return Self; @@ -707,7 +707,7 @@ public TopHitsAggregationDescriptor() : base() private int? SizeValue { get; set; } - private IEnumerable? SortValue { get; set; } + private IList? 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(IEnumerable? sort) + public TopHitsAggregationDescriptor Sort(IList? 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 def9e3c8884..da4cd0203b3 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 IEnumerable? Metrics { get; set; } + public IList? Metrics { get; set; } public FieldValue? Missing { get; set; } @@ -210,7 +210,7 @@ internal TopMetricsAggregation() public int? Size { get; set; } [JsonConverter(typeof(SortConverter))] - public IEnumerable? Sort { get; set; } + public IList? Sort { get; set; } } public sealed partial class TopMetricsAggregationDescriptor : SerializableDescriptor> @@ -220,7 +220,7 @@ public TopMetricsAggregationDescriptor() : base() { } - private IEnumerable? MetricsValue { get; set; } + private IList? MetricsValue { get; set; } private TopMetricsValueDescriptor MetricsDescriptor { get; set; } @@ -238,9 +238,9 @@ public TopMetricsAggregationDescriptor() : base() private int? SizeValue { get; set; } - private IEnumerable? SortValue { get; set; } + private IList? SortValue { get; set; } - public TopMetricsAggregationDescriptor Metrics(IEnumerable? metrics) + public TopMetricsAggregationDescriptor Metrics(IList? metrics) { MetricsDescriptor = null; MetricsDescriptorAction = null; @@ -312,7 +312,7 @@ public TopMetricsAggregationDescriptor Size(int? size) return Self; } - public TopMetricsAggregationDescriptor Sort(IEnumerable? sort) + public TopMetricsAggregationDescriptor Sort(IList? sort) { SortValue = sort; return Self; @@ -402,7 +402,7 @@ public TopMetricsAggregationDescriptor() : base() { } - private IEnumerable? MetricsValue { get; set; } + private IList? MetricsValue { get; set; } private TopMetricsValueDescriptor MetricsDescriptor { get; set; } @@ -420,9 +420,9 @@ public TopMetricsAggregationDescriptor() : base() private int? SizeValue { get; set; } - private IEnumerable? SortValue { get; set; } + private IList? SortValue { get; set; } - public TopMetricsAggregationDescriptor Metrics(IEnumerable? metrics) + public TopMetricsAggregationDescriptor Metrics(IList? metrics) { MetricsDescriptor = null; MetricsDescriptorAction = null; @@ -500,7 +500,7 @@ public TopMetricsAggregationDescriptor Size(int? size) return Self; } - public TopMetricsAggregationDescriptor Sort(IEnumerable? sort) + public TopMetricsAggregationDescriptor Sort(IList? 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 bc83f586764..a7ee1e03a82 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 IEnumerable TokenizeOnChars { get; set; } + public IList TokenizeOnChars { get; set; } [JsonInclude] [JsonPropertyName("type")] @@ -52,7 +52,7 @@ public CharGroupTokenizerDescriptor() : base() private int? MaxTokenLengthValue { get; set; } - private IEnumerable TokenizeOnCharsValue { get; set; } + private IList TokenizeOnCharsValue { get; set; } private string? VersionValue { get; set; } @@ -62,7 +62,7 @@ public CharGroupTokenizerDescriptor MaxTokenLength(int? maxTokenLength) return Self; } - public CharGroupTokenizerDescriptor TokenizeOnChars(IEnumerable tokenizeOnChars) + public CharGroupTokenizerDescriptor TokenizeOnChars(IList 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 4520eadedcd..3208c957ef3 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 IEnumerable? CommonWords { get; set; } + public IList? CommonWords { get; set; } [JsonInclude] [JsonPropertyName("common_words_path")] @@ -58,7 +58,7 @@ public CommonGramsTokenFilterDescriptor() : base() { } - private IEnumerable? CommonWordsValue { get; set; } + private IList? CommonWordsValue { get; set; } private string? CommonWordsPathValue { get; set; } @@ -68,7 +68,7 @@ public CommonGramsTokenFilterDescriptor() : base() private string? VersionValue { get; set; } - public CommonGramsTokenFilterDescriptor CommonWords(IEnumerable? commonWords) + public CommonGramsTokenFilterDescriptor CommonWords(IList? 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 a38c390d89e..b122fcc2529 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 IEnumerable Filter { get; set; } + public IList Filter { get; set; } [JsonInclude] [JsonPropertyName("script")] @@ -50,13 +50,13 @@ public ConditionTokenFilterDescriptor() : base() { } - private IEnumerable FilterValue { get; set; } + private IList FilterValue { get; set; } private Elastic.Clients.Elasticsearch.Script ScriptValue { get; set; } private string? VersionValue { get; set; } - public ConditionTokenFilterDescriptor Filter(IEnumerable filter) + public ConditionTokenFilterDescriptor Filter(IList 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 2725bf433d6..60164b105d0 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 IEnumerable? CharFilter { get; set; } + public IList? CharFilter { get; set; } [JsonInclude] [JsonPropertyName("filter")] - public IEnumerable? Filter { get; set; } + public IList? Filter { get; set; } [JsonInclude] [JsonPropertyName("position_increment_gap")] @@ -59,9 +59,9 @@ public CustomAnalyzerDescriptor() : base() { } - private IEnumerable? CharFilterValue { get; set; } + private IList? CharFilterValue { get; set; } - private IEnumerable? FilterValue { get; set; } + private IList? FilterValue { get; set; } private int? PositionIncrementGapValue { get; set; } @@ -69,13 +69,13 @@ public CustomAnalyzerDescriptor() : base() private string TokenizerValue { get; set; } - public CustomAnalyzerDescriptor CharFilter(IEnumerable? charFilter) + public CustomAnalyzerDescriptor CharFilter(IList? charFilter) { CharFilterValue = charFilter; return Self; } - public CustomAnalyzerDescriptor Filter(IEnumerable? filter) + public CustomAnalyzerDescriptor Filter(IList? 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 e2a5478bde5..8dfccc5334a 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 IEnumerable? CharFilter { get; set; } + public IList? CharFilter { get; set; } [JsonInclude] [JsonPropertyName("filter")] - public IEnumerable? Filter { get; set; } + public IList? Filter { get; set; } [JsonInclude] [JsonPropertyName("type")] @@ -47,17 +47,17 @@ public CustomNormalizerDescriptor() : base() { } - private IEnumerable? CharFilterValue { get; set; } + private IList? CharFilterValue { get; set; } - private IEnumerable? FilterValue { get; set; } + private IList? FilterValue { get; set; } - public CustomNormalizerDescriptor CharFilter(IEnumerable? charFilter) + public CustomNormalizerDescriptor CharFilter(IList? charFilter) { CharFilterValue = charFilter; return Self; } - public CustomNormalizerDescriptor Filter(IEnumerable? filter) + public CustomNormalizerDescriptor Filter(IList? 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 b29a544be5e..8c0a2ff48c6 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 IEnumerable? WordList { get; set; } + public IList? WordList { get; set; } [JsonInclude] [JsonPropertyName("word_list_path")] @@ -82,7 +82,7 @@ public DictionaryDecompounderTokenFilterDescriptor() : base() private string? VersionValue { get; set; } - private IEnumerable? WordListValue { get; set; } + private IList? WordListValue { get; set; } private string? WordListPathValue { get; set; } @@ -122,7 +122,7 @@ public DictionaryDecompounderTokenFilterDescriptor Version(string? version) return Self; } - public DictionaryDecompounderTokenFilterDescriptor WordList(IEnumerable? wordList) + public DictionaryDecompounderTokenFilterDescriptor WordList(IList? 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 150c3e226bc..410ba95667f 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 IEnumerable? Stopwords { get; set; } + public IList? Stopwords { get; set; } [JsonInclude] [JsonPropertyName("type")] @@ -44,9 +44,9 @@ public DutchAnalyzerDescriptor() : base() { } - private IEnumerable? StopwordsValue { get; set; } + private IList? StopwordsValue { get; set; } - public DutchAnalyzerDescriptor Stopwords(IEnumerable? stopwords) + public DutchAnalyzerDescriptor Stopwords(IList? 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 1093e5f4d29..6c590993653 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 IEnumerable TokenChars { get; set; } + public IList TokenChars { get; set; } [JsonInclude] [JsonPropertyName("type")] @@ -64,7 +64,7 @@ public EdgeNGramTokenizerDescriptor() : base() private int MinGramValue { get; set; } - private IEnumerable TokenCharsValue { get; set; } + private IList TokenCharsValue { get; set; } private string? VersionValue { get; set; } @@ -86,7 +86,7 @@ public EdgeNGramTokenizerDescriptor MinGram(int minGram) return Self; } - public EdgeNGramTokenizerDescriptor TokenChars(IEnumerable tokenChars) + public EdgeNGramTokenizerDescriptor TokenChars(IList 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 e30b157009c..9381436bb42 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 IEnumerable? Articles { get; set; } + public IList? Articles { get; set; } [JsonInclude] [JsonPropertyName("articles_case")] @@ -54,7 +54,7 @@ public ElisionTokenFilterDescriptor() : base() { } - private IEnumerable? ArticlesValue { get; set; } + private IList? ArticlesValue { get; set; } private bool? ArticlesCaseValue { get; set; } @@ -62,7 +62,7 @@ public ElisionTokenFilterDescriptor() : base() private string? VersionValue { get; set; } - public ElisionTokenFilterDescriptor Articles(IEnumerable? articles) + public ElisionTokenFilterDescriptor Articles(IList? 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 caa460a27e7..ec408f029b2 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 IEnumerable? Stopwords { get; set; } + public IList? Stopwords { get; set; } [JsonInclude] [JsonPropertyName("stopwords_path")] @@ -69,7 +69,7 @@ public FingerprintAnalyzerDescriptor() : base() private string SeparatorValue { get; set; } - private IEnumerable? StopwordsValue { get; set; } + private IList? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } @@ -93,7 +93,7 @@ public FingerprintAnalyzerDescriptor Separator(string separator) return Self; } - public FingerprintAnalyzerDescriptor Stopwords(IEnumerable? stopwords) + public FingerprintAnalyzerDescriptor Stopwords(IList? 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 211e07985e5..9233f466569 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 IEnumerable? WordList { get; set; } + public IList? WordList { get; set; } [JsonInclude] [JsonPropertyName("word_list_path")] @@ -82,7 +82,7 @@ public HyphenationDecompounderTokenFilterDescriptor() : base() private string? VersionValue { get; set; } - private IEnumerable? WordListValue { get; set; } + private IList? WordListValue { get; set; } private string? WordListPathValue { get; set; } @@ -122,7 +122,7 @@ public HyphenationDecompounderTokenFilterDescriptor Version(string? version) return Self; } - public HyphenationDecompounderTokenFilterDescriptor WordList(IEnumerable? wordList) + public HyphenationDecompounderTokenFilterDescriptor WordList(IList? 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 e59db9f4f29..320eb63dd99 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 IEnumerable? Types { get; set; } + public IList? Types { get; set; } [JsonInclude] [JsonPropertyName("version")] @@ -52,7 +52,7 @@ public KeepTypesTokenFilterDescriptor() : base() private Elastic.Clients.Elasticsearch.Analysis.KeepTypesMode? ModeValue { get; set; } - private IEnumerable? TypesValue { get; set; } + private IList? TypesValue { get; set; } private string? VersionValue { get; set; } @@ -62,7 +62,7 @@ public KeepTypesTokenFilterDescriptor Mode(Elastic.Clients.Elasticsearch.Analysi return Self; } - public KeepTypesTokenFilterDescriptor Types(IEnumerable? types) + public KeepTypesTokenFilterDescriptor Types(IList? 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 029663a7373..46939016053 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 IEnumerable? KeepWords { get; set; } + public IList? KeepWords { get; set; } [JsonInclude] [JsonPropertyName("keep_words_case")] @@ -54,7 +54,7 @@ public KeepWordsTokenFilterDescriptor() : base() { } - private IEnumerable? KeepWordsValue { get; set; } + private IList? KeepWordsValue { get; set; } private bool? KeepWordsCaseValue { get; set; } @@ -62,7 +62,7 @@ public KeepWordsTokenFilterDescriptor() : base() private string? VersionValue { get; set; } - public KeepWordsTokenFilterDescriptor KeepWords(IEnumerable? keepWords) + public KeepWordsTokenFilterDescriptor KeepWords(IList? 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 15a7a567204..e5ebc155545 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 IEnumerable? Keywords { get; set; } + public IList? Keywords { get; set; } [JsonInclude] [JsonPropertyName("keywords_path")] @@ -60,7 +60,7 @@ public KeywordMarkerTokenFilterDescriptor() : base() private bool? IgnoreCaseValue { get; set; } - private IEnumerable? KeywordsValue { get; set; } + private IList? KeywordsValue { get; set; } private string? KeywordsPathValue { get; set; } @@ -74,7 +74,7 @@ public KeywordMarkerTokenFilterDescriptor IgnoreCase(bool? ignoreCase = true) return Self; } - public KeywordMarkerTokenFilterDescriptor Keywords(IEnumerable? keywords) + public KeywordMarkerTokenFilterDescriptor Keywords(IList? 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 ba9ea3f267e..331be99d4ca 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 IEnumerable Stoptags { get; set; } + public IList Stoptags { get; set; } [JsonInclude] [JsonPropertyName("type")] @@ -46,11 +46,11 @@ public KuromojiPartOfSpeechTokenFilterDescriptor() : base() { } - private IEnumerable StoptagsValue { get; set; } + private IList StoptagsValue { get; set; } private string? VersionValue { get; set; } - public KuromojiPartOfSpeechTokenFilterDescriptor Stoptags(IEnumerable stoptags) + public KuromojiPartOfSpeechTokenFilterDescriptor Stoptags(IList 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 0f324aa060b..0d899624fe3 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 IEnumerable? UserDictionaryRules { get; set; } + public IList? UserDictionaryRules { get; set; } [JsonInclude] [JsonPropertyName("version")] @@ -82,7 +82,7 @@ public KuromojiTokenizerDescriptor() : base() private string? UserDictionaryValue { get; set; } - private IEnumerable? UserDictionaryRulesValue { get; set; } + private IList? UserDictionaryRulesValue { get; set; } private string? VersionValue { get; set; } @@ -122,7 +122,7 @@ public KuromojiTokenizerDescriptor UserDictionary(string? userDictionary) return Self; } - public KuromojiTokenizerDescriptor UserDictionaryRules(IEnumerable? userDictionaryRules) + public KuromojiTokenizerDescriptor UserDictionaryRules(IList? 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 2cbcf24c1c4..ff07ab8c7be 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 IEnumerable StemExclusion { get; set; } + public IList StemExclusion { get; set; } [JsonInclude] [JsonPropertyName("stopwords")] [JsonConverter(typeof(StopWordsConverter))] - public IEnumerable? Stopwords { get; set; } + public IList? Stopwords { get; set; } [JsonInclude] [JsonPropertyName("stopwords_path")] @@ -61,9 +61,9 @@ public LanguageAnalyzerDescriptor() : base() private Elastic.Clients.Elasticsearch.Analysis.Language LanguageValue { get; set; } - private IEnumerable StemExclusionValue { get; set; } + private IList StemExclusionValue { get; set; } - private IEnumerable? StopwordsValue { get; set; } + private IList? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } @@ -75,13 +75,13 @@ public LanguageAnalyzerDescriptor Language(Elastic.Clients.Elasticsearch.Analysi return Self; } - public LanguageAnalyzerDescriptor StemExclusion(IEnumerable stemExclusion) + public LanguageAnalyzerDescriptor StemExclusion(IList stemExclusion) { StemExclusionValue = stemExclusion; return Self; } - public LanguageAnalyzerDescriptor Stopwords(IEnumerable? stopwords) + public LanguageAnalyzerDescriptor Stopwords(IList? 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 6c7b9e96f65..47f8db10330 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 IEnumerable? Mappings { get; set; } + public IList? Mappings { get; set; } [JsonInclude] [JsonPropertyName("mappings_path")] @@ -50,13 +50,13 @@ public MappingCharFilterDescriptor() : base() { } - private IEnumerable? MappingsValue { get; set; } + private IList? MappingsValue { get; set; } private string? MappingsPathValue { get; set; } private string? VersionValue { get; set; } - public MappingCharFilterDescriptor Mappings(IEnumerable? mappings) + public MappingCharFilterDescriptor Mappings(IList? 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 93b4bde535d..903faae6521 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 IEnumerable Filters { get; set; } + public IList Filters { get; set; } [JsonInclude] [JsonPropertyName("preserve_original")] @@ -50,13 +50,13 @@ public MultiplexerTokenFilterDescriptor() : base() { } - private IEnumerable FiltersValue { get; set; } + private IList FiltersValue { get; set; } private bool? PreserveOriginalValue { get; set; } private string? VersionValue { get; set; } - public MultiplexerTokenFilterDescriptor Filters(IEnumerable filters) + public MultiplexerTokenFilterDescriptor Filters(IList 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 a50c5226633..5ec8111b6a9 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 IEnumerable TokenChars { get; set; } + public IList TokenChars { get; set; } [JsonInclude] [JsonPropertyName("type")] @@ -64,7 +64,7 @@ public NGramTokenizerDescriptor() : base() private int MinGramValue { get; set; } - private IEnumerable TokenCharsValue { get; set; } + private IList TokenCharsValue { get; set; } private string? VersionValue { get; set; } @@ -86,7 +86,7 @@ public NGramTokenizerDescriptor MinGram(int minGram) return Self; } - public NGramTokenizerDescriptor TokenChars(IEnumerable tokenChars) + public NGramTokenizerDescriptor TokenChars(IList 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 9e0e487b6f4..93bf3458a2a 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 IEnumerable? Stoptags { get; set; } + public IList? Stoptags { get; set; } [JsonInclude] [JsonPropertyName("type")] @@ -56,7 +56,7 @@ public NoriAnalyzerDescriptor() : base() private Elastic.Clients.Elasticsearch.Analysis.NoriDecompoundMode? DecompoundModeValue { get; set; } - private IEnumerable? StoptagsValue { get; set; } + private IList? StoptagsValue { get; set; } private string? UserDictionaryValue { get; set; } @@ -68,7 +68,7 @@ public NoriAnalyzerDescriptor DecompoundMode(Elastic.Clients.Elasticsearch.Analy return Self; } - public NoriAnalyzerDescriptor Stoptags(IEnumerable? stoptags) + public NoriAnalyzerDescriptor Stoptags(IList? 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 d419d4b4ced..5628b43fb30 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 IEnumerable? Stoptags { get; set; } + public IList? Stoptags { get; set; } [JsonInclude] [JsonPropertyName("type")] @@ -46,11 +46,11 @@ public NoriPartOfSpeechTokenFilterDescriptor() : base() { } - private IEnumerable? StoptagsValue { get; set; } + private IList? StoptagsValue { get; set; } private string? VersionValue { get; set; } - public NoriPartOfSpeechTokenFilterDescriptor Stoptags(IEnumerable? stoptags) + public NoriPartOfSpeechTokenFilterDescriptor Stoptags(IList? 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 e68822b289e..f9e890f7a75 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 IEnumerable? UserDictionaryRules { get; set; } + public IList? UserDictionaryRules { get; set; } [JsonInclude] [JsonPropertyName("version")] @@ -64,7 +64,7 @@ public NoriTokenizerDescriptor() : base() private string? UserDictionaryValue { get; set; } - private IEnumerable? UserDictionaryRulesValue { get; set; } + private IList? UserDictionaryRulesValue { get; set; } private string? VersionValue { get; set; } @@ -86,7 +86,7 @@ public NoriTokenizerDescriptor UserDictionary(string? userDictionary) return Self; } - public NoriTokenizerDescriptor UserDictionaryRules(IEnumerable? userDictionaryRules) + public NoriTokenizerDescriptor UserDictionaryRules(IList? 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 1aa1f4cdbd5..3d86bfeb51d 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 IEnumerable? Stopwords { get; set; } + public IList? Stopwords { get; set; } [JsonInclude] [JsonPropertyName("type")] @@ -65,7 +65,7 @@ public PatternAnalyzerDescriptor() : base() private string PatternValue { get; set; } - private IEnumerable? StopwordsValue { get; set; } + private IList? StopwordsValue { get; set; } private string? VersionValue { get; set; } @@ -87,7 +87,7 @@ public PatternAnalyzerDescriptor Pattern(string pattern) return Self; } - public PatternAnalyzerDescriptor Stopwords(IEnumerable? stopwords) + public PatternAnalyzerDescriptor Stopwords(IList? 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 bf51f27558c..ac216436a77 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 IEnumerable Patterns { get; set; } + public IList Patterns { get; set; } [JsonInclude] [JsonPropertyName("preserve_original")] @@ -50,13 +50,13 @@ public PatternCaptureTokenFilterDescriptor() : base() { } - private IEnumerable PatternsValue { get; set; } + private IList PatternsValue { get; set; } private bool? PreserveOriginalValue { get; set; } private string? VersionValue { get; set; } - public PatternCaptureTokenFilterDescriptor Patterns(IEnumerable patterns) + public PatternCaptureTokenFilterDescriptor Patterns(IList 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 d5c473fc160..f2f59d730cb 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 IEnumerable Languageset { get; set; } + public IList 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 IEnumerable LanguagesetValue { get; set; } + private IList LanguagesetValue { get; set; } private int? MaxCodeLenValue { get; set; } @@ -86,7 +86,7 @@ public PhoneticTokenFilterDescriptor Encoder(Elastic.Clients.Elasticsearch.Analy return Self; } - public PhoneticTokenFilterDescriptor Languageset(IEnumerable languageset) + public PhoneticTokenFilterDescriptor Languageset(IList 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 7ac3fc1b40c..e36a456ab12 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 IEnumerable? Stopwords { get; set; } + public IList? Stopwords { get; set; } [JsonInclude] [JsonPropertyName("type")] @@ -53,7 +53,7 @@ public SnowballAnalyzerDescriptor() : base() private Elastic.Clients.Elasticsearch.Analysis.SnowballLanguage LanguageValue { get; set; } - private IEnumerable? StopwordsValue { get; set; } + private IList? StopwordsValue { get; set; } private string? VersionValue { get; set; } @@ -63,7 +63,7 @@ public SnowballAnalyzerDescriptor Language(Elastic.Clients.Elasticsearch.Analysi return Self; } - public SnowballAnalyzerDescriptor Stopwords(IEnumerable? stopwords) + public SnowballAnalyzerDescriptor Stopwords(IList? 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 cbd47de5376..540ca09fcb0 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 IEnumerable? Stopwords { get; set; } + public IList? Stopwords { get; set; } [JsonInclude] [JsonPropertyName("type")] @@ -50,7 +50,7 @@ public StandardAnalyzerDescriptor() : base() private int? MaxTokenLengthValue { get; set; } - private IEnumerable? StopwordsValue { get; set; } + private IList? StopwordsValue { get; set; } public StandardAnalyzerDescriptor MaxTokenLength(int? maxTokenLength) { @@ -58,7 +58,7 @@ public StandardAnalyzerDescriptor MaxTokenLength(int? maxTokenLength) return Self; } - public StandardAnalyzerDescriptor Stopwords(IEnumerable? stopwords) + public StandardAnalyzerDescriptor Stopwords(IList? 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 c1a33ad86b5..dfe14aca25f 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 IEnumerable? Rules { get; set; } + public IList? Rules { get; set; } [JsonInclude] [JsonPropertyName("rules_path")] @@ -50,13 +50,13 @@ public StemmerOverrideTokenFilterDescriptor() : base() { } - private IEnumerable? RulesValue { get; set; } + private IList? RulesValue { get; set; } private string? RulesPathValue { get; set; } private string? VersionValue { get; set; } - public StemmerOverrideTokenFilterDescriptor Rules(IEnumerable? rules) + public StemmerOverrideTokenFilterDescriptor Rules(IList? 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 d2c3adcdb2b..442e4073a78 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 IEnumerable? Stopwords { get; set; } + public IList? Stopwords { get; set; } [JsonInclude] [JsonPropertyName("stopwords_path")] @@ -51,13 +51,13 @@ public StopAnalyzerDescriptor() : base() { } - private IEnumerable? StopwordsValue { get; set; } + private IList? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } private string? VersionValue { get; set; } - public StopAnalyzerDescriptor Stopwords(IEnumerable? stopwords) + public StopAnalyzerDescriptor Stopwords(IList? 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 818c695ce02..89808dd633b 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 IEnumerable? Stopwords { get; set; } + public IList? Stopwords { get; set; } [JsonInclude] [JsonPropertyName("stopwords_path")] @@ -63,7 +63,7 @@ public StopTokenFilterDescriptor() : base() private bool? RemoveTrailingValue { get; set; } - private IEnumerable? StopwordsValue { get; set; } + private IList? StopwordsValue { get; set; } private string? StopwordsPathValue { get; set; } @@ -81,7 +81,7 @@ public StopTokenFilterDescriptor RemoveTrailing(bool? removeTrailing = true) return Self; } - public StopTokenFilterDescriptor Stopwords(IEnumerable? stopwords) + public StopTokenFilterDescriptor Stopwords(IList? 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 3e2e8675008..0eb1ad7ab70 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 IEnumerable? Synonyms { get; set; } + public IList? Synonyms { get; set; } [JsonInclude] [JsonPropertyName("synonyms_path")] @@ -76,7 +76,7 @@ public SynonymGraphTokenFilterDescriptor() : base() private bool? LenientValue { get; set; } - private IEnumerable? SynonymsValue { get; set; } + private IList? SynonymsValue { get; set; } private string? SynonymsPathValue { get; set; } @@ -104,7 +104,7 @@ public SynonymGraphTokenFilterDescriptor Lenient(bool? lenient = true) return Self; } - public SynonymGraphTokenFilterDescriptor Synonyms(IEnumerable? synonyms) + public SynonymGraphTokenFilterDescriptor Synonyms(IList? 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 e4d3275bcd2..665e859886e 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 IEnumerable? Synonyms { get; set; } + public IList? Synonyms { get; set; } [JsonInclude] [JsonPropertyName("synonyms_path")] @@ -76,7 +76,7 @@ public SynonymTokenFilterDescriptor() : base() private bool? LenientValue { get; set; } - private IEnumerable? SynonymsValue { get; set; } + private IList? SynonymsValue { get; set; } private string? SynonymsPathValue { get; set; } @@ -104,7 +104,7 @@ public SynonymTokenFilterDescriptor Lenient(bool? lenient = true) return Self; } - public SynonymTokenFilterDescriptor Synonyms(IEnumerable? synonyms) + public SynonymTokenFilterDescriptor Synonyms(IList? 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 3782fdfae8e..54397dfd004 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 IEnumerable? ProtectedWords { get; set; } + public IList? 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 IEnumerable? TypeTable { get; set; } + public IList? TypeTable { get; set; } [JsonInclude] [JsonPropertyName("type_table_path")] @@ -118,7 +118,7 @@ public WordDelimiterGraphTokenFilterDescriptor() : base() private bool? PreserveOriginalValue { get; set; } - private IEnumerable? ProtectedWordsValue { get; set; } + private IList? ProtectedWordsValue { get; set; } private string? ProtectedWordsPathValue { get; set; } @@ -128,7 +128,7 @@ public WordDelimiterGraphTokenFilterDescriptor() : base() private bool? StemEnglishPossessiveValue { get; set; } - private IEnumerable? TypeTableValue { get; set; } + private IList? TypeTableValue { get; set; } private string? TypeTablePathValue { get; set; } @@ -182,7 +182,7 @@ public WordDelimiterGraphTokenFilterDescriptor PreserveOriginal(bool? preserveOr return Self; } - public WordDelimiterGraphTokenFilterDescriptor ProtectedWords(IEnumerable? protectedWords) + public WordDelimiterGraphTokenFilterDescriptor ProtectedWords(IList? protectedWords) { ProtectedWordsValue = protectedWords; return Self; @@ -212,7 +212,7 @@ public WordDelimiterGraphTokenFilterDescriptor StemEnglishPossessive(bool? stemE return Self; } - public WordDelimiterGraphTokenFilterDescriptor TypeTable(IEnumerable? typeTable) + public WordDelimiterGraphTokenFilterDescriptor TypeTable(IList? 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 efb5d9350fe..16775734d43 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 IEnumerable? ProtectedWords { get; set; } + public IList? 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 IEnumerable? TypeTable { get; set; } + public IList? TypeTable { get; set; } [JsonInclude] [JsonPropertyName("type_table_path")] @@ -106,7 +106,7 @@ public WordDelimiterTokenFilterDescriptor() : base() private bool? PreserveOriginalValue { get; set; } - private IEnumerable? ProtectedWordsValue { get; set; } + private IList? ProtectedWordsValue { get; set; } private string? ProtectedWordsPathValue { get; set; } @@ -116,7 +116,7 @@ public WordDelimiterTokenFilterDescriptor() : base() private bool? StemEnglishPossessiveValue { get; set; } - private IEnumerable? TypeTableValue { get; set; } + private IList? TypeTableValue { get; set; } private string? TypeTablePathValue { get; set; } @@ -158,7 +158,7 @@ public WordDelimiterTokenFilterDescriptor PreserveOriginal(bool? preserveOrigina return Self; } - public WordDelimiterTokenFilterDescriptor ProtectedWords(IEnumerable? protectedWords) + public WordDelimiterTokenFilterDescriptor ProtectedWords(IList? protectedWords) { ProtectedWordsValue = protectedWords; return Self; @@ -188,7 +188,7 @@ public WordDelimiterTokenFilterDescriptor StemEnglishPossessive(bool? stemEnglis return Self; } - public WordDelimiterTokenFilterDescriptor TypeTable(IEnumerable? typeTable) + public WordDelimiterTokenFilterDescriptor TypeTable(IList? 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 799ac8d0b16..acef634c1f4 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 IEnumerable? DocvalueFields { get; set; } + public IList? DocvalueFields { get; set; } public bool? Explain { get; set; } public Dictionary? Ext { get; set; } - public IEnumerable? Fields { get; set; } + public IList? Fields { get; set; } public int? From { get; set; } public Elastic.Clients.Elasticsearch.Core.Search.Highlight? Highlight { get; set; } - public IEnumerable>? IndicesBoost { get; set; } + public IList>? 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 IEnumerable? Rescore { get; set; } + public IList? Rescore { get; set; } public Dictionary? RuntimeMappings { get; set; } public Dictionary? ScriptFields { get; set; } - public IEnumerable? SearchAfter { get; set; } + public IList? SearchAfter { get; set; } public bool? SeqNoPrimaryTerm { get; set; } public int? Size { get; set; } [JsonConverter(typeof(SortConverter))] - public IEnumerable? Sort { get; set; } + public IList? Sort { get; set; } - public IEnumerable? Stats { get; set; } + public IList? Stats { get; set; } public Elastic.Clients.Elasticsearch.Fields? StoredFields { get; set; } @@ -501,7 +501,7 @@ public MultisearchBodyDescriptor() : base() private Action> CollapseDescriptorAction { get; set; } - private IEnumerable? DocvalueFieldsValue { get; set; } + private IList? DocvalueFieldsValue { get; set; } private QueryDsl.FieldAndFormatDescriptor DocvalueFieldsDescriptor { get; set; } @@ -509,7 +509,7 @@ public MultisearchBodyDescriptor() : base() private Action>[] DocvalueFieldsDescriptorActions { get; set; } - private IEnumerable? FieldsValue { get; set; } + private IList? FieldsValue { get; set; } private QueryDsl.FieldAndFormatDescriptor FieldsDescriptor { get; set; } @@ -541,7 +541,7 @@ public MultisearchBodyDescriptor() : base() private Action> QueryDescriptorAction { get; set; } - private IEnumerable? RescoreValue { get; set; } + private IList? RescoreValue { get; set; } private Core.Search.RescoreDescriptor RescoreDescriptor { get; set; } @@ -559,7 +559,7 @@ public MultisearchBodyDescriptor() : base() private int? FromValue { get; set; } - private IEnumerable>? IndicesBoostValue { get; set; } + private IList>? IndicesBoostValue { get; set; } private double? MinScoreValue { get; set; } @@ -575,15 +575,15 @@ public MultisearchBodyDescriptor() : base() private Dictionary? ScriptFieldsValue { get; set; } - private IEnumerable? SearchAfterValue { get; set; } + private IList? SearchAfterValue { get; set; } private bool? SeqNoPrimaryTermValue { get; set; } private int? SizeValue { get; set; } - private IEnumerable? SortValue { get; set; } + private IList? SortValue { get; set; } - private IEnumerable? StatsValue { get; set; } + private IList? StatsValue { get; set; } private Elastic.Clients.Elasticsearch.Fields? StoredFieldsValue { get; set; } @@ -627,7 +627,7 @@ public MultisearchBodyDescriptor Collapse(Action DocvalueFields(IEnumerable? docvalueFields) + public MultisearchBodyDescriptor DocvalueFields(IList? docvalueFields) { DocvalueFieldsDescriptor = null; DocvalueFieldsDescriptorAction = null; @@ -663,7 +663,7 @@ public MultisearchBodyDescriptor DocvalueFields(params Action Fields(IEnumerable? fields) + public MultisearchBodyDescriptor Fields(IList? fields) { FieldsDescriptor = null; FieldsDescriptorAction = null; @@ -795,7 +795,7 @@ public MultisearchBodyDescriptor Query(Action Rescore(IEnumerable? rescore) + public MultisearchBodyDescriptor Rescore(IList? rescore) { RescoreDescriptor = null; RescoreDescriptorAction = null; @@ -861,7 +861,7 @@ public MultisearchBodyDescriptor From(int? from) return Self; } - public MultisearchBodyDescriptor IndicesBoost(IEnumerable>? indicesBoost) + public MultisearchBodyDescriptor IndicesBoost(IList>? indicesBoost) { IndicesBoostValue = indicesBoost; return Self; @@ -915,7 +915,7 @@ public MultisearchBodyDescriptor ScriptFields(Func SearchAfter(IEnumerable? searchAfter) + public MultisearchBodyDescriptor SearchAfter(IList? searchAfter) { SearchAfterValue = searchAfter; return Self; @@ -933,13 +933,13 @@ public MultisearchBodyDescriptor Size(int? size) return Self; } - public MultisearchBodyDescriptor Sort(IEnumerable? sort) + public MultisearchBodyDescriptor Sort(IList? sort) { SortValue = sort; return Self; } - public MultisearchBodyDescriptor Stats(IEnumerable? stats) + public MultisearchBodyDescriptor Stats(IList? stats) { StatsValue = stats; return Self; @@ -1356,7 +1356,7 @@ public MultisearchBodyDescriptor() : base() private Action CollapseDescriptorAction { get; set; } - private IEnumerable? DocvalueFieldsValue { get; set; } + private IList? DocvalueFieldsValue { get; set; } private QueryDsl.FieldAndFormatDescriptor DocvalueFieldsDescriptor { get; set; } @@ -1364,7 +1364,7 @@ public MultisearchBodyDescriptor() : base() private Action[] DocvalueFieldsDescriptorActions { get; set; } - private IEnumerable? FieldsValue { get; set; } + private IList? FieldsValue { get; set; } private QueryDsl.FieldAndFormatDescriptor FieldsDescriptor { get; set; } @@ -1396,7 +1396,7 @@ public MultisearchBodyDescriptor() : base() private Action QueryDescriptorAction { get; set; } - private IEnumerable? RescoreValue { get; set; } + private IList? RescoreValue { get; set; } private Core.Search.RescoreDescriptor RescoreDescriptor { get; set; } @@ -1414,7 +1414,7 @@ public MultisearchBodyDescriptor() : base() private int? FromValue { get; set; } - private IEnumerable>? IndicesBoostValue { get; set; } + private IList>? IndicesBoostValue { get; set; } private double? MinScoreValue { get; set; } @@ -1430,15 +1430,15 @@ public MultisearchBodyDescriptor() : base() private Dictionary? ScriptFieldsValue { get; set; } - private IEnumerable? SearchAfterValue { get; set; } + private IList? SearchAfterValue { get; set; } private bool? SeqNoPrimaryTermValue { get; set; } private int? SizeValue { get; set; } - private IEnumerable? SortValue { get; set; } + private IList? SortValue { get; set; } - private IEnumerable? StatsValue { get; set; } + private IList? StatsValue { get; set; } private Elastic.Clients.Elasticsearch.Fields? StoredFieldsValue { get; set; } @@ -1482,7 +1482,7 @@ public MultisearchBodyDescriptor Collapse(Action? docvalueFields) + public MultisearchBodyDescriptor DocvalueFields(IList? docvalueFields) { DocvalueFieldsDescriptor = null; DocvalueFieldsDescriptorAction = null; @@ -1518,7 +1518,7 @@ public MultisearchBodyDescriptor DocvalueFields(params Action? fields) + public MultisearchBodyDescriptor Fields(IList? fields) { FieldsDescriptor = null; FieldsDescriptorAction = null; @@ -1650,7 +1650,7 @@ public MultisearchBodyDescriptor Query(Action return Self; } - public MultisearchBodyDescriptor Rescore(IEnumerable? rescore) + public MultisearchBodyDescriptor Rescore(IList? rescore) { RescoreDescriptor = null; RescoreDescriptorAction = null; @@ -1716,7 +1716,7 @@ public MultisearchBodyDescriptor From(int? from) return Self; } - public MultisearchBodyDescriptor IndicesBoost(IEnumerable>? indicesBoost) + public MultisearchBodyDescriptor IndicesBoost(IList>? indicesBoost) { IndicesBoostValue = indicesBoost; return Self; @@ -1770,7 +1770,7 @@ public MultisearchBodyDescriptor ScriptFields(Func? searchAfter) + public MultisearchBodyDescriptor SearchAfter(IList? searchAfter) { SearchAfterValue = searchAfter; return Self; @@ -1788,13 +1788,13 @@ public MultisearchBodyDescriptor Size(int? size) return Self; } - public MultisearchBodyDescriptor Sort(IEnumerable? sort) + public MultisearchBodyDescriptor Sort(IList? sort) { SortValue = sort; return Self; } - public MultisearchBodyDescriptor Stats(IEnumerable? stats) + public MultisearchBodyDescriptor Stats(IList? 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 195bd2cb4d3..d3399ade310 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 IEnumerable? ExpandWildcards { get; set; } + public IList? ExpandWildcards { get; set; } [JsonInclude] [JsonPropertyName("ignore_throttled")] @@ -86,7 +86,7 @@ public MultisearchHeaderDescriptor() : base() private bool? CcsMinimizeRoundtripsValue { get; set; } - private IEnumerable? ExpandWildcardsValue { get; set; } + private IList? ExpandWildcardsValue { get; set; } private bool? IgnoreThrottledValue { get; set; } @@ -120,7 +120,7 @@ public MultisearchHeaderDescriptor CcsMinimizeRoundtrips(bool? ccsMinimizeRoundt return Self; } - public MultisearchHeaderDescriptor ExpandWildcards(IEnumerable? expandWildcards) + public MultisearchHeaderDescriptor ExpandWildcards(IList? 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 1f3466d4371..a7e407c1e84 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 IEnumerable Ratings { get; set; } + public IList Ratings { get; set; } [JsonInclude] [JsonPropertyName("request")] @@ -65,7 +65,7 @@ public RankEvalRequestItemDescriptor() : base() private Dictionary? ParamsValue { get; set; } - private IEnumerable RatingsValue { get; set; } + private IList RatingsValue { get; set; } private DocumentRatingDescriptor RatingsDescriptor { get; set; } @@ -111,7 +111,7 @@ public RankEvalRequestItemDescriptor Params(Func Ratings(IEnumerable ratings) + public RankEvalRequestItemDescriptor Ratings(IList ratings) { RatingsDescriptor = null; RatingsDescriptorAction = null; @@ -238,7 +238,7 @@ public RankEvalRequestItemDescriptor() : base() private Dictionary? ParamsValue { get; set; } - private IEnumerable RatingsValue { get; set; } + private IList RatingsValue { get; set; } private DocumentRatingDescriptor RatingsDescriptor { get; set; } @@ -284,7 +284,7 @@ public RankEvalRequestItemDescriptor Params(Func ratings) + public RankEvalRequestItemDescriptor Ratings(IList 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 5c63b7b9853..2a83e1b2649 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 IEnumerable? Sort { get; set; } + public IList? Sort { get; set; } } public sealed partial class SourceDescriptor : SerializableDescriptor> @@ -94,7 +94,7 @@ public SourceDescriptor() : base() private int? SizeValue { get; set; } - private IEnumerable? SortValue { get; set; } + private IList? 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(IEnumerable? sort) + public SourceDescriptor Sort(IList? sort) { SortValue = sort; return Self; @@ -312,7 +312,7 @@ public SourceDescriptor() : base() private int? SizeValue { get; set; } - private IEnumerable? SortValue { get; set; } + private IList? 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(IEnumerable? sort) + public SourceDescriptor Sort(IList? 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 58b67b8baaa..adb5b52d811 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 IEnumerable? Neighbours { get; set; } + public IList? Neighbours { get; set; } [JsonInclude] [JsonPropertyName("precision")] @@ -53,7 +53,7 @@ public CompletionContextDescriptor() : base() private double? BoostValue { get; set; } - private IEnumerable? NeighboursValue { get; set; } + private IList? 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(IEnumerable? neighbours) + public CompletionContextDescriptor Neighbours(IList? 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 4b3b3bcdd00..738bc0e4323 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")] @@ -69,7 +69,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; } @@ -93,9 +93,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; } @@ -229,7 +229,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; } @@ -253,9 +253,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 4fd2579259f..a5a49877d8e 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 IEnumerable? InnerHits { get; set; } + public IList? InnerHits { get; set; } [JsonInclude] [JsonPropertyName("max_concurrent_group_searches")] @@ -57,7 +57,7 @@ public FieldCollapseDescriptor() : base() private Action> CollapseDescriptorAction { get; set; } - private IEnumerable? InnerHitsValue { get; set; } + private IList? InnerHitsValue { get; set; } private InnerHitsDescriptor InnerHitsDescriptor { get; set; } @@ -93,7 +93,7 @@ public FieldCollapseDescriptor Collapse(Action InnerHits(IEnumerable? innerHits) + public FieldCollapseDescriptor InnerHits(IList? innerHits) { InnerHitsDescriptor = null; InnerHitsDescriptorAction = null; @@ -222,7 +222,7 @@ public FieldCollapseDescriptor() : base() private Action CollapseDescriptorAction { get; set; } - private IEnumerable? InnerHitsValue { get; set; } + private IList? InnerHitsValue { get; set; } private InnerHitsDescriptor InnerHitsDescriptor { get; set; } @@ -258,7 +258,7 @@ public FieldCollapseDescriptor Collapse(Action configur return Self; } - public FieldCollapseDescriptor InnerHits(IEnumerable? innerHits) + public FieldCollapseDescriptor InnerHits(IList? 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 af529f80970..b0fa4dfab25 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 IEnumerable? PostTags { get; set; } + public IList? PostTags { get; set; } [JsonInclude] [JsonPropertyName("pre_tags")] - public IEnumerable? PreTags { get; set; } + public IList? PreTags { get; set; } [JsonInclude] [JsonPropertyName("require_field_match")] @@ -167,9 +167,9 @@ public HighlightDescriptor() : base() private int? PhraseLimitValue { get; set; } - private IEnumerable? PostTagsValue { get; set; } + private IList? PostTagsValue { get; set; } - private IEnumerable? PreTagsValue { get; set; } + private IList? PreTagsValue { get; set; } private bool? RequireFieldMatchValue { get; set; } @@ -303,13 +303,13 @@ public HighlightDescriptor PhraseLimit(int? phraseLimit) return Self; } - public HighlightDescriptor PostTags(IEnumerable? postTags) + public HighlightDescriptor PostTags(IList? postTags) { PostTagsValue = postTags; return Self; } - public HighlightDescriptor PreTags(IEnumerable? preTags) + public HighlightDescriptor PreTags(IList? preTags) { PreTagsValue = preTags; return Self; @@ -531,9 +531,9 @@ public HighlightDescriptor() : base() private int? PhraseLimitValue { get; set; } - private IEnumerable? PostTagsValue { get; set; } + private IList? PostTagsValue { get; set; } - private IEnumerable? PreTagsValue { get; set; } + private IList? PreTagsValue { get; set; } private bool? RequireFieldMatchValue { get; set; } @@ -667,13 +667,13 @@ public HighlightDescriptor PhraseLimit(int? phraseLimit) return Self; } - public HighlightDescriptor PostTags(IEnumerable? postTags) + public HighlightDescriptor PostTags(IList? postTags) { PostTagsValue = postTags; return Self; } - public HighlightDescriptor PreTags(IEnumerable? preTags) + public HighlightDescriptor PreTags(IList? 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 25eeb946eae..6554932a0c7 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 IEnumerable? PostTags { get; set; } + public IList? PostTags { get; set; } [JsonInclude] [JsonPropertyName("pre_tags")] - public IEnumerable? PreTags { get; set; } + public IList? PreTags { get; set; } [JsonInclude] [JsonPropertyName("require_field_match")] @@ -173,9 +173,9 @@ public HighlightFieldDescriptor() : base() private int? PhraseLimitValue { get; set; } - private IEnumerable? PostTagsValue { get; set; } + private IList? PostTagsValue { get; set; } - private IEnumerable? PreTagsValue { get; set; } + private IList? PreTagsValue { get; set; } private bool? RequireFieldMatchValue { get; set; } @@ -315,13 +315,13 @@ public HighlightFieldDescriptor PhraseLimit(int? phraseLimit) return Self; } - public HighlightFieldDescriptor PostTags(IEnumerable? postTags) + public HighlightFieldDescriptor PostTags(IList? postTags) { PostTagsValue = postTags; return Self; } - public HighlightFieldDescriptor PreTags(IEnumerable? preTags) + public HighlightFieldDescriptor PreTags(IList? preTags) { PreTagsValue = preTags; return Self; @@ -555,9 +555,9 @@ public HighlightFieldDescriptor() : base() private int? PhraseLimitValue { get; set; } - private IEnumerable? PostTagsValue { get; set; } + private IList? PostTagsValue { get; set; } - private IEnumerable? PreTagsValue { get; set; } + private IList? PreTagsValue { get; set; } private bool? RequireFieldMatchValue { get; set; } @@ -697,13 +697,13 @@ public HighlightFieldDescriptor PhraseLimit(int? phraseLimit) return Self; } - public HighlightFieldDescriptor PostTags(IEnumerable? postTags) + public HighlightFieldDescriptor PostTags(IList? postTags) { PostTagsValue = postTags; return Self; } - public HighlightFieldDescriptor PreTags(IEnumerable? preTags) + public HighlightFieldDescriptor PreTags(IList? 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 9c94c120743..2458ec12fd4 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 IEnumerable? DocvalueFields { get; set; } + public IList? DocvalueFields { get; set; } [JsonInclude] [JsonPropertyName("explain")] @@ -78,7 +78,7 @@ public sealed partial class InnerHits [JsonInclude] [JsonPropertyName("sort")] [JsonConverter(typeof(SortConverter))] - public IEnumerable? Sort { get; set; } + public IList? Sort { get; set; } [JsonInclude] [JsonPropertyName("stored_field")] @@ -106,7 +106,7 @@ public InnerHitsDescriptor() : base() private Action> CollapseDescriptorAction { get; set; } - private IEnumerable? DocvalueFieldsValue { get; set; } + private IList? DocvalueFieldsValue { get; set; } private QueryDsl.FieldAndFormatDescriptor DocvalueFieldsDescriptor { get; set; } @@ -138,7 +138,7 @@ public InnerHitsDescriptor() : base() private int? SizeValue { get; set; } - private IEnumerable? SortValue { get; set; } + private IList? SortValue { get; set; } private Elastic.Clients.Elasticsearch.Fields? StoredFieldValue { get; set; } @@ -170,7 +170,7 @@ public InnerHitsDescriptor Collapse(Action DocvalueFields(IEnumerable? docvalueFields) + public InnerHitsDescriptor DocvalueFields(IList? docvalueFields) { DocvalueFieldsDescriptor = null; DocvalueFieldsDescriptorAction = null; @@ -284,7 +284,7 @@ public InnerHitsDescriptor Size(int? size) return Self; } - public InnerHitsDescriptor Sort(IEnumerable? sort) + public InnerHitsDescriptor Sort(IList? sort) { SortValue = sort; return Self; @@ -469,7 +469,7 @@ public InnerHitsDescriptor() : base() private Action CollapseDescriptorAction { get; set; } - private IEnumerable? DocvalueFieldsValue { get; set; } + private IList? DocvalueFieldsValue { get; set; } private QueryDsl.FieldAndFormatDescriptor DocvalueFieldsDescriptor { get; set; } @@ -501,7 +501,7 @@ public InnerHitsDescriptor() : base() private int? SizeValue { get; set; } - private IEnumerable? SortValue { get; set; } + private IList? 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(IEnumerable? docvalueFields) + public InnerHitsDescriptor DocvalueFields(IList? docvalueFields) { DocvalueFieldsDescriptor = null; DocvalueFieldsDescriptorAction = null; @@ -647,7 +647,7 @@ public InnerHitsDescriptor Size(int? size) return Self; } - public InnerHitsDescriptor Sort(IEnumerable? sort) + public InnerHitsDescriptor Sort(IList? 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 a3ab13ec0b1..0393cc2f37a 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 IEnumerable? DirectGenerator { get; set; } + public IList? DirectGenerator { get; set; } [JsonInclude] [JsonPropertyName("field")] @@ -99,7 +99,7 @@ public PhraseSuggesterDescriptor() : base() { } - private IEnumerable? DirectGeneratorValue { get; set; } + private IList? DirectGeneratorValue { get; set; } private DirectGeneratorDescriptor DirectGeneratorDescriptor { get; set; } @@ -149,7 +149,7 @@ public PhraseSuggesterDescriptor() : base() private int? TokenLimitValue { get; set; } - public PhraseSuggesterDescriptor DirectGenerator(IEnumerable? directGenerator) + public PhraseSuggesterDescriptor DirectGenerator(IList? directGenerator) { DirectGeneratorDescriptor = null; DirectGeneratorDescriptorAction = null; @@ -496,7 +496,7 @@ public PhraseSuggesterDescriptor() : base() { } - private IEnumerable? DirectGeneratorValue { get; set; } + private IList? DirectGeneratorValue { get; set; } private DirectGeneratorDescriptor DirectGeneratorDescriptor { get; set; } @@ -546,7 +546,7 @@ public PhraseSuggesterDescriptor() : base() private int? TokenLimitValue { get; set; } - public PhraseSuggesterDescriptor DirectGenerator(IEnumerable? directGenerator) + public PhraseSuggesterDescriptor DirectGenerator(IList? directGenerator) { DirectGeneratorDescriptor = null; DirectGeneratorDescriptorAction = null; 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 8d3d7f6cffb..e97ec16de8e 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 IEnumerable? Missing { get; set; } + public IList? Missing { get; set; } [JsonInclude] [JsonPropertyName("mode")] - public IEnumerable? Mode { get; set; } + public IList? Mode { get; set; } [JsonInclude] [JsonPropertyName("order")] - public IEnumerable? Order { get; set; } + public IList? 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 IEnumerable? MissingValue { get; set; } + private IList? MissingValue { get; set; } - private IEnumerable? ModeValue { get; set; } + private IList? ModeValue { get; set; } - private IEnumerable? OrderValue { get; set; } + private IList? 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(IEnumerable? missing) + public IndexSegmentSortDescriptor Missing(IList? missing) { MissingValue = missing; return Self; } - public IndexSegmentSortDescriptor Mode(IEnumerable? mode) + public IndexSegmentSortDescriptor Mode(IList? mode) { ModeValue = mode; return Self; } - public IndexSegmentSortDescriptor Order(IEnumerable? order) + public IndexSegmentSortDescriptor Order(IList? order) { OrderValue = order; return Self; @@ -123,11 +123,11 @@ public IndexSegmentSortDescriptor() : base() private Elastic.Clients.Elasticsearch.Fields? FieldValue { get; set; } - private IEnumerable? MissingValue { get; set; } + private IList? MissingValue { get; set; } - private IEnumerable? ModeValue { get; set; } + private IList? ModeValue { get; set; } - private IEnumerable? OrderValue { get; set; } + private IList? 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(IEnumerable? missing) + public IndexSegmentSortDescriptor Missing(IList? missing) { MissingValue = missing; return Self; } - public IndexSegmentSortDescriptor Mode(IEnumerable? mode) + public IndexSegmentSortDescriptor Mode(IList? mode) { ModeValue = mode; return Self; } - public IndexSegmentSortDescriptor Order(IEnumerable? order) + public IndexSegmentSortDescriptor Order(IList? 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 d840799d89d..10010891bcf 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 IEnumerable? RoutingPath { get; set; } + public IList? 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 IEnumerable? RoutingPathValue { get; set; } + private IList? 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(IEnumerable? routingPath) + public IndexSettingsDescriptor RoutingPath(IList? routingPath) { RoutingPathValue = routingPath; return Self; @@ -2561,7 +2561,7 @@ public IndexSettingsDescriptor() : base() private int? RoutingPartitionSizeValue { get; set; } - private IEnumerable? RoutingPathValue { get; set; } + private IList? 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(IEnumerable? routingPath) + public IndexSettingsDescriptor RoutingPath(IList? 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 6adcf94ba29..e37a6188849 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 IEnumerable? Filter { get; set; } + public IList? Filter { get; set; } [JsonInclude] [JsonPropertyName("k")] @@ -49,7 +49,7 @@ public sealed partial class KnnQuery [JsonInclude] [JsonPropertyName("query_vector")] - public IEnumerable QueryVector { get; set; } + public IList QueryVector { get; set; } } public sealed partial class KnnQueryDescriptor : SerializableDescriptor> @@ -59,7 +59,7 @@ public KnnQueryDescriptor() : base() { } - private IEnumerable? FilterValue { get; set; } + private IList? FilterValue { get; set; } private QueryDsl.QueryContainerDescriptor FilterDescriptor { get; set; } @@ -75,9 +75,9 @@ public KnnQueryDescriptor() : base() private long NumCandidatesValue { get; set; } - private IEnumerable QueryVectorValue { get; set; } + private IList QueryVectorValue { get; set; } - public KnnQueryDescriptor Filter(IEnumerable? filter) + public KnnQueryDescriptor Filter(IList? filter) { FilterDescriptor = null; FilterDescriptorAction = null; @@ -143,7 +143,7 @@ public KnnQueryDescriptor NumCandidates(long numCandidates) return Self; } - public KnnQueryDescriptor QueryVector(IEnumerable queryVector) + public KnnQueryDescriptor QueryVector(IList queryVector) { QueryVectorValue = queryVector; return Self; @@ -208,7 +208,7 @@ public KnnQueryDescriptor() : base() { } - private IEnumerable? FilterValue { get; set; } + private IList? FilterValue { get; set; } private QueryDsl.QueryContainerDescriptor FilterDescriptor { get; set; } @@ -224,9 +224,9 @@ public KnnQueryDescriptor() : base() private long NumCandidatesValue { get; set; } - private IEnumerable QueryVectorValue { get; set; } + private IList QueryVectorValue { get; set; } - public KnnQueryDescriptor Filter(IEnumerable? filter) + public KnnQueryDescriptor Filter(IList? filter) { FilterDescriptor = null; FilterDescriptorAction = null; @@ -298,7 +298,7 @@ public KnnQueryDescriptor NumCandidates(long numCandidates) return Self; } - public KnnQueryDescriptor QueryVector(IEnumerable queryVector) + public KnnQueryDescriptor QueryVector(IList 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 647c552391a..6145490799f 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 IEnumerable Metrics { get; set; } + public IList Metrics { get; set; } [JsonInclude] [JsonPropertyName("properties")] @@ -87,7 +87,7 @@ public AggregateMetricDoublePropertyDescriptor() : base() private Dictionary? MetaValue { get; set; } - private IEnumerable MetricsValue { get; set; } + private IList MetricsValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -143,7 +143,7 @@ public AggregateMetricDoublePropertyDescriptor Meta(Func Metrics(IEnumerable metrics) + public AggregateMetricDoublePropertyDescriptor Metrics(IList metrics) { MetricsValue = metrics; return Self; @@ -252,7 +252,7 @@ public AggregateMetricDoublePropertyDescriptor() : base() private Dictionary? MetaValue { get; set; } - private IEnumerable MetricsValue { get; set; } + private IList MetricsValue { get; set; } private Elastic.Clients.Elasticsearch.Mapping.Properties? PropertiesValue { get; set; } @@ -308,7 +308,7 @@ public AggregateMetricDoublePropertyDescriptor Meta(Func metrics) + public AggregateMetricDoublePropertyDescriptor Metrics(IList 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 433fb24a04c..e410eeecfae 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 IEnumerable? Contexts { get; set; } + public IList? Contexts { get; set; } [JsonInclude] [JsonPropertyName("copy_to")] @@ -103,7 +103,7 @@ public CompletionPropertyDescriptor() : base() { } - private IEnumerable? ContextsValue { get; set; } + private IList? ContextsValue { get; set; } private SuggestContextDescriptor ContextsDescriptor { get; set; } @@ -141,7 +141,7 @@ public CompletionPropertyDescriptor() : base() private bool? StoreValue { get; set; } - public CompletionPropertyDescriptor Contexts(IEnumerable? contexts) + public CompletionPropertyDescriptor Contexts(IList? contexts) { ContextsDescriptor = null; ContextsDescriptorAction = null; @@ -435,7 +435,7 @@ public CompletionPropertyDescriptor() : base() { } - private IEnumerable? ContextsValue { get; set; } + private IList? ContextsValue { get; set; } private SuggestContextDescriptor ContextsDescriptor { get; set; } @@ -473,7 +473,7 @@ public CompletionPropertyDescriptor() : base() private bool? StoreValue { get; set; } - public CompletionPropertyDescriptor Contexts(IEnumerable? contexts) + public CompletionPropertyDescriptor Contexts(IList? 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 487d86edc55..a8fb6682638 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 eb247351c23..9529349011b 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 IEnumerable? Excludes { get; set; } + public IList? Excludes { get; set; } [JsonInclude] [JsonPropertyName("includes")] - public IEnumerable? Includes { get; set; } + public IList? Includes { get; set; } [JsonInclude] [JsonPropertyName("mode")] @@ -65,9 +65,9 @@ public SourceFieldDescriptor() : base() private bool? EnabledValue { get; set; } - private IEnumerable? ExcludesValue { get; set; } + private IList? ExcludesValue { get; set; } - private IEnumerable? IncludesValue { get; set; } + private IList? 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(IEnumerable? excludes) + public SourceFieldDescriptor Excludes(IList? excludes) { ExcludesValue = excludes; return Self; } - public SourceFieldDescriptor Includes(IEnumerable? includes) + public SourceFieldDescriptor Includes(IList? 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 2433734aa10..f70097136e3 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 IEnumerable? DynamicDateFormats { get; set; } + public IList? DynamicDateFormats { get; set; } [JsonInclude] [JsonPropertyName("dynamic_templates")] - public Union?, IEnumerable>?>? DynamicTemplates { get; set; } + public Union?, IList>?>? DynamicTemplates { get; set; } [JsonInclude] [JsonPropertyName("enabled")] @@ -141,9 +141,9 @@ public TypeMappingDescriptor() : base() private Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? DynamicValue { get; set; } - private IEnumerable? DynamicDateFormatsValue { get; set; } + private IList? DynamicDateFormatsValue { get; set; } - private Union?, IEnumerable>?>? DynamicTemplatesValue { get; set; } + private Union?, IList>?>? DynamicTemplatesValue { get; set; } private bool? EnabledValue { get; set; } @@ -321,13 +321,13 @@ public TypeMappingDescriptor Dynamic(Elastic.Clients.Elasticsearch.Ma return Self; } - public TypeMappingDescriptor DynamicDateFormats(IEnumerable? dynamicDateFormats) + public TypeMappingDescriptor DynamicDateFormats(IList? dynamicDateFormats) { DynamicDateFormatsValue = dynamicDateFormats; return Self; } - public TypeMappingDescriptor DynamicTemplates(Union?, IEnumerable>?>? dynamicTemplates) + public TypeMappingDescriptor DynamicTemplates(Union?, IList>?>? dynamicTemplates) { DynamicTemplatesValue = dynamicTemplates; return Self; @@ -617,9 +617,9 @@ public TypeMappingDescriptor() : base() private Elastic.Clients.Elasticsearch.Mapping.DynamicMapping? DynamicValue { get; set; } - private IEnumerable? DynamicDateFormatsValue { get; set; } + private IList? DynamicDateFormatsValue { get; set; } - private Union?, IEnumerable>?>? DynamicTemplatesValue { get; set; } + private Union?, IList>?>? 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(IEnumerable? dynamicDateFormats) + public TypeMappingDescriptor DynamicDateFormats(IList? dynamicDateFormats) { DynamicDateFormatsValue = dynamicDateFormats; return Self; } - public TypeMappingDescriptor DynamicTemplates(Union?, IEnumerable>?>? dynamicTemplates) + public TypeMappingDescriptor DynamicTemplates(Union?, IList>?>? 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 0efd04a36f5..1bfe83d0f1a 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 IEnumerable? ClassificationLabels { get; set; } + public IList? ClassificationLabels { get; set; } [JsonInclude] [JsonPropertyName("results_field")] @@ -47,7 +47,7 @@ public NerInferenceOptionsDescriptor() : base() { } - private IEnumerable? ClassificationLabelsValue { get; set; } + private IList? ClassificationLabelsValue { get; set; } private string? ResultsFieldValue { get; set; } @@ -57,7 +57,7 @@ public NerInferenceOptionsDescriptor() : base() private Action TokenizationDescriptorAction { get; set; } - public NerInferenceOptionsDescriptor ClassificationLabels(IEnumerable? classificationLabels) + public NerInferenceOptionsDescriptor ClassificationLabels(IList? 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 186436f0846..89866966206 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 IEnumerable? ClassificationLabels { get; set; } + public IList? ClassificationLabels { get; set; } [JsonInclude] [JsonPropertyName("num_top_classes")] @@ -51,7 +51,7 @@ public TextClassificationInferenceOptionsDescriptor() : base() { } - private IEnumerable? ClassificationLabelsValue { get; set; } + private IList? ClassificationLabelsValue { get; set; } private int? NumTopClassesValue { get; set; } @@ -63,7 +63,7 @@ public TextClassificationInferenceOptionsDescriptor() : base() private Action TokenizationDescriptorAction { get; set; } - public TextClassificationInferenceOptionsDescriptor ClassificationLabels(IEnumerable? classificationLabels) + public TextClassificationInferenceOptionsDescriptor ClassificationLabels(IList? 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 2d46c4edb40..937bea75345 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 IEnumerable? ClassificationLabels { get; set; } + public IList? ClassificationLabels { get; set; } [JsonInclude] [JsonPropertyName("num_top_classes")] @@ -51,7 +51,7 @@ public TextClassificationInferenceUpdateOptionsDescriptor() : base() { } - private IEnumerable? ClassificationLabelsValue { get; set; } + private IList? ClassificationLabelsValue { get; set; } private int? NumTopClassesValue { get; set; } @@ -63,7 +63,7 @@ public TextClassificationInferenceUpdateOptionsDescriptor() : base() private Action TokenizationDescriptorAction { get; set; } - public TextClassificationInferenceUpdateOptionsDescriptor ClassificationLabels(IEnumerable? classificationLabels) + public TextClassificationInferenceUpdateOptionsDescriptor ClassificationLabels(IList? 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 195f30f9057..345a9525a54 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 IEnumerable ClassificationLabels { get; set; } + public IList ClassificationLabels { get; set; } [JsonInclude] [JsonPropertyName("hypothesis_template")] @@ -37,7 +37,7 @@ public sealed partial class ZeroShotClassificationInferenceOptions [JsonInclude] [JsonPropertyName("labels")] - public IEnumerable? Labels { get; set; } + public IList? Labels { get; set; } [JsonInclude] [JsonPropertyName("multi_label")] @@ -59,11 +59,11 @@ public ZeroShotClassificationInferenceOptionsDescriptor() : base() { } - private IEnumerable ClassificationLabelsValue { get; set; } + private IList ClassificationLabelsValue { get; set; } private string? HypothesisTemplateValue { get; set; } - private IEnumerable? LabelsValue { get; set; } + private IList? LabelsValue { get; set; } private bool? MultiLabelValue { get; set; } @@ -75,7 +75,7 @@ public ZeroShotClassificationInferenceOptionsDescriptor() : base() private Action TokenizationDescriptorAction { get; set; } - public ZeroShotClassificationInferenceOptionsDescriptor ClassificationLabels(IEnumerable classificationLabels) + public ZeroShotClassificationInferenceOptionsDescriptor ClassificationLabels(IList classificationLabels) { ClassificationLabelsValue = classificationLabels; return Self; @@ -87,7 +87,7 @@ public ZeroShotClassificationInferenceOptionsDescriptor HypothesisTemplate(strin return Self; } - public ZeroShotClassificationInferenceOptionsDescriptor Labels(IEnumerable? labels) + public ZeroShotClassificationInferenceOptionsDescriptor Labels(IList? 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 8cfff9feb49..71bcb5633cb 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 IEnumerable Labels { get; set; } + public IList Labels { get; set; } [JsonInclude] [JsonPropertyName("multi_label")] @@ -51,7 +51,7 @@ public ZeroShotClassificationInferenceUpdateOptionsDescriptor() : base() { } - private IEnumerable LabelsValue { get; set; } + private IList LabelsValue { get; set; } private bool? MultiLabelValue { get; set; } @@ -63,7 +63,7 @@ public ZeroShotClassificationInferenceUpdateOptionsDescriptor() : base() private Action TokenizationDescriptorAction { get; set; } - public ZeroShotClassificationInferenceUpdateOptionsDescriptor Labels(IEnumerable labels) + public ZeroShotClassificationInferenceUpdateOptionsDescriptor Labels(IList 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 743398ca24b..f5e4e906509 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 IEnumerable? Filter { get; set; } + public IList? Filter { get; set; } [JsonInclude] [JsonPropertyName("minimum_should_match")] @@ -45,15 +45,15 @@ public sealed partial class BoolQuery : Query [JsonInclude] [JsonPropertyName("must")] - public IEnumerable? Must { get; set; } + public IList? Must { get; set; } [JsonInclude] [JsonPropertyName("must_not")] - public IEnumerable? MustNot { get; set; } + public IList? MustNot { get; set; } [JsonInclude] [JsonPropertyName("should")] - public IEnumerable? Should { get; set; } + public IList? Should { get; set; } } public sealed partial class BoolQueryDescriptor : SerializableDescriptor> @@ -63,7 +63,7 @@ public BoolQueryDescriptor() : base() { } - private IEnumerable? FilterValue { get; set; } + private IList? FilterValue { get; set; } private QueryContainerDescriptor FilterDescriptor { get; set; } @@ -71,7 +71,7 @@ public BoolQueryDescriptor() : base() private Action>[] FilterDescriptorActions { get; set; } - private IEnumerable? MustValue { get; set; } + private IList? MustValue { get; set; } private QueryContainerDescriptor MustDescriptor { get; set; } @@ -79,7 +79,7 @@ public BoolQueryDescriptor() : base() private Action>[] MustDescriptorActions { get; set; } - private IEnumerable? MustNotValue { get; set; } + private IList? MustNotValue { get; set; } private QueryContainerDescriptor MustNotDescriptor { get; set; } @@ -87,7 +87,7 @@ public BoolQueryDescriptor() : base() private Action>[] MustNotDescriptorActions { get; set; } - private IEnumerable? ShouldValue { get; set; } + private IList? ShouldValue { get; set; } private QueryContainerDescriptor ShouldDescriptor { get; set; } @@ -101,7 +101,7 @@ public BoolQueryDescriptor() : base() private Elastic.Clients.Elasticsearch.MinimumShouldMatch? MinimumShouldMatchValue { get; set; } - public BoolQueryDescriptor Filter(IEnumerable? filter) + public BoolQueryDescriptor Filter(IList? filter) { FilterDescriptor = null; FilterDescriptorAction = null; @@ -137,7 +137,7 @@ public BoolQueryDescriptor Filter(params Action Must(IEnumerable? must) + public BoolQueryDescriptor Must(IList? must) { MustDescriptor = null; MustDescriptorAction = null; @@ -173,7 +173,7 @@ public BoolQueryDescriptor Must(params Action MustNot(IEnumerable? mustNot) + public BoolQueryDescriptor MustNot(IList? mustNot) { MustNotDescriptor = null; MustNotDescriptorAction = null; @@ -209,7 +209,7 @@ public BoolQueryDescriptor MustNot(params Action Should(IEnumerable? should) + public BoolQueryDescriptor Should(IList? should) { ShouldDescriptor = null; ShouldDescriptorAction = null; @@ -419,7 +419,7 @@ public BoolQueryDescriptor() : base() { } - private IEnumerable? FilterValue { get; set; } + private IList? FilterValue { get; set; } private QueryContainerDescriptor FilterDescriptor { get; set; } @@ -427,7 +427,7 @@ public BoolQueryDescriptor() : base() private Action[] FilterDescriptorActions { get; set; } - private IEnumerable? MustValue { get; set; } + private IList? MustValue { get; set; } private QueryContainerDescriptor MustDescriptor { get; set; } @@ -435,7 +435,7 @@ public BoolQueryDescriptor() : base() private Action[] MustDescriptorActions { get; set; } - private IEnumerable? MustNotValue { get; set; } + private IList? MustNotValue { get; set; } private QueryContainerDescriptor MustNotDescriptor { get; set; } @@ -443,7 +443,7 @@ public BoolQueryDescriptor() : base() private Action[] MustNotDescriptorActions { get; set; } - private IEnumerable? ShouldValue { get; set; } + private IList? ShouldValue { get; set; } private QueryContainerDescriptor ShouldDescriptor { get; set; } @@ -457,7 +457,7 @@ public BoolQueryDescriptor() : base() private Elastic.Clients.Elasticsearch.MinimumShouldMatch? MinimumShouldMatchValue { get; set; } - public BoolQueryDescriptor Filter(IEnumerable? filter) + public BoolQueryDescriptor Filter(IList? filter) { FilterDescriptor = null; FilterDescriptorAction = null; @@ -493,7 +493,7 @@ public BoolQueryDescriptor Filter(params Action[] conf return Self; } - public BoolQueryDescriptor Must(IEnumerable? must) + public BoolQueryDescriptor Must(IList? must) { MustDescriptor = null; MustDescriptorAction = null; @@ -529,7 +529,7 @@ public BoolQueryDescriptor Must(params Action[] config return Self; } - public BoolQueryDescriptor MustNot(IEnumerable? mustNot) + public BoolQueryDescriptor MustNot(IList? mustNot) { MustNotDescriptor = null; MustNotDescriptorAction = null; @@ -565,7 +565,7 @@ public BoolQueryDescriptor MustNot(params Action[] con return Self; } - public BoolQueryDescriptor Should(IEnumerable? should) + public BoolQueryDescriptor Should(IList? should) { ShouldDescriptor = null; ShouldDescriptorAction = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/CombinedFieldsQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/CombinedFieldsQuery.g.cs index 6d65ebab34e..1fa92872070 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/CombinedFieldsQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/CombinedFieldsQuery.g.cs @@ -41,7 +41,7 @@ public sealed partial class CombinedFieldsQuery : Query [JsonInclude] [JsonPropertyName("fields")] - public IEnumerable Fields { get; set; } + public IList Fields { get; set; } [JsonInclude] [JsonPropertyName("minimum_should_match")] @@ -73,7 +73,7 @@ public CombinedFieldsQueryDescriptor() : base() private float? BoostValue { get; set; } - private IEnumerable FieldsValue { get; set; } + private IList FieldsValue { get; set; } private Elastic.Clients.Elasticsearch.MinimumShouldMatch? MinimumShouldMatchValue { get; set; } @@ -101,7 +101,7 @@ public CombinedFieldsQueryDescriptor Boost(float? boost) return Self; } - public CombinedFieldsQueryDescriptor Fields(IEnumerable fields) + public CombinedFieldsQueryDescriptor Fields(IList fields) { FieldsValue = fields; return Self; @@ -191,7 +191,7 @@ public CombinedFieldsQueryDescriptor() : base() private float? BoostValue { get; set; } - private IEnumerable FieldsValue { get; set; } + private IList FieldsValue { get; set; } private Elastic.Clients.Elasticsearch.MinimumShouldMatch? MinimumShouldMatchValue { get; set; } @@ -219,7 +219,7 @@ public CombinedFieldsQueryDescriptor Boost(float? boost) return Self; } - public CombinedFieldsQueryDescriptor Fields(IEnumerable fields) + public CombinedFieldsQueryDescriptor Fields(IList fields) { FieldsValue = fields; return Self; 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 f00e1265d3e..a2f55f9321b 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 IEnumerable Queries { get; set; } + public IList Queries { get; set; } [JsonInclude] [JsonPropertyName("tie_breaker")] @@ -51,7 +51,7 @@ public DisMaxQueryDescriptor() : base() { } - private IEnumerable QueriesValue { get; set; } + private IList QueriesValue { get; set; } private QueryContainerDescriptor QueriesDescriptor { get; set; } @@ -65,7 +65,7 @@ public DisMaxQueryDescriptor() : base() private double? TieBreakerValue { get; set; } - public DisMaxQueryDescriptor Queries(IEnumerable queries) + public DisMaxQueryDescriptor Queries(IList queries) { QueriesDescriptor = null; QueriesDescriptorAction = null; @@ -182,7 +182,7 @@ public DisMaxQueryDescriptor() : base() { } - private IEnumerable QueriesValue { get; set; } + private IList QueriesValue { get; set; } private QueryContainerDescriptor QueriesDescriptor { get; set; } @@ -196,7 +196,7 @@ public DisMaxQueryDescriptor() : base() private double? TieBreakerValue { get; set; } - public DisMaxQueryDescriptor Queries(IEnumerable queries) + public DisMaxQueryDescriptor Queries(IList 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 104eb784b84..f71d9df53bd 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 IEnumerable? Functions { get; set; } + public IList? Functions { get; set; } [JsonInclude] [JsonPropertyName("max_boost")] @@ -67,7 +67,7 @@ public FunctionScoreQueryDescriptor() : base() { } - private IEnumerable? FunctionsValue { get; set; } + private IList? FunctionsValue { get; set; } private FunctionScoreContainerDescriptor FunctionsDescriptor { get; set; } @@ -93,7 +93,7 @@ public FunctionScoreQueryDescriptor() : base() private Elastic.Clients.Elasticsearch.QueryDsl.FunctionScoreMode? ScoreModeValue { get; set; } - public FunctionScoreQueryDescriptor Functions(IEnumerable? functions) + public FunctionScoreQueryDescriptor Functions(IList? functions) { FunctionsDescriptor = null; FunctionsDescriptorAction = null; @@ -286,7 +286,7 @@ public FunctionScoreQueryDescriptor() : base() { } - private IEnumerable? FunctionsValue { get; set; } + private IList? FunctionsValue { get; set; } private FunctionScoreContainerDescriptor FunctionsDescriptor { get; set; } @@ -312,7 +312,7 @@ public FunctionScoreQueryDescriptor() : base() private Elastic.Clients.Elasticsearch.QueryDsl.FunctionScoreMode? ScoreModeValue { get; set; } - public FunctionScoreQueryDescriptor Functions(IEnumerable? functions) + public FunctionScoreQueryDescriptor Functions(IList? 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 4acdce56a8a..f8395f9ea64 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 IEnumerable Intervals { get; set; } + public IList Intervals { get; set; } [JsonInclude] [JsonPropertyName("max_gaps")] @@ -51,7 +51,7 @@ public IntervalsAllOfDescriptor() : base() { } - private IEnumerable IntervalsValue { get; set; } + private IList IntervalsValue { get; set; } private IntervalsContainerDescriptor IntervalsDescriptor { get; set; } @@ -69,7 +69,7 @@ public IntervalsAllOfDescriptor() : base() private bool? OrderedValue { get; set; } - public IntervalsAllOfDescriptor Intervals(IEnumerable intervals) + public IntervalsAllOfDescriptor Intervals(IList intervals) { IntervalsDescriptor = null; IntervalsDescriptorAction = null; @@ -214,7 +214,7 @@ public IntervalsAllOfDescriptor() : base() { } - private IEnumerable IntervalsValue { get; set; } + private IList IntervalsValue { get; set; } private IntervalsContainerDescriptor IntervalsDescriptor { get; set; } @@ -232,7 +232,7 @@ public IntervalsAllOfDescriptor() : base() private bool? OrderedValue { get; set; } - public IntervalsAllOfDescriptor Intervals(IEnumerable intervals) + public IntervalsAllOfDescriptor Intervals(IList 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 d766fb57560..a9c8b955cea 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 IEnumerable Intervals { get; set; } + public IList Intervals { get; set; } } public sealed partial class IntervalsAnyOfDescriptor : SerializableDescriptor> @@ -43,7 +43,7 @@ public IntervalsAnyOfDescriptor() : base() { } - private IEnumerable IntervalsValue { get; set; } + private IList IntervalsValue { get; set; } private IntervalsContainerDescriptor IntervalsDescriptor { get; set; } @@ -57,7 +57,7 @@ public IntervalsAnyOfDescriptor() : base() private Action FilterDescriptorAction { get; set; } - public IntervalsAnyOfDescriptor Intervals(IEnumerable intervals) + public IntervalsAnyOfDescriptor Intervals(IList intervals) { IntervalsDescriptor = null; IntervalsDescriptorAction = null; @@ -178,7 +178,7 @@ public IntervalsAnyOfDescriptor() : base() { } - private IEnumerable IntervalsValue { get; set; } + private IList IntervalsValue { get; set; } private IntervalsContainerDescriptor IntervalsDescriptor { get; set; } @@ -192,7 +192,7 @@ public IntervalsAnyOfDescriptor() : base() private Action FilterDescriptorAction { get; set; } - public IntervalsAnyOfDescriptor Intervals(IEnumerable intervals) + public IntervalsAnyOfDescriptor Intervals(IList intervals) { IntervalsDescriptor = null; IntervalsDescriptorAction = null; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/LikeDocument.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/LikeDocument.g.cs index 43fe80596cb..e391a9b2b0c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/LikeDocument.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/LikeDocument.g.cs @@ -41,7 +41,7 @@ public sealed partial class LikeDocument [JsonInclude] [JsonPropertyName("fields")] - public IEnumerable? Fields { get; set; } + public IList? Fields { get; set; } [JsonInclude] [JsonPropertyName("per_field_analyzer")] @@ -73,7 +73,7 @@ public LikeDocumentDescriptor() : base() private object? DocValue { get; set; } - private IEnumerable? FieldsValue { get; set; } + private IList? FieldsValue { get; set; } private Dictionary? PerFieldAnalyzerValue { get; set; } @@ -101,7 +101,7 @@ public LikeDocumentDescriptor Doc(object? doc) return Self; } - public LikeDocumentDescriptor Fields(IEnumerable? fields) + public LikeDocumentDescriptor Fields(IList? fields) { FieldsValue = fields; return Self; @@ -193,7 +193,7 @@ public LikeDocumentDescriptor() : base() private object? DocValue { get; set; } - private IEnumerable? FieldsValue { get; set; } + private IList? FieldsValue { get; set; } private Dictionary? PerFieldAnalyzerValue { get; set; } @@ -221,7 +221,7 @@ public LikeDocumentDescriptor Doc(object? doc) return Self; } - public LikeDocumentDescriptor Fields(IEnumerable? fields) + public LikeDocumentDescriptor Fields(IList? fields) { FieldsValue = fields; return Self; 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 06638a44f91..3708aa1a549 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MoreLikeThisQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/MoreLikeThisQuery.g.cs @@ -49,7 +49,7 @@ public sealed partial class MoreLikeThisQuery : Query [JsonInclude] [JsonPropertyName("fields")] - public IEnumerable? Fields { get; set; } + public IList? Fields { get; set; } [JsonInclude] [JsonPropertyName("include")] @@ -57,7 +57,7 @@ public sealed partial class MoreLikeThisQuery : Query [JsonInclude] [JsonPropertyName("like")] - public IEnumerable Like { get; set; } + public IList 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 IEnumerable? StopWords { get; set; } + public IList? StopWords { get; set; } [JsonInclude] [JsonPropertyName("unlike")] - public IEnumerable? Unlike { get; set; } + public IList? Unlike { get; set; } [JsonInclude] [JsonPropertyName("version")] @@ -130,11 +130,11 @@ public MoreLikeThisQueryDescriptor() : base() private bool? FailOnUnsupportedFieldValue { get; set; } - private IEnumerable? FieldsValue { get; set; } + private IList? FieldsValue { get; set; } private bool? IncludeValue { get; set; } - private IEnumerable LikeValue { get; set; } + private IList LikeValue { get; set; } private int? MaxDocFreqValue { get; set; } @@ -154,9 +154,9 @@ public MoreLikeThisQueryDescriptor() : base() private Elastic.Clients.Elasticsearch.Routing? RoutingValue { get; set; } - private IEnumerable? StopWordsValue { get; set; } + private IList? StopWordsValue { get; set; } - private IEnumerable? UnlikeValue { get; set; } + private IList? UnlikeValue { get; set; } private long? VersionValue { get; set; } @@ -192,7 +192,7 @@ public MoreLikeThisQueryDescriptor FailOnUnsupportedField(bool? failO return Self; } - public MoreLikeThisQueryDescriptor Fields(IEnumerable? fields) + public MoreLikeThisQueryDescriptor Fields(IList? fields) { FieldsValue = fields; return Self; @@ -204,7 +204,7 @@ public MoreLikeThisQueryDescriptor Include(bool? include = true) return Self; } - public MoreLikeThisQueryDescriptor Like(IEnumerable like) + public MoreLikeThisQueryDescriptor Like(IList like) { LikeValue = like; return Self; @@ -264,13 +264,13 @@ public MoreLikeThisQueryDescriptor Routing(Elastic.Clients.Elasticsea return Self; } - public MoreLikeThisQueryDescriptor StopWords(IEnumerable? stopWords) + public MoreLikeThisQueryDescriptor StopWords(IList? stopWords) { StopWordsValue = stopWords; return Self; } - public MoreLikeThisQueryDescriptor Unlike(IEnumerable? unlike) + public MoreLikeThisQueryDescriptor Unlike(IList? unlike) { UnlikeValue = unlike; return Self; @@ -434,11 +434,11 @@ public MoreLikeThisQueryDescriptor() : base() private bool? FailOnUnsupportedFieldValue { get; set; } - private IEnumerable? FieldsValue { get; set; } + private IList? FieldsValue { get; set; } private bool? IncludeValue { get; set; } - private IEnumerable LikeValue { get; set; } + private IList LikeValue { get; set; } private int? MaxDocFreqValue { get; set; } @@ -458,9 +458,9 @@ public MoreLikeThisQueryDescriptor() : base() private Elastic.Clients.Elasticsearch.Routing? RoutingValue { get; set; } - private IEnumerable? StopWordsValue { get; set; } + private IList? StopWordsValue { get; set; } - private IEnumerable? UnlikeValue { get; set; } + private IList? UnlikeValue { get; set; } private long? VersionValue { get; set; } @@ -496,7 +496,7 @@ public MoreLikeThisQueryDescriptor FailOnUnsupportedField(bool? failOnUnsupporte return Self; } - public MoreLikeThisQueryDescriptor Fields(IEnumerable? fields) + public MoreLikeThisQueryDescriptor Fields(IList? fields) { FieldsValue = fields; return Self; @@ -508,7 +508,7 @@ public MoreLikeThisQueryDescriptor Include(bool? include = true) return Self; } - public MoreLikeThisQueryDescriptor Like(IEnumerable like) + public MoreLikeThisQueryDescriptor Like(IList like) { LikeValue = like; return Self; @@ -568,13 +568,13 @@ public MoreLikeThisQueryDescriptor Routing(Elastic.Clients.Elasticsearch.Routing return Self; } - public MoreLikeThisQueryDescriptor StopWords(IEnumerable? stopWords) + public MoreLikeThisQueryDescriptor StopWords(IList? stopWords) { StopWordsValue = stopWords; return Self; } - public MoreLikeThisQueryDescriptor Unlike(IEnumerable? unlike) + public MoreLikeThisQueryDescriptor Unlike(IList? 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 9df2431798b..146eb61bc89 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 IEnumerable? Documents { get; set; } + public IList? Documents { get; set; } [JsonInclude] [JsonPropertyName("field")] @@ -85,7 +85,7 @@ public PercolateQueryDescriptor() : base() private object? DocumentValue { get; set; } - private IEnumerable? DocumentsValue { get; set; } + private IList? DocumentsValue { get; set; } private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } @@ -119,7 +119,7 @@ public PercolateQueryDescriptor Document(object? document) return Self; } - public PercolateQueryDescriptor Documents(IEnumerable? documents) + public PercolateQueryDescriptor Documents(IList? documents) { DocumentsValue = documents; return Self; @@ -249,7 +249,7 @@ public PercolateQueryDescriptor() : base() private object? DocumentValue { get; set; } - private IEnumerable? DocumentsValue { get; set; } + private IList? DocumentsValue { get; set; } private Elastic.Clients.Elasticsearch.Field FieldValue { get; set; } @@ -283,7 +283,7 @@ public PercolateQueryDescriptor Document(object? document) return Self; } - public PercolateQueryDescriptor Documents(IEnumerable? documents) + public PercolateQueryDescriptor Documents(IList? documents) { DocumentsValue = documents; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/QueryStringQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/QueryStringQuery.g.cs index a928a299572..83b2775432e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/QueryStringQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/QueryStringQuery.g.cs @@ -69,7 +69,7 @@ public sealed partial class QueryStringQuery : Query [JsonInclude] [JsonPropertyName("fields")] - public IEnumerable? Fields { get; set; } + public IList? Fields { get; set; } [JsonInclude] [JsonPropertyName("fuzziness")] @@ -163,7 +163,7 @@ public QueryStringQueryDescriptor() : base() private bool? EscapeValue { get; set; } - private IEnumerable? FieldsValue { get; set; } + private IList? FieldsValue { get; set; } private Elastic.Clients.Elasticsearch.Fuzziness? FuzzinessValue { get; set; } @@ -263,7 +263,7 @@ public QueryStringQueryDescriptor Escape(bool? escape = true) return Self; } - public QueryStringQueryDescriptor Fields(IEnumerable? fields) + public QueryStringQueryDescriptor Fields(IList? fields) { FieldsValue = fields; return Self; @@ -557,7 +557,7 @@ public QueryStringQueryDescriptor() : base() private bool? EscapeValue { get; set; } - private IEnumerable? FieldsValue { get; set; } + private IList? FieldsValue { get; set; } private Elastic.Clients.Elasticsearch.Fuzziness? FuzzinessValue { get; set; } @@ -663,7 +663,7 @@ public QueryStringQueryDescriptor Escape(bool? escape = true) return Self; } - public QueryStringQueryDescriptor Fields(IEnumerable? fields) + public QueryStringQueryDescriptor Fields(IList? fields) { FieldsValue = fields; return Self; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SimpleQueryStringQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SimpleQueryStringQuery.g.cs index 6a0de95933d..7e50f62cff1 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SimpleQueryStringQuery.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/QueryDsl/SimpleQueryStringQuery.g.cs @@ -53,7 +53,7 @@ public sealed partial class SimpleQueryStringQuery : Query [JsonInclude] [JsonPropertyName("fields")] - public IEnumerable? Fields { get; set; } + public IList? Fields { get; set; } [JsonInclude] [JsonPropertyName("flags")] @@ -107,7 +107,7 @@ public SimpleQueryStringQueryDescriptor() : base() private Elastic.Clients.Elasticsearch.QueryDsl.Operator? DefaultOperatorValue { get; set; } - private IEnumerable? FieldsValue { get; set; } + private IList? FieldsValue { get; set; } private Elastic.Clients.Elasticsearch.QueryDsl.SimpleQueryStringFlags? FlagsValue { get; set; } @@ -161,7 +161,7 @@ public SimpleQueryStringQueryDescriptor DefaultOperator(Elastic.Clien return Self; } - public SimpleQueryStringQueryDescriptor Fields(IEnumerable? fields) + public SimpleQueryStringQueryDescriptor Fields(IList? fields) { FieldsValue = fields; return Self; @@ -327,7 +327,7 @@ public SimpleQueryStringQueryDescriptor() : base() private Elastic.Clients.Elasticsearch.QueryDsl.Operator? DefaultOperatorValue { get; set; } - private IEnumerable? FieldsValue { get; set; } + private IList? FieldsValue { get; set; } private Elastic.Clients.Elasticsearch.QueryDsl.SimpleQueryStringFlags? FlagsValue { get; set; } @@ -381,7 +381,7 @@ public SimpleQueryStringQueryDescriptor DefaultOperator(Elastic.Clients.Elastics return Self; } - public SimpleQueryStringQueryDescriptor Fields(IEnumerable? fields) + public SimpleQueryStringQueryDescriptor Fields(IList? fields) { FieldsValue = fields; 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 31d9f00e4c5..01538a79a3e 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 IEnumerable Clauses { get; set; } + public IList Clauses { get; set; } [JsonInclude] [JsonPropertyName("in_order")] @@ -55,7 +55,7 @@ public SpanNearQueryDescriptor() : base() { } - private IEnumerable ClausesValue { get; set; } + private IList ClausesValue { get; set; } private SpanQueryDescriptor ClausesDescriptor { get; set; } @@ -71,7 +71,7 @@ public SpanNearQueryDescriptor() : base() private int? SlopValue { get; set; } - public SpanNearQueryDescriptor Clauses(IEnumerable clauses) + public SpanNearQueryDescriptor Clauses(IList clauses) { ClausesDescriptor = null; ClausesDescriptorAction = null; @@ -200,7 +200,7 @@ public SpanNearQueryDescriptor() : base() { } - private IEnumerable ClausesValue { get; set; } + private IList ClausesValue { get; set; } private SpanQueryDescriptor ClausesDescriptor { get; set; } @@ -216,7 +216,7 @@ public SpanNearQueryDescriptor() : base() private int? SlopValue { get; set; } - public SpanNearQueryDescriptor Clauses(IEnumerable clauses) + public SpanNearQueryDescriptor Clauses(IList 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 5749ace171b..8c38e20ef78 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 IEnumerable Clauses { get; set; } + public IList Clauses { get; set; } } public sealed partial class SpanOrQueryDescriptor : SerializableDescriptor> @@ -47,7 +47,7 @@ public SpanOrQueryDescriptor() : base() { } - private IEnumerable ClausesValue { get; set; } + private IList ClausesValue { get; set; } private SpanQueryDescriptor ClausesDescriptor { get; set; } @@ -59,7 +59,7 @@ public SpanOrQueryDescriptor() : base() private float? BoostValue { get; set; } - public SpanOrQueryDescriptor Clauses(IEnumerable clauses) + public SpanOrQueryDescriptor Clauses(IList clauses) { ClausesDescriptor = null; ClausesDescriptorAction = null; @@ -164,7 +164,7 @@ public SpanOrQueryDescriptor() : base() { } - private IEnumerable ClausesValue { get; set; } + private IList ClausesValue { get; set; } private SpanQueryDescriptor ClausesDescriptor { get; set; } @@ -176,7 +176,7 @@ public SpanOrQueryDescriptor() : base() private float? BoostValue { get; set; } - public SpanOrQueryDescriptor Clauses(IEnumerable clauses) + public SpanOrQueryDescriptor Clauses(IList 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 4c7261517c6..37353d89ea6 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 IEnumerable Terms { get; set; } + public IList Terms { get; set; } public Elastic.Clients.Elasticsearch.Field Field { get; set; } } @@ -174,7 +174,7 @@ public TermsSetQueryDescriptor(Expression> field) private Elastic.Clients.Elasticsearch.Script? MinimumShouldMatchScriptValue { get; set; } - private IEnumerable TermsValue { get; set; } + private IList TermsValue { get; set; } public TermsSetQueryDescriptor QueryName(string? queryName) { @@ -218,7 +218,7 @@ public TermsSetQueryDescriptor MinimumShouldMatchScript(Elastic.Clien return Self; } - public TermsSetQueryDescriptor Terms(IEnumerable terms) + public TermsSetQueryDescriptor Terms(IList terms) { TermsValue = terms; return Self; @@ -286,7 +286,7 @@ public TermsSetQueryDescriptor(Field field) private Elastic.Clients.Elasticsearch.Script? MinimumShouldMatchScriptValue { get; set; } - private IEnumerable TermsValue { get; set; } + private IList TermsValue { get; set; } public TermsSetQueryDescriptor QueryName(string? queryName) { @@ -342,7 +342,7 @@ public TermsSetQueryDescriptor MinimumShouldMatchScript(Elastic.Clients.Elastics return Self; } - public TermsSetQueryDescriptor Terms(IEnumerable terms) + public TermsSetQueryDescriptor Terms(IList terms) { TermsValue = terms; return Self; diff --git a/tests/Tests/IndexManagement/IndexSettingsSerializationTests.cs b/tests/Tests/IndexManagement/IndexSettingsSerializationTests.cs index 4b11c56d9ef..94a390f85f2 100644 --- a/tests/Tests/IndexManagement/IndexSettingsSerializationTests.cs +++ b/tests/Tests/IndexManagement/IndexSettingsSerializationTests.cs @@ -30,7 +30,7 @@ public async Task CanSerializerIndexSettingsWithCustomAnalyzer() .Analyzer(a => a .Custom("whitespace_lowercase", wl => wl .Tokenizer("whitespace") - .Filter(Enumerable.Repeat("lowercase", 1)) + .Filter(new[] { "lowercase" }) ) ) );