Skip to content

Regenerate client #8637

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 4, 2025
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 @@ -115,6 +115,7 @@ internal static class ApiUrlLookup
internal static ApiUrls IndexManagementGetDataLifecycle = new ApiUrls(new[] { "_data_stream/{name}/_lifecycle" });
internal static ApiUrls IndexManagementGetDataLifecycleStats = new ApiUrls(new[] { "_lifecycle/stats" });
internal static ApiUrls IndexManagementGetDataStream = new ApiUrls(new[] { "_data_stream", "_data_stream/{name}" });
internal static ApiUrls IndexManagementGetDataStreamMappings = new ApiUrls(new[] { "_data_stream/{name}/_mappings" });
internal static ApiUrls IndexManagementGetDataStreamOptions = new ApiUrls(new[] { "_data_stream/{name}/_options" });
internal static ApiUrls IndexManagementGetDataStreamSettings = new ApiUrls(new[] { "_data_stream/{name}/_settings" });
internal static ApiUrls IndexManagementGetFieldMapping = new ApiUrls(new[] { "_mapping/field/{fields}", "{index}/_mapping/field/{fields}" });
Expand All @@ -130,6 +131,7 @@ internal static class ApiUrlLookup
internal static ApiUrls IndexManagementPromoteDataStream = new ApiUrls(new[] { "_data_stream/_promote/{name}" });
internal static ApiUrls IndexManagementPutAlias = new ApiUrls(new[] { "{index}/_alias/{name}" });
internal static ApiUrls IndexManagementPutDataLifecycle = new ApiUrls(new[] { "_data_stream/{name}/_lifecycle" });
internal static ApiUrls IndexManagementPutDataStreamMappings = new ApiUrls(new[] { "_data_stream/{name}/_mappings" });
internal static ApiUrls IndexManagementPutDataStreamOptions = new ApiUrls(new[] { "_data_stream/{name}/_options" });
internal static ApiUrls IndexManagementPutDataStreamSettings = new ApiUrls(new[] { "_data_stream/{name}/_settings" });
internal static ApiUrls IndexManagementPutIndexTemplate = new ApiUrls(new[] { "_index_template/{name}" });
Expand All @@ -139,6 +141,7 @@ internal static class ApiUrlLookup
internal static ApiUrls IndexManagementRecovery = new ApiUrls(new[] { "_recovery", "{index}/_recovery" });
internal static ApiUrls IndexManagementRefresh = new ApiUrls(new[] { "_refresh", "{index}/_refresh" });
internal static ApiUrls IndexManagementReloadSearchAnalyzers = new ApiUrls(new[] { "{index}/_reload_search_analyzers" });
internal static ApiUrls IndexManagementRemoveBlock = new ApiUrls(new[] { "{index}/_block/{block}" });
internal static ApiUrls IndexManagementResolveCluster = new ApiUrls(new[] { "_resolve/cluster", "_resolve/cluster/{name}" });
internal static ApiUrls IndexManagementResolveIndex = new ApiUrls(new[] { "_resolve/index/{name}" });
internal static ApiUrls IndexManagementRollover = new ApiUrls(new[] { "{alias}/_rollover", "{alias}/_rollover/{new_index}" });
Expand All @@ -159,10 +162,13 @@ internal static class ApiUrlLookup
internal static ApiUrls InferencePut = new ApiUrls(new[] { "_inference/{inference_id}", "_inference/{task_type}/{inference_id}" });
internal static ApiUrls InferencePutAlibabacloud = new ApiUrls(new[] { "_inference/{task_type}/{alibabacloud_inference_id}" });
internal static ApiUrls InferencePutAmazonbedrock = new ApiUrls(new[] { "_inference/{task_type}/{amazonbedrock_inference_id}" });
internal static ApiUrls InferencePutAmazonsagemaker = new ApiUrls(new[] { "_inference/{task_type}/{amazonsagemaker_inference_id}" });
internal static ApiUrls InferencePutAnthropic = new ApiUrls(new[] { "_inference/{task_type}/{anthropic_inference_id}" });
internal static ApiUrls InferencePutAzureaistudio = new ApiUrls(new[] { "_inference/{task_type}/{azureaistudio_inference_id}" });
internal static ApiUrls InferencePutAzureopenai = new ApiUrls(new[] { "_inference/{task_type}/{azureopenai_inference_id}" });
internal static ApiUrls InferencePutCohere = new ApiUrls(new[] { "_inference/{task_type}/{cohere_inference_id}" });
internal static ApiUrls InferencePutCustom = new ApiUrls(new[] { "_inference/{task_type}/{custom_inference_id}" });
internal static ApiUrls InferencePutDeepseek = new ApiUrls(new[] { "_inference/{task_type}/{deepseek_inference_id}" });
internal static ApiUrls InferencePutElasticsearch = new ApiUrls(new[] { "_inference/{task_type}/{elasticsearch_inference_id}" });
internal static ApiUrls InferencePutElser = new ApiUrls(new[] { "_inference/{task_type}/{elser_inference_id}" });
internal static ApiUrls InferencePutGoogleaistudio = new ApiUrls(new[] { "_inference/{task_type}/{googleaistudio_inference_id}" });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien
/// <para>
/// Explain the shard allocations.
/// Get explanations for shard allocations in the cluster.
/// This API accepts the current_node, index, primary and shard parameters in the request body or in query parameters, but not in both at the same time.
/// For unassigned shards, it provides an explanation for why the shard is unassigned.
/// For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node.
/// This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise.
Expand Down Expand Up @@ -173,28 +174,28 @@ internal AllocationExplainRequest(Elastic.Clients.Elasticsearch.Serialization.Js

/// <summary>
/// <para>
/// Specifies the node ID or the name of the node to only explain a shard that is currently located on the specified node.
/// Explain a shard only if it is currently located on the specified node name or node ID.
/// </para>
/// </summary>
public string? CurrentNode { get; set; }

/// <summary>
/// <para>
/// Specifies the name of the index that you would like an explanation for.
/// The name of the index that you would like an explanation for.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.IndexName? Index { get; set; }

/// <summary>
/// <para>
/// If true, returns explanation for the primary shard for the given shard ID.
/// If true, returns an explanation for the primary shard for the specified shard ID.
/// </para>
/// </summary>
public bool? Primary { get; set; }

/// <summary>
/// <para>
/// Specifies the ID of the shard that you would like an explanation for.
/// An identifier for the shard that you would like an explanation for.
/// </para>
/// </summary>
public int? Shard { get; set; }
Expand All @@ -204,6 +205,7 @@ internal AllocationExplainRequest(Elastic.Clients.Elasticsearch.Serialization.Js
/// <para>
/// Explain the shard allocations.
/// Get explanations for shard allocations in the cluster.
/// This API accepts the current_node, index, primary and shard parameters in the request body or in query parameters, but not in both at the same time.
/// For unassigned shards, it provides an explanation for why the shard is unassigned.
/// For assigned shards, it provides an explanation for why the shard is remaining on its current node and has not moved or rebalanced to another node.
/// This API can be very useful when attempting to diagnose why a shard is unassigned or why a shard continues to remain on its current node when you might expect otherwise.
Expand Down Expand Up @@ -263,7 +265,7 @@ public Elastic.Clients.Elasticsearch.Cluster.AllocationExplainRequestDescriptor

/// <summary>
/// <para>
/// Specifies the node ID or the name of the node to only explain a shard that is currently located on the specified node.
/// Explain a shard only if it is currently located on the specified node name or node ID.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Cluster.AllocationExplainRequestDescriptor CurrentNode(string? value)
Expand All @@ -274,7 +276,7 @@ public Elastic.Clients.Elasticsearch.Cluster.AllocationExplainRequestDescriptor

/// <summary>
/// <para>
/// Specifies the name of the index that you would like an explanation for.
/// The name of the index that you would like an explanation for.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Cluster.AllocationExplainRequestDescriptor Index(Elastic.Clients.Elasticsearch.IndexName? value)
Expand All @@ -285,7 +287,7 @@ public Elastic.Clients.Elasticsearch.Cluster.AllocationExplainRequestDescriptor

/// <summary>
/// <para>
/// If true, returns explanation for the primary shard for the given shard ID.
/// If true, returns an explanation for the primary shard for the specified shard ID.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Cluster.AllocationExplainRequestDescriptor Primary(bool? value = true)
Expand All @@ -296,7 +298,7 @@ public Elastic.Clients.Elasticsearch.Cluster.AllocationExplainRequestDescriptor

/// <summary>
/// <para>
/// Specifies the ID of the shard that you would like an explanation for.
/// An identifier for the shard that you would like an explanation for.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Cluster.AllocationExplainRequestDescriptor Shard(int? value)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ internal sealed partial class ClusterStatsResponseConverter : System.Text.Json.S
private static readonly System.Text.Json.JsonEncodedText PropIndices = System.Text.Json.JsonEncodedText.Encode("indices");
private static readonly System.Text.Json.JsonEncodedText PropNodes = System.Text.Json.JsonEncodedText.Encode("nodes");
private static readonly System.Text.Json.JsonEncodedText PropNodeStats = System.Text.Json.JsonEncodedText.Encode("_nodes");
private static readonly System.Text.Json.JsonEncodedText PropRepositories = System.Text.Json.JsonEncodedText.Encode("repositories");
private static readonly System.Text.Json.JsonEncodedText PropSnapshots = System.Text.Json.JsonEncodedText.Encode("snapshots");
private static readonly System.Text.Json.JsonEncodedText PropStatus = System.Text.Json.JsonEncodedText.Encode("status");
private static readonly System.Text.Json.JsonEncodedText PropTimestamp = System.Text.Json.JsonEncodedText.Encode("timestamp");

Expand All @@ -43,7 +45,9 @@ public override Elastic.Clients.Elasticsearch.Cluster.ClusterStatsResponse Read(
LocalJsonValue<Elastic.Clients.Elasticsearch.Cluster.ClusterIndices> propIndices = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Cluster.ClusterNodes> propNodes = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.NodeStatistics?> propNodeStats = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.HealthStatus> propStatus = default;
LocalJsonValue<System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IReadOnlyDictionary<string, long>>> propRepositories = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.Cluster.ClusterSnapshotStats> propSnapshots = default;
LocalJsonValue<Elastic.Clients.Elasticsearch.HealthStatus?> propStatus = default;
LocalJsonValue<long> propTimestamp = default;
while (reader.Read() && reader.TokenType is System.Text.Json.JsonTokenType.PropertyName)
{
Expand Down Expand Up @@ -77,7 +81,17 @@ public override Elastic.Clients.Elasticsearch.Cluster.ClusterStatsResponse Read(
continue;
}

if (propStatus.TryReadProperty(ref reader, options, PropStatus, null))
if (propRepositories.TryReadProperty(ref reader, options, PropRepositories, static System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IReadOnlyDictionary<string, long>> (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadDictionaryValue<string, System.Collections.Generic.IReadOnlyDictionary<string, long>>(o, null, static System.Collections.Generic.IReadOnlyDictionary<string, long> (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadDictionaryValue<string, long>(o, null, null)!)!))
{
continue;
}

if (propSnapshots.TryReadProperty(ref reader, options, PropSnapshots, null))
{
continue;
}

if (propStatus.TryReadProperty(ref reader, options, PropStatus, static Elastic.Clients.Elasticsearch.HealthStatus? (ref System.Text.Json.Utf8JsonReader r, System.Text.Json.JsonSerializerOptions o) => r.ReadNullableValue<Elastic.Clients.Elasticsearch.HealthStatus>(o)))
{
continue;
}
Expand Down Expand Up @@ -105,6 +119,8 @@ public override Elastic.Clients.Elasticsearch.Cluster.ClusterStatsResponse Read(
Indices = propIndices.Value,
Nodes = propNodes.Value,
NodeStats = propNodeStats.Value,
Repositories = propRepositories.Value,
Snapshots = propSnapshots.Value,
Status = propStatus.Value,
Timestamp = propTimestamp.Value
};
Expand All @@ -119,7 +135,9 @@ public override void Write(System.Text.Json.Utf8JsonWriter writer, Elastic.Clien
writer.WriteProperty(options, PropIndices, value.Indices, null, null);
writer.WriteProperty(options, PropNodes, value.Nodes, null, null);
writer.WriteProperty(options, PropNodeStats, value.NodeStats, null, null);
writer.WriteProperty(options, PropStatus, value.Status, null, null);
writer.WriteProperty(options, PropRepositories, value.Repositories, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IReadOnlyDictionary<string, long>> v) => w.WriteDictionaryValue<string, System.Collections.Generic.IReadOnlyDictionary<string, long>>(o, v, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, System.Collections.Generic.IReadOnlyDictionary<string, long> v) => w.WriteDictionaryValue<string, long>(o, v, null, null)));
writer.WriteProperty(options, PropSnapshots, value.Snapshots, null, null);
writer.WriteProperty(options, PropStatus, value.Status, null, static (System.Text.Json.Utf8JsonWriter w, System.Text.Json.JsonSerializerOptions o, Elastic.Clients.Elasticsearch.HealthStatus? v) => w.WriteNullableValue<Elastic.Clients.Elasticsearch.HealthStatus>(o, v));
writer.WriteProperty(options, PropTimestamp, value.Timestamp, null, null);
writer.WriteEndObject();
}
Expand Down Expand Up @@ -203,14 +221,32 @@ internal ClusterStatsResponse(Elastic.Clients.Elasticsearch.Serialization.JsonCo

/// <summary>
/// <para>
/// Health status of the cluster, based on the state of its primary and replica shards.
/// Contains stats on repository feature usage exposed in cluster stats for telemetry.
/// </para>
/// </summary>
public
#if NET7_0_OR_GREATER
required
#endif
System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IReadOnlyDictionary<string, long>> Repositories { get; set; }

/// <summary>
/// <para>
/// Contains stats cluster snapshots.
/// </para>
/// </summary>
public
#if NET7_0_OR_GREATER
required
#endif
Elastic.Clients.Elasticsearch.HealthStatus Status { get; set; }
Elastic.Clients.Elasticsearch.Cluster.ClusterSnapshotStats Snapshots { get; set; }

/// <summary>
/// <para>
/// Health status of the cluster, based on the state of its primary and replica shards.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.HealthStatus? Status { get; set; }

/// <summary>
/// <para>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ public sealed partial class GetComponentTemplateRequestParameters : Elastic.Tran
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q<Elastic.Clients.Elasticsearch.Duration?>("master_timeout"); set => Q("master_timeout", value); }

/// <summary>
/// <para>
/// Filter out results, for example to filter out sensitive information. Supports wildcards or full settings keys
/// </para>
/// </summary>
public System.Collections.Generic.ICollection<string>? SettingsFilter { get => Q<System.Collections.Generic.ICollection<string>?>("settings_filter"); set => Q("settings_filter", value); }
}

internal sealed partial class GetComponentTemplateRequestConverter : System.Text.Json.Serialization.JsonConverter<Elastic.Clients.Elasticsearch.Cluster.GetComponentTemplateRequest>
Expand Down Expand Up @@ -158,6 +165,13 @@ internal GetComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serialization
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Duration? MasterTimeout { get => Q<Elastic.Clients.Elasticsearch.Duration?>("master_timeout"); set => Q("master_timeout", value); }

/// <summary>
/// <para>
/// Filter out results, for example to filter out sensitive information. Supports wildcards or full settings keys
/// </para>
/// </summary>
public System.Collections.Generic.ICollection<string>? SettingsFilter { get => Q<System.Collections.Generic.ICollection<string>?>("settings_filter"); set => Q("settings_filter", value); }
}

/// <summary>
Expand Down Expand Up @@ -247,6 +261,28 @@ public Elastic.Clients.Elasticsearch.Cluster.GetComponentTemplateRequestDescript
return this;
}

/// <summary>
/// <para>
/// Filter out results, for example to filter out sensitive information. Supports wildcards or full settings keys
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Cluster.GetComponentTemplateRequestDescriptor SettingsFilter(System.Collections.Generic.ICollection<string>? value)
{
Instance.SettingsFilter = value;
return this;
}

/// <summary>
/// <para>
/// Filter out results, for example to filter out sensitive information. Supports wildcards or full settings keys
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Cluster.GetComponentTemplateRequestDescriptor SettingsFilter(params string[] values)
{
Instance.SettingsFilter = [.. values];
return this;
}

[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.AggressiveInlining)]
internal static Elastic.Clients.Elasticsearch.Cluster.GetComponentTemplateRequest Build(System.Action<Elastic.Clients.Elasticsearch.Cluster.GetComponentTemplateRequestDescriptor>? action)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ namespace Elastic.Clients.Elasticsearch.Cluster;

