Skip to content

Commit

Permalink
Regenerate client using the latest specification (#8388) (#8389)
Browse files Browse the repository at this point in the history
Co-authored-by: Florian Bernd <[email protected]>
  • Loading branch information
github-actions[bot] and flobernd authored Oct 16, 2024
1 parent e67cff5 commit c30e3f0
Show file tree
Hide file tree
Showing 72 changed files with 9,649 additions and 863 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ internal static class ApiUrlLookup
internal static ApiUrls IndexManagementPutIndexTemplate = new ApiUrls(new[] { "_index_template/{name}" });
internal static ApiUrls IndexManagementPutMapping = new ApiUrls(new[] { "{index}/_mapping" });
internal static ApiUrls IndexManagementPutSettings = new ApiUrls(new[] { "_settings", "{index}/_settings" });
internal static ApiUrls IndexManagementPutTemplate = new ApiUrls(new[] { "_template/{name}" });
internal static ApiUrls IndexManagementRecovery = new ApiUrls(new[] { "_recovery", "{index}/_recovery" });
internal static ApiUrls IndexManagementRefresh = new ApiUrls(new[] { "_refresh", "{index}/_refresh" });
internal static ApiUrls IndexManagementResolveIndex = new ApiUrls(new[] { "_resolve/index/{name}" });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ public sealed partial class ClusterStatsRequestParameters : RequestParameters
{
/// <summary>
/// <para>
/// If <c>true</c>, returns settings in flat format.
/// Include remote cluster data into the response
/// </para>
/// </summary>
public bool? FlatSettings { get => Q<bool?>("flat_settings"); set => Q("flat_settings", value); }
public bool? IncludeRemotes { get => Q<bool?>("include_remotes"); set => Q("include_remotes", value); }

/// <summary>
/// <para>
Expand Down Expand Up @@ -74,11 +74,11 @@ public ClusterStatsRequest(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nod

/// <summary>
/// <para>
/// If <c>true</c>, returns settings in flat format.
/// Include remote cluster data into the response
/// </para>
/// </summary>
[JsonIgnore]
public bool? FlatSettings { get => Q<bool?>("flat_settings"); set => Q("flat_settings", value); }
public bool? IncludeRemotes { get => Q<bool?>("include_remotes"); set => Q("include_remotes", value); }

/// <summary>
/// <para>
Expand Down Expand Up @@ -117,7 +117,7 @@ public ClusterStatsRequestDescriptor()

internal override string OperationName => "cluster.stats";

public ClusterStatsRequestDescriptor FlatSettings(bool? flatSettings = true) => Qs("flat_settings", flatSettings);
public ClusterStatsRequestDescriptor IncludeRemotes(bool? includeRemotes = true) => Qs("include_remotes", includeRemotes);
public ClusterStatsRequestDescriptor Timeout(Elastic.Clients.Elasticsearch.Serverless.Duration? timeout) => Qs("timeout", timeout);

public ClusterStatsRequestDescriptor NodeId(Elastic.Clients.Elasticsearch.Serverless.NodeIds? nodeId)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement;
public sealed partial class ClearCacheResponse : ElasticsearchResponse
{
[JsonInclude, JsonPropertyName("_shards")]
public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; }
public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics? Shards { get; init; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement;
public sealed partial class FlushResponse : ElasticsearchResponse
{
[JsonInclude, JsonPropertyName("_shards")]
public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; }
public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics? Shards { get; init; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace Elastic.Clients.Elasticsearch.Serverless.IndexManagement;
public sealed partial class ForcemergeResponse : ElasticsearchResponse
{
[JsonInclude, JsonPropertyName("_shards")]
public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics Shards { get; init; }
public Elastic.Clients.Elasticsearch.Serverless.ShardStatistics? Shards { get; init; }

/// <summary>
/// <para>
Expand Down
Loading

0 comments on commit c30e3f0

Please sign in to comment.