diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryRequest.Converters.g.cs index 009552e91c6..b6927344e32 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryRequest.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryRequest.Converters.g.cs @@ -48,7 +48,7 @@ public override Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequest Read(ref Sy LocalJsonValue propKeepAlive = default; LocalJsonValue propKeepOnCompletion = default; LocalJsonValue propLocale = default; - LocalJsonValue?> propParams = default; + LocalJsonValue>, System.Collections.Generic.ICollection>>>?> propParams = default; LocalJsonValue propProfile = default; LocalJsonValue propProjectRouting = default; LocalJsonValue propQuery = default; @@ -90,7 +90,7 @@ public override Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequest Read(ref Sy continue; } - if (propParams.TryReadProperty(ref reader, options, PropParams, static System.Collections.Generic.ICollection? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadCollectionValue(o, null))) + if (propParams.TryReadProperty(ref reader, options, PropParams, static Elastic.Clients.Elasticsearch.Union>, System.Collections.Generic.ICollection>>>? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadUnionValue>, System.Collections.Generic.ICollection>>>(o, static (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => JsonUnionSelector.T1(ref r, o), static System.Collections.Generic.ICollection> (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadCollectionValue>(o, static System.Collections.Generic.ICollection (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadSingleOrManyCollectionValue(o, null)!)!, static System.Collections.Generic.ICollection>> (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadCollectionValue>>(o, static System.Collections.Generic.KeyValuePair> (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadKeyValuePairValue>(o, null, static System.Collections.Generic.ICollection (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadSingleOrManyCollectionValue(o, null)!))!))) { continue; } @@ -152,7 +152,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien writer.WriteProperty(options, PropKeepAlive, value.KeepAlive, null, null); writer.WriteProperty(options, PropKeepOnCompletion, value.KeepOnCompletion, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropLocale, value.Locale, null, null); - writer.WriteProperty(options, PropParams, value.Params, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection? v) => w.WriteCollectionValue(o, v, null)); + writer.WriteProperty(options, PropParams, value.Params, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.Union>, System.Collections.Generic.ICollection>>>? v) => w.WriteUnionValue>, System.Collections.Generic.ICollection>>>(o, v, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection> v) => w.WriteCollectionValue>(o, v, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection v) => w.WriteSingleOrManyCollectionValue(o, v, null)), static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection>> v) => w.WriteCollectionValue>>(o, v, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.KeyValuePair> v) => w.WriteKeyValuePairValue>(o, v, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection v) => w.WriteSingleOrManyCollectionValue(o, v, null))))); writer.WriteProperty(options, PropProfile, value.Profile, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropProjectRouting, value.ProjectRouting, null, null); writer.WriteProperty(options, PropQuery, value.Query, null, null); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryRequest.g.cs index 7ad2cda03a7..68c4d5f5cc4 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/AsyncQueryRequest.g.cs @@ -203,7 +203,7 @@ internal AsyncQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// To avoid any attempts of hacking or code injection, extract the values in a separate list of parameters. Use question mark placeholders (?) in the query string for each of the parameters. /// /// - public System.Collections.Generic.ICollection? Params { get; set; } + public Elastic.Clients.Elasticsearch.Union>, System.Collections.Generic.ICollection>>>? Params { get; set; } /// /// @@ -441,23 +441,12 @@ public Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor Locale(str /// To avoid any attempts of hacking or code injection, extract the values in a separate list of parameters. Use question mark placeholders (?) in the query string for each of the parameters. /// /// - public Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor Params(System.Collections.Generic.ICollection? value) + public Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor Params(Elastic.Clients.Elasticsearch.Union>, System.Collections.Generic.ICollection>>>? value) { Instance.Params = value; return this; } - /// - /// - /// To avoid any attempts of hacking or code injection, extract the values in a separate list of parameters. Use question mark placeholders (?) in the query string for each of the parameters. - /// - /// - public Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor Params(params Elastic.Clients.Elasticsearch.FieldValue[] values) - { - Instance.Params = [.. values]; - return this; - } - /// /// /// If provided and true the response will include an extra profile object @@ -754,23 +743,12 @@ public Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor /// To avoid any attempts of hacking or code injection, extract the values in a separate list of parameters. Use question mark placeholders (?) in the query string for each of the parameters. /// /// - public Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor Params(System.Collections.Generic.ICollection? value) + public Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor Params(Elastic.Clients.Elasticsearch.Union>, System.Collections.Generic.ICollection>>>? value) { Instance.Params = value; return this; } - /// - /// - /// To avoid any attempts of hacking or code injection, extract the values in a separate list of parameters. Use question mark placeholders (?) in the query string for each of the parameters. - /// - /// - public Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor Params(params Elastic.Clients.Elasticsearch.FieldValue[] values) - { - Instance.Params = [.. values]; - return this; - } - /// /// /// If provided and true the response will include an extra profile object diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.Converters.g.cs index 3237d3d806c..bd4a8d3b4f2 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.Converters.g.cs @@ -43,7 +43,7 @@ public override Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequest Read(ref Sys LocalJsonValue propIncludeCcsMetadata = default; LocalJsonValue propIncludeExecutionMetadata = default; LocalJsonValue propLocale = default; - LocalJsonValue>?> propParams = default; + LocalJsonValue>, System.Collections.Generic.ICollection>>>?> propParams = default; LocalJsonValue propProfile = default; LocalJsonValue propProjectRouting = default; LocalJsonValue propQuery = default; @@ -74,7 +74,7 @@ public override Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequest Read(ref Sys continue; } - if (propParams.TryReadProperty(ref reader, options, PropParams, static System.Collections.Generic.ICollection>? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadCollectionValue>(o, static System.Collections.Generic.ICollection (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadSingleOrManyCollectionValue(o, null)!))) + if (propParams.TryReadProperty(ref reader, options, PropParams, static Elastic.Clients.Elasticsearch.Union>, System.Collections.Generic.ICollection>>>? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadUnionValue>, System.Collections.Generic.ICollection>>>(o, static (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => JsonUnionSelector.T1(ref r, o), static System.Collections.Generic.ICollection> (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadCollectionValue>(o, static System.Collections.Generic.ICollection (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadSingleOrManyCollectionValue(o, null)!)!, static System.Collections.Generic.ICollection>> (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadCollectionValue>>(o, static System.Collections.Generic.KeyValuePair> (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadKeyValuePairValue>(o, null, static System.Collections.Generic.ICollection (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadSingleOrManyCollectionValue(o, null)!))!))) { continue; } @@ -126,7 +126,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien writer.WriteProperty(options, PropIncludeCcsMetadata, value.IncludeCcsMetadata, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropIncludeExecutionMetadata, value.IncludeExecutionMetadata, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropLocale, value.Locale, null, null); - writer.WriteProperty(options, PropParams, value.Params, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection>? v) => w.WriteCollectionValue>(o, v, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection v) => w.WriteSingleOrManyCollectionValue(o, v, null))); + writer.WriteProperty(options, PropParams, value.Params, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.Union>, System.Collections.Generic.ICollection>>>? v) => w.WriteUnionValue>, System.Collections.Generic.ICollection>>>(o, v, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection> v) => w.WriteCollectionValue>(o, v, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection v) => w.WriteSingleOrManyCollectionValue(o, v, null)), static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection>> v) => w.WriteCollectionValue>>(o, v, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.KeyValuePair> v) => w.WriteKeyValuePairValue>(o, v, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection v) => w.WriteSingleOrManyCollectionValue(o, v, null))))); writer.WriteProperty(options, PropProfile, value.Profile, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropProjectRouting, value.ProjectRouting, null, null); writer.WriteProperty(options, PropQuery, value.Query, null, null); diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.g.cs index 62db4c0a806..41e54409f89 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Esql/EsqlQueryRequest.g.cs @@ -172,7 +172,7 @@ internal EsqlQueryRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstr /// To avoid any attempts of hacking or code injection, extract the values in a separate list of parameters. Use question mark placeholders (?) in the query string for each of the parameters. /// /// - public System.Collections.Generic.ICollection>? Params { get; set; } + public Elastic.Clients.Elasticsearch.Union>, System.Collections.Generic.ICollection>>>? Params { get; set; } /// /// @@ -366,23 +366,12 @@ public Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequestDescriptor Locale(stri /// To avoid any attempts of hacking or code injection, extract the values in a separate list of parameters. Use question mark placeholders (?) in the query string for each of the parameters. /// /// - public Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequestDescriptor Params(System.Collections.Generic.ICollection>? value) + public Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequestDescriptor Params(Elastic.Clients.Elasticsearch.Union>, System.Collections.Generic.ICollection>>>? value) { Instance.Params = value; return this; } - /// - /// - /// To avoid any attempts of hacking or code injection, extract the values in a separate list of parameters. Use question mark placeholders (?) in the query string for each of the parameters. - /// - /// - public Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequestDescriptor Params(params System.Collections.Generic.ICollection[] values) - { - Instance.Params = [.. values]; - return this; - } - /// /// /// If provided and true the response will include an extra profile object @@ -631,23 +620,12 @@ public Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequestDescriptor /// To avoid any attempts of hacking or code injection, extract the values in a separate list of parameters. Use question mark placeholders (?) in the query string for each of the parameters. /// /// - public Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequestDescriptor Params(System.Collections.Generic.ICollection>? value) + public Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequestDescriptor Params(Elastic.Clients.Elasticsearch.Union>, System.Collections.Generic.ICollection>>>? value) { Instance.Params = value; return this; } - /// - /// - /// To avoid any attempts of hacking or code injection, extract the values in a separate list of parameters. Use question mark placeholders (?) in the query string for each of the parameters. - /// - /// - public Elastic.Clients.Elasticsearch.Esql.EsqlQueryRequestDescriptor Params(params System.Collections.Generic.ICollection[] values) - { - Instance.Params = [.. values]; - return this; - } - /// /// /// If provided and true the response will include an extra profile object diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostRequest.g.cs index a123024f107..af78835edfe 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostRequest.g.cs @@ -27,7 +27,8 @@ public sealed partial class PostRequestParameters : Elastic.Transport.RequestPar { /// /// - /// Specifies whether you acknowledge the license changes. + /// To update a license, you must accept the acknowledge messages and set this parameter to true. + /// In particular, if you are upgrading or downgrading a license, you must acknowlege the feature changes. /// /// public bool? Acknowledge { get => Q("acknowledge"); set => Q("acknowledge", value); } @@ -85,7 +86,8 @@ internal PostRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor /// /// - /// Specifies whether you acknowledge the license changes. + /// To update a license, you must accept the acknowledge messages and set this parameter to true. + /// In particular, if you are upgrading or downgrading a license, you must acknowlege the feature changes. /// /// public bool? Acknowledge { get => Q("acknowledge"); set => Q("acknowledge", value); } @@ -148,7 +150,8 @@ public PostRequestDescriptor() /// /// - /// Specifies whether you acknowledge the license changes. + /// To update a license, you must accept the acknowledge messages and set this parameter to true. + /// In particular, if you are upgrading or downgrading a license, you must acknowlege the feature changes. /// /// public Elastic.Clients.Elasticsearch.LicenseManagement.PostRequestDescriptor Acknowledge(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartBasicRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartBasicRequest.g.cs index 775c27e7129..6f71d17d753 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartBasicRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartBasicRequest.g.cs @@ -27,7 +27,7 @@ public sealed partial class PostStartBasicRequestParameters : Elastic.Transport. { /// /// - /// Whether the user has acknowledged acknowledge messages + /// To start a basic license, you must accept the acknowledge messages and set this parameter to true. /// /// public bool? Acknowledge { get => Q("acknowledge"); set => Q("acknowledge", value); } @@ -88,7 +88,7 @@ internal PostStartBasicRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// - /// Whether the user has acknowledged acknowledge messages + /// To start a basic license, you must accept the acknowledge messages and set this parameter to true. /// /// public bool? Acknowledge { get => Q("acknowledge"); set => Q("acknowledge", value); } @@ -146,7 +146,7 @@ public PostStartBasicRequestDescriptor() /// /// - /// Whether the user has acknowledged acknowledge messages + /// To start a basic license, you must accept the acknowledge messages and set this parameter to true. /// /// public Elastic.Clients.Elasticsearch.LicenseManagement.PostStartBasicRequestDescriptor Acknowledge(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartTrialRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartTrialRequest.g.cs index bc2b7fe7bc8..0363ae93057 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartTrialRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/LicenseManagement/PostStartTrialRequest.g.cs @@ -27,7 +27,7 @@ public sealed partial class PostStartTrialRequestParameters : Elastic.Transport. { /// /// - /// Whether the user has acknowledged acknowledge messages + /// To start a trial, you must accept the acknowledge messages and set this parameter to true. /// /// public bool? Acknowledge { get => Q("acknowledge"); set => Q("acknowledge", value); } @@ -85,7 +85,7 @@ internal PostStartTrialRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// - /// Whether the user has acknowledged acknowledge messages + /// To start a trial, you must accept the acknowledge messages and set this parameter to true. /// /// public bool? Acknowledge { get => Q("acknowledge"); set => Q("acknowledge", value); } @@ -140,7 +140,7 @@ public PostStartTrialRequestDescriptor() /// /// - /// Whether the user has acknowledged acknowledge messages + /// To start a trial, you must accept the acknowledge messages and set this parameter to true. /// /// public Elastic.Clients.Elasticsearch.LicenseManagement.PostStartTrialRequestDescriptor Acknowledge(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs index ac836f89d36..1abad27d57d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchTemplateRequest.g.cs @@ -36,7 +36,7 @@ public sealed partial class SearchTemplateRequestParameters : Elastic.Transport. /// /// - /// If true, network round-trips are minimized for cross-cluster search requests. + /// Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution. /// /// public bool? CcsMinimizeRoundtrips { get => Q("ccs_minimize_roundtrips"); set => Q("ccs_minimize_roundtrips", value); } @@ -174,7 +174,7 @@ internal SearchTemplateRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC /// /// - /// If true, network round-trips are minimized for cross-cluster search requests. + /// Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution. /// /// public bool? CcsMinimizeRoundtrips { get => Q("ccs_minimize_roundtrips"); set => Q("ccs_minimize_roundtrips", value); } @@ -359,7 +359,7 @@ public Elastic.Clients.Elasticsearch.SearchTemplateRequestDescriptor AllowNoIndi /// /// - /// If true, network round-trips are minimized for cross-cluster search requests. + /// Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution. /// /// public Elastic.Clients.Elasticsearch.SearchTemplateRequestDescriptor CcsMinimizeRoundtrips(bool? value = true) @@ -714,7 +714,7 @@ public Elastic.Clients.Elasticsearch.SearchTemplateRequestDescriptor /// /// - /// If true, network round-trips are minimized for cross-cluster search requests. + /// Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution. /// /// public Elastic.Clients.Elasticsearch.SearchTemplateRequestDescriptor CcsMinimizeRoundtrips(bool? value = true) diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/CacheStatsRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/CacheStatsRequest.g.cs index 3ce71074cde..f1ec168ef11 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/CacheStatsRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/SearchableSnapshots/CacheStatsRequest.g.cs @@ -25,7 +25,6 @@ namespace Elastic.Clients.Elasticsearch.SearchableSnapshots; public sealed partial class CacheStatsRequestParameters : Elastic.Transport.RequestParameters { - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// @@ -67,7 +66,6 @@ internal CacheStatsRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// public Elastic.Clients.Elasticsearch.NodeIds? NodeId { get => P("node_id"); set => PO("node_id", value); } - public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q("master_timeout"); set => Q("master_timeout", value); } } /// @@ -112,12 +110,6 @@ public Elastic.Clients.Elasticsearch.SearchableSnapshots.CacheStatsRequestDescri return this; } - public Elastic.Clients.Elasticsearch.SearchableSnapshots.CacheStatsRequestDescriptor MasterTimeout(Elastic.Clients.Elasticsearch.Duration? value) - { - Instance.MasterTimeout = value; - return this; - } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] internal static Elastic.Clients.Elasticsearch.SearchableSnapshots.CacheStatsRequest Build(System.Action? action) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRuleResponse.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRuleResponse.g.cs index a0eb07bb96e..936f6287781 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRuleResponse.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/GetSynonymRuleResponse.g.cs @@ -39,14 +39,15 @@ internal GetSynonymRuleResponse(Elastic.Clients.Elasticsearch.Serialization.Json /// /// - /// Synonym Rule identifier + /// The identifier for the synonym rule. + /// If you do not specify a synonym rule ID when you create a rule, an identifier is created automatically by Elasticsearch. /// /// public required string Id { get; set; } /// /// - /// Synonyms, in Solr format, that conform the synonym rule. + /// The synonyms that conform the synonym rule in Solr format. /// /// public required string Synonyms { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRequest.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRequest.g.cs index c4dde4fdc40..cc197d7fc8b 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRequest.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Api/Synonyms/PutSynonymRequest.g.cs @@ -40,7 +40,6 @@ public sealed partial class PutSynonymRequestParameters : Elastic.Transport.Requ /// /// /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. -/// If you need to manage more synonym rules, you can create multiple synonym sets. /// /// /// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. @@ -112,7 +111,6 @@ internal PutSynonymRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConst /// /// /// Synonyms sets are limited to a maximum of 10,000 synonym rules per set. -/// If you need to manage more synonym rules, you can create multiple synonym sets. /// /// /// When an existing synonyms set is updated, the search analyzers that use the synonyms set are reloaded automatically for all indices. diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Bulk/ResponseItem.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Bulk/ResponseItem.g.cs index 4ca86471000..9d418741842 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Bulk/ResponseItem.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Bulk/ResponseItem.g.cs @@ -79,7 +79,7 @@ internal ResponseItem(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// /// /// The result of the operation. - /// Successful values are created, deleted, and updated. + /// Possible values are created, updated, deleted, noop, and not_found. /// /// public string? Result { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggester.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggester.Converters.g.cs index acb9e1b4f20..728a1cba199 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggester.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/PhraseSuggester.Converters.g.cs @@ -39,7 +39,6 @@ public sealed partial class PhraseSuggesterConverter : System.Text.Json.Serializ private static readonly System.Text.Json.JsonEncodedText PropShardSize = System.Text.Json.JsonEncodedText.Encode("shard_size"u8); private static readonly System.Text.Json.JsonEncodedText PropSize = System.Text.Json.JsonEncodedText.Encode("size"u8); private static readonly System.Text.Json.JsonEncodedText PropSmoothing = System.Text.Json.JsonEncodedText.Encode("smoothing"u8); - private static readonly System.Text.Json.JsonEncodedText PropText = System.Text.Json.JsonEncodedText.Encode("text"u8); private static readonly System.Text.Json.JsonEncodedText PropTokenLimit = System.Text.Json.JsonEncodedText.Encode("token_limit"u8); public override Elastic.Clients.Elasticsearch.Core.Search.PhraseSuggester Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) @@ -59,7 +58,6 @@ public override Elastic.Clients.Elasticsearch.Core.Search.PhraseSuggester Read(r LocalJsonValue propShardSize = default; LocalJsonValue propSize = default; LocalJsonValue propSmoothing = default; - LocalJsonValue propText = default; LocalJsonValue propTokenLimit = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) { @@ -133,11 +131,6 @@ public override Elastic.Clients.Elasticsearch.Core.Search.PhraseSuggester Read(r continue; } - if (propText.TryReadProperty(ref reader, options, PropText, null)) - { - continue; - } - if (propTokenLimit.TryReadProperty(ref reader, options, PropTokenLimit, static int? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) { continue; @@ -169,7 +162,6 @@ public override Elastic.Clients.Elasticsearch.Core.Search.PhraseSuggester Read(r ShardSize = propShardSize.Value, Size = propSize.Value, Smoothing = propSmoothing.Value, - Text = propText.Value, TokenLimit = propTokenLimit.Value }; } @@ -191,7 +183,6 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien writer.WriteProperty(options, PropShardSize, value.ShardSize, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, int? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropSize, value.Size, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, int? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropSmoothing, value.Smoothing, null, null); - writer.WriteProperty(options, PropText, value.Text, null, null); writer.WriteProperty(options, PropTokenLimit, value.TokenLimit, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, int? v) => w.WriteNullableValue(o, v)); writer.WriteEndObject(); } 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 6efb213c378..973bd7d3edd 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 @@ -142,13 +142,6 @@ internal PhraseSuggester(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// public Elastic.Clients.Elasticsearch.Core.Search.SmoothingModel? Smoothing { get; set; } - - /// - /// - /// The text/query to provide suggestions for. - /// - /// - public string? Text { get; set; } public int? TokenLimit { get; set; } } @@ -404,17 +397,6 @@ public Elastic.Clients.Elasticsearch.Core.Search.PhraseSuggesterDescriptor - /// - /// The text/query to provide suggestions for. - /// - /// - public Elastic.Clients.Elasticsearch.Core.Search.PhraseSuggesterDescriptor Text(string? value) - { - Instance.Text = value; - return this; - } - public Elastic.Clients.Elasticsearch.Core.Search.PhraseSuggesterDescriptor TokenLimit(int? value) { Instance.TokenLimit = value; @@ -699,17 +681,6 @@ public Elastic.Clients.Elasticsearch.Core.Search.PhraseSuggesterDescriptor Smoot return this; } - /// - /// - /// The text/query to provide suggestions for. - /// - /// - public Elastic.Clients.Elasticsearch.Core.Search.PhraseSuggesterDescriptor Text(string? value) - { - Instance.Text = value; - return this; - } - public Elastic.Clients.Elasticsearch.Core.Search.PhraseSuggesterDescriptor TokenLimit(int? value) { Instance.TokenLimit = value; diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/TermSuggester.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/TermSuggester.Converters.g.cs index f7c035355f1..81dd49ea19c 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/TermSuggester.Converters.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/TermSuggester.Converters.g.cs @@ -39,7 +39,6 @@ public sealed partial class TermSuggesterConverter : System.Text.Json.Serializat private static readonly System.Text.Json.JsonEncodedText PropSort = System.Text.Json.JsonEncodedText.Encode("sort"u8); private static readonly System.Text.Json.JsonEncodedText PropStringDistance = System.Text.Json.JsonEncodedText.Encode("string_distance"u8); private static readonly System.Text.Json.JsonEncodedText PropSuggestMode = System.Text.Json.JsonEncodedText.Encode("suggest_mode"u8); - private static readonly System.Text.Json.JsonEncodedText PropText = System.Text.Json.JsonEncodedText.Encode("text"u8); public override Elastic.Clients.Elasticsearch.Core.Search.TermSuggester Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) { @@ -58,7 +57,6 @@ public override Elastic.Clients.Elasticsearch.Core.Search.TermSuggester Read(ref LocalJsonValue propSort = default; LocalJsonValue propStringDistance = default; LocalJsonValue propSuggestMode = default; - LocalJsonValue propText = default; while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) { if (propAnalyzer.TryReadProperty(ref reader, options, PropAnalyzer, null)) @@ -131,11 +129,6 @@ public override Elastic.Clients.Elasticsearch.Core.Search.TermSuggester Read(ref continue; } - if (propText.TryReadProperty(ref reader, options, PropText, null)) - { - continue; - } - if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) { reader.SafeSkip(); @@ -161,8 +154,7 @@ public override Elastic.Clients.Elasticsearch.Core.Search.TermSuggester Read(ref Size = propSize.Value, Sort = propSort.Value, StringDistance = propStringDistance.Value, - SuggestMode = propSuggestMode.Value, - Text = propText.Value + SuggestMode = propSuggestMode.Value }; } @@ -183,7 +175,6 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien writer.WriteProperty(options, PropSort, value.Sort, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.Core.Search.SuggestSort? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropStringDistance, value.StringDistance, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.Core.Search.StringDistance? v) => w.WriteNullableValue(o, v)); writer.WriteProperty(options, PropSuggestMode, value.SuggestMode, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.SuggestMode? v) => w.WriteNullableValue(o, v)); - writer.WriteProperty(options, PropText, value.Text, null, null); writer.WriteEndObject(); } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/TermSuggester.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/TermSuggester.g.cs index 9a6386bb90c..4e38d157183 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/TermSuggester.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Core/Search/TermSuggester.g.cs @@ -143,14 +143,6 @@ internal TermSuggester(Elastic.Clients.Elasticsearch.Serialization.JsonConstruct /// /// public Elastic.Clients.Elasticsearch.SuggestMode? SuggestMode { get; set; } - - /// - /// - /// The suggest text. - /// Needs to be set globally or per suggestion. - /// - /// - public string? Text { get; set; } } public readonly partial struct TermSuggesterDescriptor @@ -343,18 +335,6 @@ public Elastic.Clients.Elasticsearch.Core.Search.TermSuggesterDescriptor - /// - /// The suggest text. - /// Needs to be set globally or per suggestion. - /// - /// - public Elastic.Clients.Elasticsearch.Core.Search.TermSuggesterDescriptor Text(string? value) - { - Instance.Text = value; - return this; - } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] internal static Elastic.Clients.Elasticsearch.Core.Search.TermSuggester Build(System.Action> action) { @@ -554,18 +534,6 @@ public Elastic.Clients.Elasticsearch.Core.Search.TermSuggesterDescriptor Suggest return this; } - /// - /// - /// The suggest text. - /// Needs to be set globally or per suggestion. - /// - /// - public Elastic.Clients.Elasticsearch.Core.Search.TermSuggesterDescriptor Text(string? value) - { - Instance.Text = value; - return this; - } - [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)] internal static Elastic.Clients.Elasticsearch.Core.Search.TermSuggester Build(System.Action action) { diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/LicenseManagement/LicenseInformation.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/LicenseManagement/LicenseInformation.g.cs index 5866e150867..2e7d670fa3d 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/LicenseManagement/LicenseInformation.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/LicenseManagement/LicenseInformation.g.cs @@ -50,16 +50,87 @@ internal LicenseInformation(Elastic.Clients.Elasticsearch.Serialization.JsonCons _ = sentinel; } + /// + /// + /// The date and time the license expires in ISO 8601 format. + /// + /// public System.DateTimeOffset? ExpiryDate { get; set; } + + /// + /// + /// The date and time the license expires in milliseconds since the Unix epoch. + /// + /// public System.DateTimeOffset? ExpiryDateInMillis { get; set; } + + /// + /// + /// The date and time the license was issued in ISO 8601 format. + /// + /// public required System.DateTimeOffset IssueDate { get; set; } + + /// + /// + /// The date and time the license was issued in milliseconds since the Unix epoch. + /// + /// public required System.DateTimeOffset IssueDateInMillis { get; set; } + + /// + /// + /// The name of the customer or organization that received the license. + /// + /// public required string IssuedTo { get; set; } + + /// + /// + /// The name of the organization that issued the license. + /// + /// public required string Issuer { get; set; } + + /// + /// + /// The maximum number of nodes the license allows. + /// + /// public required long? MaxNodes { get; set; } + + /// + /// + /// The maximum number of resource units the license allows (for enterprise licenses only). + /// + /// public int? MaxResourceUnits { get; set; } + + /// + /// + /// The date and time the license was started in milliseconds since the Unix epoch. + /// + /// public required System.DateTimeOffset StartDateInMillis { get; set; } + + /// + /// + /// The status of the license. For example,active, valid, invalid, or expired. + /// + /// public required Elastic.Clients.Elasticsearch.LicenseManagement.LicenseStatus Status { get; set; } + + /// + /// + /// The type of the license. For example, trial, basic, gold, platinum, or enterprise. + /// + /// public required Elastic.Clients.Elasticsearch.LicenseManagement.LicenseType Type { get; set; } + + /// + /// + /// The unique identifier of the license. + /// + /// public required string Uid { get; set; } } \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnalysisConfigRead.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnalysisConfigRead.g.cs index b5ad1db3a1d..9c1f1a869cd 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnalysisConfigRead.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/AnalysisConfigRead.g.cs @@ -46,84 +46,64 @@ internal AnalysisConfigRead(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// - /// The size of the interval that the analysis is aggregated into, typically between 5m and 1h. + /// The size of the interval that the analysis is aggregated into, typically between 5m and 1h. This value should be either a whole number of days or equate to a + /// whole number of buckets in one day. If the anomaly detection job uses a datafeed with aggregations, this value must also be divisible by the interval of the date histogram aggregation. /// /// public required Elastic.Clients.Elasticsearch.Duration BucketSpan { get; set; } /// /// - /// If categorization_field_name is specified, you can also define the analyzer that is used to interpret the categorization field. - /// This property cannot be used at the same time as categorization_filters. - /// The categorization analyzer specifies how the categorization_field is interpreted by the categorization process. + /// If categorization_field_name is specified, you can also define the analyzer that is used to interpret the categorization field. This property cannot be used at the same time as categorization_filters. The categorization analyzer specifies how the categorization_field is interpreted by the categorization process. The categorization_analyzer field can be specified either as a string or as an object. If it is a string, it must refer to a built-in analyzer or one added by another plugin. /// /// public Elastic.Clients.Elasticsearch.MachineLearning.CategorizationAnalyzer? CategorizationAnalyzer { get; set; } /// /// - /// If this property is specified, the values of the specified field will be categorized. - /// The resulting categories must be used in a detector by setting by_field_name, over_field_name, or partition_field_name to the keyword mlcategory. + /// If this property is specified, the values of the specified field will be categorized. The resulting categories must be used in a detector by setting by_field_name, over_field_name, or partition_field_name to the keyword mlcategory. /// /// public string? CategorizationFieldName { get; set; } /// /// - /// If categorization_field_name is specified, you can also define optional filters. - /// This property expects an array of regular expressions. - /// The expressions are used to filter out matching sequences from the categorization field values. + /// If categorization_field_name is specified, you can also define optional filters. This property expects an array of regular expressions. The expressions are used to filter out matching sequences from the categorization field values. You can use this functionality to fine tune the categorization by excluding sequences from consideration when categories are defined. For example, you can exclude SQL statements that appear in your log files. This property cannot be used at the same time as categorization_analyzer. If you only want to define simple regular expression filters that are applied prior to tokenization, setting this property is the easiest method. If you also want to customize the tokenizer or post-tokenization filtering, use the categorization_analyzer property instead and include the filters as pattern_replace character filters. The effect is exactly the same. /// /// public System.Collections.Generic.IReadOnlyCollection? CategorizationFilters { get; set; } /// /// - /// An array of detector configuration objects. - /// Detector configuration objects specify which data fields a job analyzes. - /// They also specify which analytical functions are used. - /// You can specify multiple detectors for a job. + /// Detector configuration objects specify which data fields a job analyzes. They also specify which analytical functions are used. You can specify multiple detectors for a job. If the detectors array does not contain at least one detector, no analysis can occur and an error is returned. /// /// public required System.Collections.Generic.IReadOnlyCollection Detectors { get; set; } /// /// - /// A comma separated list of influencer field names. - /// Typically these can be the by, over, or partition fields that are used in the detector configuration. - /// You might also want to use a field name that is not specifically named in a detector, but is available as part of the input data. - /// When you use multiple detectors, the use of influencers is recommended as it aggregates results for each influencer entity. + /// A comma separated list of influencer field names. Typically these can be the by, over, or partition fields that are used in the detector configuration. You might also want to use a field name that is not specifically named in a detector, but is available as part of the input data. When you use multiple detectors, the use of influencers is recommended as it aggregates results for each influencer entity. /// /// public required Elastic.Clients.Elasticsearch.Fields Influencers { get; set; } /// /// - /// The size of the window in which to expect data that is out of time order. - /// Defaults to no latency. - /// If you specify a non-zero value, it must be greater than or equal to one second. + /// The size of the window in which to expect data that is out of time order. If you specify a non-zero value, it must be greater than or equal to one second. NOTE: Latency is applicable only when you send data by using the post data API. /// /// public Elastic.Clients.Elasticsearch.Duration? Latency { get; set; } /// /// - /// Advanced configuration option. - /// Affects the pruning of models that have not been updated for the given time duration. - /// The value must be set to a multiple of the bucket_span. - /// If set too low, important information may be removed from the model. - /// Typically, set to 30d or longer. - /// If not set, model pruning only occurs if the model memory status reaches the soft limit or the hard limit. - /// For jobs created in 8.1 and later, the default value is the greater of 30d or 20 times bucket_span. + /// Advanced configuration option. Affects the pruning of models that have not been updated for the given time duration. The value must be set to a multiple of the bucket_span. If set too low, important information may be removed from the model. For jobs created in 8.1 and later, the default value is the greater of 30d or 20 times bucket_span. /// /// public Elastic.Clients.Elasticsearch.Duration? ModelPruneWindow { get; set; } /// /// - /// This functionality is reserved for internal use. - /// It is not supported for use in customer environments and is not subject to the support SLA of official GA features. - /// If set to true, the analysis will automatically find correlations between metrics for a given by field value and report anomalies when those correlations cease to hold. + /// This functionality is reserved for internal use. It is not supported for use in customer environments and is not subject to the support SLA of official GA features. If set to true, the analysis will automatically find correlations between metrics for a given by field value and report anomalies when those correlations cease to hold. For example, suppose CPU and memory usage on host A is usually highly correlated with the same metrics on host B. Perhaps this correlation occurs because they are running a load-balanced application. If you enable this property, anomalies will be reported when, for example, CPU usage on host A is high and the value of CPU usage on host B is low. That is to say, you’ll see an anomaly when the CPU of host A is unusual given the CPU of host B. To use the multivariate_by_fields property, you must also specify by_field_name in your detector. /// /// public bool? MultivariateByFields { get; set; } @@ -137,9 +117,7 @@ internal AnalysisConfigRead(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// - /// If this property is specified, the data that is fed to the job is expected to be pre-summarized. - /// This property value is the name of the field that contains the count of raw data points that have been summarized. - /// The same summary_count_field_name applies to all detectors in the job. + /// If this property is specified, the data that is fed to the job is expected to be pre-summarized. This property value is the name of the field that contains the count of raw data points that have been summarized. The same summary_count_field_name applies to all detectors in the job. NOTE: The summary_count_field_name property cannot be used with the metric function. /// /// public string? SummaryCountFieldName { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DetectorRead.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DetectorRead.g.cs index 913bc4acab7..04a771c3f5e 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DetectorRead.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/MachineLearning/DetectorRead.g.cs @@ -44,18 +44,14 @@ internal DetectorRead(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// /// - /// The field used to split the data. - /// In particular, this property is used for analyzing the splits with respect to their own history. - /// It is used for finding unusual values in the context of the split. + /// The field used to split the data. In particular, this property is used for analyzing the splits with respect to their own history. It is used for finding unusual values in the context of the split. /// /// public string? ByFieldName { get; set; } /// /// - /// An array of custom rule objects, which enable you to customize the way detectors operate. - /// For example, a rule may dictate to the detector conditions under which results should be skipped. - /// Kibana refers to custom rules as job rules. + /// Custom rules enable you to customize the way detectors operate. For example, a rule may dictate conditions under which results should be skipped. Kibana refers to custom rules as job rules. /// /// public System.Collections.Generic.IReadOnlyCollection? CustomRules { get; set; } @@ -69,51 +65,42 @@ internal DetectorRead(Elastic.Clients.Elasticsearch.Serialization.JsonConstructo /// /// - /// A unique identifier for the detector. - /// This identifier is based on the order of the detectors in the analysis_config, starting at zero. + /// A unique identifier for the detector. This identifier is based on the order of the detectors in the analysis_config, starting at zero. If you specify a value for this property, it is ignored. /// /// public int? DetectorIndex { get; set; } /// /// - /// Contains one of the following values: all, none, by, or over. - /// If set, frequent entities are excluded from influencing the anomaly results. - /// Entities can be considered frequent over time or frequent in a population. - /// If you are working with both over and by fields, then you can set exclude_frequent to all for both fields, or to by or over for those specific fields. + /// If set, frequent entities are excluded from influencing the anomaly results. Entities can be considered frequent over time or frequent in a population. If you are working with both over and by fields, you can set exclude_frequent to all for both fields, or to by or over for those specific fields. /// /// public Elastic.Clients.Elasticsearch.MachineLearning.ExcludeFrequent? ExcludeFrequent { get; set; } /// /// - /// The field that the detector uses in the function. - /// If you use an event rate function such as count or rare, do not specify this field. + /// The field that the detector uses in the function. If you use an event rate function such as count or rare, do not specify this field. The field_name cannot contain double quotes or backslashes. /// /// public string? FieldName { get; set; } /// /// - /// The analysis function that is used. - /// For example, count, rare, mean, min, max, and sum. + /// The analysis function that is used. For example, count, rare, mean, min, max, or sum. /// /// public required string Function { get; set; } /// /// - /// The field used to split the data. - /// In particular, this property is used for analyzing the splits with respect to the history of all splits. - /// It is used for finding unusual values in the population of all splits. + /// The field used to split the data. In particular, this property is used for analyzing the splits with respect to the history of all splits. It is used for finding unusual values in the population of all splits. /// /// public string? OverFieldName { get; set; } /// /// - /// The field used to segment the analysis. - /// When you use this property, you have completely independent baselines for each value of this field. + /// The field used to segment the analysis. When you use this property, you have completely independent baselines for each value of this field. /// /// public string? PartitionFieldName { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivilegesBase.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivilegesBase.Converters.g.cs new file mode 100644 index 00000000000..45303d3e880 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivilegesBase.Converters.g.cs @@ -0,0 +1,99 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security.Json; + +public sealed partial class IndicesPrivilegesBaseConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropAllowRestrictedIndices = System.Text.Json.JsonEncodedText.Encode("allow_restricted_indices"u8); + private static readonly System.Text.Json.JsonEncodedText PropFieldSecurity = System.Text.Json.JsonEncodedText.Encode("field_security"u8); + private static readonly System.Text.Json.JsonEncodedText PropNames = System.Text.Json.JsonEncodedText.Encode("names"u8); + private static readonly System.Text.Json.JsonEncodedText PropPrivileges = System.Text.Json.JsonEncodedText.Encode("privileges"u8); + private static readonly System.Text.Json.JsonEncodedText PropQuery = System.Text.Json.JsonEncodedText.Encode("query"u8); + + public override Elastic.Clients.Elasticsearch.Security.IndicesPrivilegesBase Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propAllowRestrictedIndices = default; + LocalJsonValue propFieldSecurity = default; + LocalJsonValue> propNames = default; + LocalJsonValue> propPrivileges = default; + LocalJsonValue propQuery = default; + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (propAllowRestrictedIndices.TryReadProperty(ref reader, options, PropAllowRestrictedIndices, static bool? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + + if (propFieldSecurity.TryReadProperty(ref reader, options, PropFieldSecurity, null)) + { + continue; + } + + if (propNames.TryReadProperty(ref reader, options, PropNames, static System.Collections.Generic.ICollection (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadSingleOrManyCollectionValue(o, null)!)) + { + continue; + } + + if (propPrivileges.TryReadProperty(ref reader, options, PropPrivileges, static System.Collections.Generic.ICollection (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadCollectionValue(o, null)!)) + { + continue; + } + + if (propQuery.TryReadProperty(ref reader, options, PropQuery, null)) + { + continue; + } + + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) + { + reader.SafeSkip(); + continue; + } + + throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'."); + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.Security.IndicesPrivilegesBase(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + AllowRestrictedIndices = propAllowRestrictedIndices.Value, + FieldSecurity = propFieldSecurity.Value, + Names = propNames.Value, + Privileges = propPrivileges.Value, + Query = propQuery.Value + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Security.IndicesPrivilegesBase value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteProperty(options, PropAllowRestrictedIndices, value.AllowRestrictedIndices, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, bool? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropFieldSecurity, value.FieldSecurity, null, null); + writer.WriteProperty(options, PropNames, value.Names, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection v) => w.WriteSingleOrManyCollectionValue(o, v, null)); + writer.WriteProperty(options, PropPrivileges, value.Privileges, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection v) => w.WriteCollectionValue(o, v, null)); + writer.WriteProperty(options, PropQuery, value.Query, null, null); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivilegesBase.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivilegesBase.g.cs new file mode 100644 index 00000000000..360549af911 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/IndicesPrivilegesBase.g.cs @@ -0,0 +1,80 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.IndicesPrivilegesBaseConverter))] +public sealed partial class IndicesPrivilegesBase +{ + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public IndicesPrivilegesBase(System.Collections.Generic.ICollection names, System.Collections.Generic.ICollection privileges) + { + Names = names; + Privileges = privileges; + } + + public IndicesPrivilegesBase() + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal IndicesPrivilegesBase(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + /// + /// + /// Set to true if using wildcard or regular expressions for patterns that cover restricted indices. Implicitly, restricted indices have limited privileges that can cause pattern tests to fail. If restricted indices are explicitly included in the names list, Elasticsearch checks privileges against these indices regardless of the value set for allow_restricted_indices. + /// + /// + public bool? AllowRestrictedIndices { get; set; } + + /// + /// + /// The document fields that the owners of the role have read access to. + /// + /// + public Elastic.Clients.Elasticsearch.Security.FieldSecurity? FieldSecurity { get; set; } + + /// + /// + /// A list of indices (or index name patterns) to which the permissions in this entry apply. + /// + /// + public required System.Collections.Generic.ICollection Names { get; set; } + + /// + /// + /// The index level privileges that owners of the role have on the specified indices. + /// + /// + public required System.Collections.Generic.ICollection Privileges { get; set; } + + /// + /// + /// A search query that defines the documents the owners of the role have access to. A document within the specified indices must match this query for it to be accessible by the owners of the role. + /// + /// + public object? Query { get; set; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptorRead.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptorRead.g.cs index dbf9445306d..b31275ff8a0 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptorRead.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleDescriptorRead.g.cs @@ -59,7 +59,7 @@ internal RoleDescriptorRead(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// - /// An optional description of the role descriptor. + /// Optional description of the role descriptor /// /// public string? Description { get; set; } @@ -102,7 +102,7 @@ internal RoleDescriptorRead(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// - /// A restriction for when the role descriptor is allowed to be effective. + /// Restriction for when the role descriptor is allowed to be effective. /// /// public Elastic.Clients.Elasticsearch.Security.Restriction? Restriction { get; set; } @@ -110,6 +110,8 @@ internal RoleDescriptorRead(Elastic.Clients.Elasticsearch.Serialization.JsonCons /// /// /// A list of users that the API keys can impersonate. + /// NOTE: In Elastic Cloud Serverless, the run-as feature is disabled. + /// For API compatibility, you can still specify an empty run_as field, but a non-empty list will be rejected. /// /// public System.Collections.Generic.IReadOnlyCollection? RunAs { get; set; } diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleTemplateQuery.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleTemplateQuery.Converters.g.cs new file mode 100644 index 00000000000..a84b070cd27 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleTemplateQuery.Converters.g.cs @@ -0,0 +1,63 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security.Json; + +public sealed partial class RoleTemplateQueryConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropTemplate = System.Text.Json.JsonEncodedText.Encode("template"u8); + + public override Elastic.Clients.Elasticsearch.Security.RoleTemplateQuery Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propTemplate = default; + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (propTemplate.TryReadProperty(ref reader, options, PropTemplate, null)) + { + continue; + } + + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) + { + reader.SafeSkip(); + continue; + } + + throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'."); + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.Security.RoleTemplateQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + Template = propTemplate.Value + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Security.RoleTemplateQuery value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteProperty(options, PropTemplate, value.Template, null, null); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleTemplateQuery.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleTemplateQuery.g.cs new file mode 100644 index 00000000000..e75e2e17ada --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleTemplateQuery.g.cs @@ -0,0 +1,48 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.RoleTemplateQueryConverter))] +public sealed partial class RoleTemplateQuery +{ + public RoleTemplateQuery() + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal RoleTemplateQuery(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + /// + /// + /// When you create a role, you can specify a query that defines the document level security permissions. You can optionally + /// use Mustache templates in the role query to insert the username of the current authenticated user into the role. + /// Like other places in Elasticsearch that support templating or scripting, you can specify inline, stored, or file-based + /// templates and define custom parameters. You access the details for the current authenticated user through the _user parameter. + /// + /// + public Elastic.Clients.Elasticsearch.Security.RoleTemplateScript? Template { get; set; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleTemplateScript.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleTemplateScript.Converters.g.cs new file mode 100644 index 00000000000..055744c4ff4 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleTemplateScript.Converters.g.cs @@ -0,0 +1,106 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security.Json; + +public sealed partial class RoleTemplateScriptConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropId = System.Text.Json.JsonEncodedText.Encode("id"u8); + private static readonly System.Text.Json.JsonEncodedText PropLang = System.Text.Json.JsonEncodedText.Encode("lang"u8); + private static readonly System.Text.Json.JsonEncodedText PropOptions = System.Text.Json.JsonEncodedText.Encode("options"u8); + private static readonly System.Text.Json.JsonEncodedText PropParams = System.Text.Json.JsonEncodedText.Encode("params"u8); + private static readonly System.Text.Json.JsonEncodedText PropSource = System.Text.Json.JsonEncodedText.Encode("source"u8); + + public override Elastic.Clients.Elasticsearch.Security.RoleTemplateScript Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + var readerSnapshot = reader; + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propId = default; + LocalJsonValue propLang = default; + LocalJsonValue?> propOptions = default; + LocalJsonValue?> propParams = default; + LocalJsonValue?> propSource = default; + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (propId.TryReadProperty(ref reader, options, PropId, null)) + { + continue; + } + + if (propLang.TryReadProperty(ref reader, options, PropLang, static Elastic.Clients.Elasticsearch.ScriptLanguage? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue(o))) + { + continue; + } + + if (propOptions.TryReadProperty(ref reader, options, PropOptions, static System.Collections.Generic.IDictionary? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadDictionaryValue(o, null, null))) + { + continue; + } + + if (propParams.TryReadProperty(ref reader, options, PropParams, static System.Collections.Generic.IDictionary? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadDictionaryValue(o, null, static object (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadValueEx(o, typeof(Elastic.Clients.Elasticsearch.Serialization.SourceMarker))!))) + { + continue; + } + + if (propSource.TryReadProperty(ref reader, options, PropSource, static Elastic.Clients.Elasticsearch.Union? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadUnionValue(o, static (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => JsonUnionSelector.ByTokenType(ref r, o, Elastic.Clients.Elasticsearch.Serialization.JsonTokenTypes.String, Elastic.Clients.Elasticsearch.Serialization.JsonTokenTypes.StartObject), null, null))) + { + continue; + } + + try + { + reader = readerSnapshot; + var result = reader.ReadValue?>(options, static Elastic.Clients.Elasticsearch.Union? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadUnionValue(o, static (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => JsonUnionSelector.ByTokenType(ref r, o, Elastic.Clients.Elasticsearch.Serialization.JsonTokenTypes.String, Elastic.Clients.Elasticsearch.Serialization.JsonTokenTypes.StartObject), null, null)); + return new Elastic.Clients.Elasticsearch.Security.RoleTemplateScript(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + Source = result + }; + } + catch (System.Text.Json.JsonException) + { + throw; + } + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.Security.RoleTemplateScript(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + Id = propId.Value, + Lang = propLang.Value, + Options = propOptions.Value, + Params = propParams.Value, + Source = propSource.Value + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Security.RoleTemplateScript value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteProperty(options, PropId, value.Id, null, null); + writer.WriteProperty(options, PropLang, value.Lang, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.ScriptLanguage? v) => w.WriteNullableValue(o, v)); + writer.WriteProperty(options, PropOptions, value.Options, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IDictionary? v) => w.WriteDictionaryValue(o, v, null, null)); + writer.WriteProperty(options, PropParams, value.Params, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IDictionary? v) => w.WriteDictionaryValue(o, v, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, object v) => w.WriteValueEx(o, v, typeof(Elastic.Clients.Elasticsearch.Serialization.SourceMarker)))); + writer.WriteProperty(options, PropSource, value.Source, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.Union? v) => w.WriteUnionValue(o, v, null, null)); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleTemplateScript.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleTemplateScript.g.cs new file mode 100644 index 00000000000..1b983dcda9c --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/RoleTemplateScript.g.cs @@ -0,0 +1,62 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.RoleTemplateScriptConverter))] +public sealed partial class RoleTemplateScript +{ + public RoleTemplateScript() + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal RoleTemplateScript(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + /// + /// + /// The id for a stored script. + /// + /// + public Elastic.Clients.Elasticsearch.Id? Id { get; set; } + + /// + /// + /// Specifies the language the script is written in. + /// + /// + public Elastic.Clients.Elasticsearch.ScriptLanguage? Lang { get; set; } + public System.Collections.Generic.IDictionary? Options { get; set; } + + /// + /// + /// Specifies any named parameters that are passed into the script as variables. + /// Use parameters instead of hard-coded values to decrease compile time. + /// + /// + public System.Collections.Generic.IDictionary? Params { get; set; } + public Elastic.Clients.Elasticsearch.Union? Source { get; set; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserIndicesPrivilegesBase.Converters.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserIndicesPrivilegesBase.Converters.g.cs new file mode 100644 index 00000000000..4335ca7407f --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserIndicesPrivilegesBase.Converters.g.cs @@ -0,0 +1,99 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security.Json; + +public sealed partial class UserIndicesPrivilegesBaseConverter : System.Text.Json.Serialization.JsonConverter +{ + private static readonly System.Text.Json.JsonEncodedText PropAllowRestrictedIndices = System.Text.Json.JsonEncodedText.Encode("allow_restricted_indices"u8); + private static readonly System.Text.Json.JsonEncodedText PropFieldSecurity = System.Text.Json.JsonEncodedText.Encode("field_security"u8); + private static readonly System.Text.Json.JsonEncodedText PropNames = System.Text.Json.JsonEncodedText.Encode("names"u8); + private static readonly System.Text.Json.JsonEncodedText PropPrivileges = System.Text.Json.JsonEncodedText.Encode("privileges"u8); + private static readonly System.Text.Json.JsonEncodedText PropQuery = System.Text.Json.JsonEncodedText.Encode("query"u8); + + public override Elastic.Clients.Elasticsearch.Security.UserIndicesPrivilegesBase Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options) + { + reader.ValidateToken(System.Text.Json.JsonTokenType.StartObject); + LocalJsonValue propAllowRestrictedIndices = default; + LocalJsonValue?> propFieldSecurity = default; + LocalJsonValue> propNames = default; + LocalJsonValue> propPrivileges = default; + LocalJsonValue?> propQuery = default; + while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName) + { + if (propAllowRestrictedIndices.TryReadProperty(ref reader, options, PropAllowRestrictedIndices, null)) + { + continue; + } + + if (propFieldSecurity.TryReadProperty(ref reader, options, PropFieldSecurity, static System.Collections.Generic.IReadOnlyCollection? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadCollectionValue(o, null))) + { + continue; + } + + if (propNames.TryReadProperty(ref reader, options, PropNames, static System.Collections.Generic.ICollection (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadSingleOrManyCollectionValue(o, null)!)) + { + continue; + } + + if (propPrivileges.TryReadProperty(ref reader, options, PropPrivileges, static System.Collections.Generic.IReadOnlyCollection (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadCollectionValue(o, null)!)) + { + continue; + } + + if (propQuery.TryReadProperty(ref reader, options, PropQuery, static System.Collections.Generic.IReadOnlyCollection? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadCollectionValue(o, null))) + { + continue; + } + + if (options.UnmappedMemberHandling is System.Text.Json.Serialization.JsonUnmappedMemberHandling.Skip) + { + reader.SafeSkip(); + continue; + } + + throw new System.Text.Json.JsonException($"Unknown JSON property '{reader.GetString()}' for type '{typeToConvert.Name}'."); + } + + reader.ValidateToken(System.Text.Json.JsonTokenType.EndObject); + return new Elastic.Clients.Elasticsearch.Security.UserIndicesPrivilegesBase(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel.Instance) + { + AllowRestrictedIndices = propAllowRestrictedIndices.Value, + FieldSecurity = propFieldSecurity.Value, + Names = propNames.Value, + Privileges = propPrivileges.Value, + Query = propQuery.Value + }; + } + + public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clients.Elasticsearch.Security.UserIndicesPrivilegesBase value, System.Text.Json.JsonSerializerOptions options) + { + writer.WriteStartObject(); + writer.WriteProperty(options, PropAllowRestrictedIndices, value.AllowRestrictedIndices, null, null); + writer.WriteProperty(options, PropFieldSecurity, value.FieldSecurity, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyCollection? v) => w.WriteCollectionValue(o, v, null)); + writer.WriteProperty(options, PropNames, value.Names, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection v) => w.WriteSingleOrManyCollectionValue(o, v, null)); + writer.WriteProperty(options, PropPrivileges, value.Privileges, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyCollection v) => w.WriteCollectionValue(o, v, null)); + writer.WriteProperty(options, PropQuery, value.Query, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyCollection? v) => w.WriteCollectionValue(o, v, null)); + writer.WriteEndObject(); + } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserIndicesPrivilegesBase.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserIndicesPrivilegesBase.g.cs new file mode 100644 index 00000000000..81fefd51250 --- /dev/null +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Security/UserIndicesPrivilegesBase.g.cs @@ -0,0 +1,81 @@ +// Licensed to Elasticsearch B.V under one or more agreements. +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. +// See the LICENSE file in the project root for more information. +// +// ███╗ ██╗ ██████╗ ████████╗██╗ ██████╗███████╗ +// ████╗ ██║██╔═══██╗╚══██╔══╝██║██╔════╝██╔════╝ +// ██╔██╗ ██║██║ ██║ ██║ ██║██║ █████╗ +// ██║╚██╗██║██║ ██║ ██║ ██║██║ ██╔══╝ +// ██║ ╚████║╚██████╔╝ ██║ ██║╚██████╗███████╗ +// ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝ +// ------------------------------------------------ +// +// This file is automatically generated. +// Please do not edit these files manually. +// +// ------------------------------------------------ + +#nullable restore + +using System; +using System.Linq; +using Elastic.Clients.Elasticsearch.Serialization; + +namespace Elastic.Clients.Elasticsearch.Security; + +[System.Text.Json.Serialization.JsonConverter(typeof(Elastic.Clients.Elasticsearch.Security.Json.UserIndicesPrivilegesBaseConverter))] +public sealed partial class UserIndicesPrivilegesBase +{ + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + public UserIndicesPrivilegesBase(bool allowRestrictedIndices, System.Collections.Generic.ICollection names, System.Collections.Generic.IReadOnlyCollection privileges) + { + AllowRestrictedIndices = allowRestrictedIndices; + Names = names; + Privileges = privileges; + } + + public UserIndicesPrivilegesBase() + { + } + + [System.Diagnostics.CodeAnalysis.SetsRequiredMembers] + internal UserIndicesPrivilegesBase(Elastic.Clients.Elasticsearch.Serialization.JsonConstructorSentinel sentinel) + { + _ = sentinel; + } + + /// + /// + /// Set to true if using wildcard or regular expressions for patterns that cover restricted indices. Implicitly, restricted indices have limited privileges that can cause pattern tests to fail. If restricted indices are explicitly included in the names list, Elasticsearch checks privileges against these indices regardless of the value set for allow_restricted_indices. + /// + /// + public required bool AllowRestrictedIndices { get; set; } + + /// + /// + /// The document fields that the owners of the role have read access to. + /// + /// + public System.Collections.Generic.IReadOnlyCollection? FieldSecurity { get; set; } + + /// + /// + /// A list of indices (or index name patterns) to which the permissions in this entry apply. + /// + /// + public required System.Collections.Generic.ICollection Names { get; set; } + + /// + /// + /// The index level privileges that owners of the role have on the specified indices. + /// + /// + public required System.Collections.Generic.IReadOnlyCollection Privileges { get; set; } + + /// + /// + /// Search queries that define the documents the user has access to. A document within the specified indices must match these queries for it to be accessible by the owners of the role. + /// + /// + public System.Collections.Generic.IReadOnlyCollection? Query { get; set; } +} \ No newline at end of file diff --git a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Synonyms/SynonymRuleRead.g.cs b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Synonyms/SynonymRuleRead.g.cs index f2ed1df768d..74932441a15 100644 --- a/src/Elastic.Clients.Elasticsearch/_Generated/Types/Synonyms/SynonymRuleRead.g.cs +++ b/src/Elastic.Clients.Elasticsearch/_Generated/Types/Synonyms/SynonymRuleRead.g.cs @@ -45,14 +45,15 @@ internal SynonymRuleRead(Elastic.Clients.Elasticsearch.Serialization.JsonConstru /// /// - /// Synonym Rule identifier + /// The identifier for the synonym rule. + /// If you do not specify a synonym rule ID when you create a rule, an identifier is created automatically by Elasticsearch. /// /// public required string Id { get; set; } /// /// - /// Synonyms, in Solr format, that conform the synonym rule. + /// The synonyms that conform the synonym rule in Solr format. /// /// public required string Synonyms { get; set; }