public sealed partial class PutComponentTemplateRequestParameters : Elastic.Transport.RequestParameters
{
/// <summary>
/// <para>
/// User defined reason for create the component template.
/// </para>
/// </summary>
public string? Cause { get => Q<string?>("cause"); set => Q("cause", value); }

/// <summary>
/// <para>
/// If <c>true</c>, this request cannot replace or update existing component templates.
Expand Down Expand Up @@ -185,6 +192,13 @@ internal PutComponentTemplateRequest(Elastic.Clients.Elasticsearch.Serialization
#endif
Elastic.Clients.Elasticsearch.Name Name { get => P<Elastic.Clients.Elasticsearch.Name>("name"); set => PR("name", value); }

/// <summary>
/// <para>
/// User defined reason for create the component template.
/// </para>
/// </summary>
public string? Cause { get => Q<string?>("cause"); set => Q("cause", value); }

/// <summary>
/// <para>
/// If <c>true</c>, this request cannot replace or update existing component templates.
Expand Down Expand Up @@ -310,6 +324,17 @@ public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescript
return this;
}

/// <summary>
/// <para>
/// User defined reason for create the component template.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescriptor Cause(string? value)
{
Instance.Cause = value;
return this;
}

/// <summary>
/// <para>
/// If <c>true</c>, this request cannot replace or update existing component templates.
Expand Down Expand Up @@ -573,6 +598,17 @@ public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescript
return this;
}

/// <summary>
/// <para>
/// User defined reason for create the component template.
/// </para>
/// </summary>
public Elastic.Clients.Elasticsearch.Cluster.PutComponentTemplateRequestDescriptor<TDocument> Cause(string? value)
{
Instance.Cause = value;
return this;
}

/// <summary>
/// <para>
/// If <c>true</c>, this request cannot replace or update existing component templates.
Expand Down
Loading
Loading