Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@ public sealed partial class GetClusterSettingsRequestParameters : Elastic.Transp

/// <summary>
/// <para>
/// If <c>true</c>, also returns default values for all other cluster settings, reflecting the values
/// in the <c>elasticsearch.yml</c> file of one of the nodes in the cluster. If the nodes in your
/// cluster do not all have the same values in their <c>elasticsearch.yml</c> config files then the
/// values returned by this API may vary from invocation to invocation and may not reflect the
/// values that Elasticsearch uses in all situations. Use the <c>GET _nodes/settings</c> API to
/// fetch the settings for each individual node in your cluster.
/// If <c>true</c>, also returns the values of all other cluster settings set in the
/// <c>elasticsearch.yml</c> file on one of the nodes in your cluster, together with the default
/// values of all other cluster settings on that node. The default value of each setting may
/// depend on the values of other settings on that node. If the nodes in your cluster do not all
/// have the same configuration then the values returned by this API may vary from invocation to
/// invocation and may not reflect the values that Elasticsearch uses in all situations. Use the
/// <c>GET _nodes/settings</c> API to fetch the settings for each individual node in your cluster.
/// </para>
/// </summary>
public bool? IncludeDefaults { get => Q<bool?>("include_defaults"); set => Q("include_defaults", value); }
Expand Down Expand Up @@ -99,12 +100,13 @@ internal GetClusterSettingsRequest(Elastic.Clients.Elasticsearch.Serialization.J

/// <summary>
/// <para>
/// If <c>true</c>, also returns default values for all other cluster settings, reflecting the values
/// in the <c>elasticsearch.yml</c> file of one of the nodes in the cluster. If the nodes in your
/// cluster do not all have the same values in their <c>elasticsearch.yml</c> config files then the
/// values returned by this API may vary from invocation to invocation and may not reflect the
/// values that Elasticsearch uses in all situations. Use the <c>GET _nodes/settings</c> API to
/// fetch the settings for each individual node in your cluster.
/// If <c>true</c>, also returns the values of all other cluster settings set in the
/// <c>elasticsearch.yml</c> file on one of the nodes in your cluster, together with the default
/// values of all other cluster settings on that node. The default value of each setting may
/// depend on the values of other settings on that node. If the nodes in your cluster do not all
/// have the same configuration then the values returned by this API may vary from invocation to
/// invocation and may not reflect the values that Elasticsearch uses in all situations. Use the
/// <c>GET _nodes/settings</c> API to fetch the settings for each individual node in your cluster.
/// </para>
/// </summary>
public bool? IncludeDefaults { get => Q<bool?>("include_defaults"); set => Q("include_defaults", value); }
Expand Down Expand Up @@ -165,12 +167,13 @@ public Elastic.Clients.Elasticsearch.Cluster.GetClusterSettingsRequestDescriptor

/// <summary>
/// <para>
/// If <c>true</c>, also returns default values for all other cluster settings, reflecting the values
/// in the <c>elasticsearch.yml</c> file of one of the nodes in the cluster. If the nodes in your
/// cluster do not all have the same values in their <c>elasticsearch.yml</c> config files then the
/// values returned by this API may vary from invocation to invocation and may not reflect the
/// values that Elasticsearch uses in all situations. Use the <c>GET _nodes/settings</c> API to
/// fetch the settings for each individual node in your cluster.
/// If <c>true</c>, also returns the values of all other cluster settings set in the
/// <c>elasticsearch.yml</c> file on one of the nodes in your cluster, together with the default
/// values of all other cluster settings on that node. The default value of each setting may
/// depend on the values of other settings on that node. If the nodes in your cluster do not all
/// have the same configuration then the values returned by this API may vary from invocation to
/// invocation and may not reflect the values that Elasticsearch uses in all situations. Use the
/// <c>GET _nodes/settings</c> API to fetch the settings for each individual node in your cluster.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Cluster.GetClusterSettingsRequestDescriptor IncludeDefaults(bool? value = true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public override Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequest Read(ref Sy
LocalJsonValue<Elastic.Clients.Elasticsearch.Duration?> propKeepAlive = default;
LocalJsonValue<bool?> propKeepOnCompletion = default;
LocalJsonValue<string?> propLocale = default;
LocalJsonValue<System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>?> propParams = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Union<System.Collections.Generic.ICollection<System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string, System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>>>?> propParams = default;
LocalJsonValue<bool?> propProfile = default;
LocalJsonValue<string?> propProjectRouting = default;
LocalJsonValue<string> propQuery = default;
Expand Down Expand Up @@ -92,7 +92,7 @@ public override Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequest Read(ref Sy
continue;
}

if (propParams.TryReadProperty(ref reader, options, PropParams, static System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadCollectionValue<Elastic.Clients.Elasticsearch.FieldValue>(o, null)))
if (propParams.TryReadProperty(ref reader, options, PropParams, static Elastic.Clients.Elasticsearch.Union<System.Collections.Generic.ICollection<System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string, System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>>>? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadUnionValue<System.Collections.Generic.ICollection<System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string, System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>>>(o, static (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => JsonUnionSelector.T1(ref r, o), static System.Collections.Generic.ICollection<System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>> (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadCollectionValue<System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>(o, static System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue> (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadSingleOrManyCollectionValue<Elastic.Clients.Elasticsearch.FieldValue>(o, null)!)!, static System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string, System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>> (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadCollectionValue<System.Collections.Generic.KeyValuePair<string, System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>>(o, static System.Collections.Generic.KeyValuePair<string, System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>> (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadKeyValuePairValue<string, System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>(o, null, static System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue> (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadSingleOrManyCollectionValue<Elastic.Clients.Elasticsearch.FieldValue>(o, null)!))!)))
{
continue;
}
Expand Down Expand Up @@ -160,7 +160,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<bool>(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<Elastic.Clients.Elasticsearch.FieldValue>? v) => w.WriteCollectionValue<Elastic.Clients.Elasticsearch.FieldValue>(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<System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string, System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>>>? v) => w.WriteUnionValue<System.Collections.Generic.ICollection<System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string, System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>>>(o, v, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection<System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>> v) => w.WriteCollectionValue<System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>(o, v, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue> v) => w.WriteSingleOrManyCollectionValue<Elastic.Clients.Elasticsearch.FieldValue>(o, v, null)), static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string, System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>> v) => w.WriteCollectionValue<System.Collections.Generic.KeyValuePair<string, System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>>(o, v, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.KeyValuePair<string, System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>> v) => w.WriteKeyValuePairValue<string, System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>(o, v, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue> v) => w.WriteSingleOrManyCollectionValue<Elastic.Clients.Elasticsearch.FieldValue>(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<bool>(o, v));
writer.WriteProperty(options, PropProjectRouting, value.ProjectRouting, null, null);
writer.WriteProperty(options, PropQuery, value.Query, null, null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,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.
/// </para>
/// </summary>
public System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>? Params { get; set; }
public Elastic.Clients.Elasticsearch.Union<System.Collections.Generic.ICollection<System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string, System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>>>? Params { get; set; }

/// <summary>
/// <para>
Expand Down Expand Up @@ -459,23 +459,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.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor Params(System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>? value)
public Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor Params(Elastic.Clients.Elasticsearch.Union<System.Collections.Generic.ICollection<System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string, System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>>>? value)
{
Instance.Params = value;
return this;
}

/// <summary>
/// <para>
/// 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.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor Params(params Elastic.Clients.Elasticsearch.FieldValue[] values)
{
Instance.Params = [.. values];
return this;
}

/// <summary>
/// <para>
/// If provided and <c>true</c> the response will include an extra <c>profile</c> object
Expand Down Expand Up @@ -788,23 +777,12 @@ public Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor<TDocument>
/// 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.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor<TDocument> Params(System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>? value)
public Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor<TDocument> Params(Elastic.Clients.Elasticsearch.Union<System.Collections.Generic.ICollection<System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>, System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string, System.Collections.Generic.ICollection<Elastic.Clients.Elasticsearch.FieldValue>>>>? value)
{
Instance.Params = value;
return this;
}

/// <summary>
/// <para>
/// 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.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Esql.AsyncQueryRequestDescriptor<TDocument> Params(params Elastic.Clients.Elasticsearch.FieldValue[] values)
{
Instance.Params = [.. values];
return this;
}

/// <summary>
/// <para>
/// If provided and <c>true</c> the response will include an extra <c>profile</c> object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ public sealed partial class PostRequestParameters : Elastic.Transport.RequestPar
{
/// <summary>
/// <para>
/// Specifies whether you acknowledge the license changes.
/// To update a license, you must accept the acknowledge messages and set this parameter to <c>true</c>.
/// In particular, if you are upgrading or downgrading a license, you must acknowlege the feature changes.
/// </para>
/// </summary>
public bool? Acknowledge { get => Q<bool?>("acknowledge"); set => Q("acknowledge", value); }
Expand Down Expand Up @@ -85,7 +86,8 @@ internal PostRequest(Elastic.Clients.Elasticsearch.Serialization.JsonConstructor

/// <summary>
/// <para>
/// Specifies whether you acknowledge the license changes.
/// To update a license, you must accept the acknowledge messages and set this parameter to <c>true</c>.
/// In particular, if you are upgrading or downgrading a license, you must acknowlege the feature changes.
/// </para>
/// </summary>
public bool? Acknowledge { get => Q<bool?>("acknowledge"); set => Q("acknowledge", value); }
Expand Down Expand Up @@ -148,7 +150,8 @@ public PostRequestDescriptor()

/// <summary>
/// <para>
/// Specifies whether you acknowledge the license changes.
/// To update a license, you must accept the acknowledge messages and set this parameter to <c>true</c>.
/// In particular, if you are upgrading or downgrading a license, you must acknowlege the feature changes.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.LicenseManagement.PostRequestDescriptor Acknowledge(bool? value = true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public sealed partial class PostStartBasicRequestParameters : Elastic.Transport.
{
/// <summary>
/// <para>
/// Whether the user has acknowledged acknowledge messages
/// To start a basic license, you must accept the acknowledge messages and set this parameter to <c>true</c>.
/// </para>
/// </summary>
public bool? Acknowledge { get => Q<bool?>("acknowledge"); set => Q("acknowledge", value); }
Expand Down Expand Up @@ -88,7 +88,7 @@ internal PostStartBasicRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC

/// <summary>
/// <para>
/// Whether the user has acknowledged acknowledge messages
/// To start a basic license, you must accept the acknowledge messages and set this parameter to <c>true</c>.
/// </para>
/// </summary>
public bool? Acknowledge { get => Q<bool?>("acknowledge"); set => Q("acknowledge", value); }
Expand Down Expand Up @@ -146,7 +146,7 @@ public PostStartBasicRequestDescriptor()

/// <summary>
/// <para>
/// Whether the user has acknowledged acknowledge messages
/// To start a basic license, you must accept the acknowledge messages and set this parameter to <c>true</c>.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.LicenseManagement.PostStartBasicRequestDescriptor Acknowledge(bool? value = true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public sealed partial class PostStartTrialRequestParameters : Elastic.Transport.
{
/// <summary>
/// <para>
/// Whether the user has acknowledged acknowledge messages
/// To start a trial, you must accept the acknowledge messages and set this parameter to <c>true</c>.
/// </para>
/// </summary>
public bool? Acknowledge { get => Q<bool?>("acknowledge"); set => Q("acknowledge", value); }
Expand Down Expand Up @@ -85,7 +85,7 @@ internal PostStartTrialRequest(Elastic.Clients.Elasticsearch.Serialization.JsonC

/// <summary>
/// <para>
/// Whether the user has acknowledged acknowledge messages
/// To start a trial, you must accept the acknowledge messages and set this parameter to <c>true</c>.
/// </para>
/// </summary>
public bool? Acknowledge { get => Q<bool?>("acknowledge"); set => Q("acknowledge", value); }
Expand Down Expand Up @@ -140,7 +140,7 @@ public PostStartTrialRequestDescriptor()

/// <summary>
/// <para>
/// Whether the user has acknowledged acknowledge messages
/// To start a trial, you must accept the acknowledge messages and set this parameter to <c>true</c>.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.LicenseManagement.PostStartTrialRequestDescriptor Acknowledge(bool? value = true)
Expand Down
Loading
Loading