Skip to content
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

[Backport serverless] Regenerate client using the latest specification #8389

Merged
merged 1 commit into from
Oct 16, 2024
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 @@ -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
Loading