From e352e0b4573356e38bf6f174d7a025285b026389 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 19 Aug 2024 16:12:58 +1200 Subject: [PATCH] Bump CSharpier.Core and System.Text.Json (#760) * Bump CSharpier.Core and System.Text.Json Bumps [CSharpier.Core](https://github.com/belav/csharpier) and System.Text.Json. These dependencies needed to be updated together. Updates `CSharpier.Core` from 0.28.2 to 0.29.0 - [Release notes](https://github.com/belav/csharpier/releases) - [Changelog](https://github.com/belav/csharpier/blob/main/CHANGELOG.md) - [Commits](https://github.com/belav/csharpier/compare/0.28.2...0.29.0) Updates `System.Text.Json` from 8.0.0 to 8.0.4 --- updated-dependencies: - dependency-name: CSharpier.Core dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: System.Text.Json dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * Update changelog & generated code Signed-off-by: Thomas Farr --------- Signed-off-by: dependabot[bot] Signed-off-by: Thomas Farr Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Thomas Farr --- CHANGELOG.md | 2 +- src/ApiGenerator/ApiGenerator.csproj | 3 +- .../_Generated/ApiUrlsLookup.cs | 10 +- src/OpenSearch.Net/_Generated/Api/Enums.cs | 93 +++++++++---------- 4 files changed, 50 insertions(+), 58 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b5499b5f86..2806af0234 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,7 +29,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Bumps `xunit` from 2.7.1 to 2.8.0 - Bumps `FSharp.Core` from 8.0.100 to 8.0.301 - Bumps `xunit.runner.visualstudio` from 2.5.8 to 2.8.2 -- Bumps `CSharpier.Core` from 0.27.3 to 0.28.2 +- Bumps `CSharpier.Core` from 0.27.3 to 0.29.0 - Bumps `System.Diagnostics.DiagnosticSource` from 8.0.0 to 8.0.1 - Bumps `Spectre.Console` from 0.48.0 to 0.49.1 - Bumps `Nullean.VsTest.Pretty.TestLogger` from 0.3.0 to 0.4.0 diff --git a/src/ApiGenerator/ApiGenerator.csproj b/src/ApiGenerator/ApiGenerator.csproj index d3fc1a62ba..e52d09dbb6 100644 --- a/src/ApiGenerator/ApiGenerator.csproj +++ b/src/ApiGenerator/ApiGenerator.csproj @@ -9,7 +9,7 @@ true - + @@ -20,6 +20,7 @@ + diff --git a/src/OpenSearch.Client/_Generated/ApiUrlsLookup.cs b/src/OpenSearch.Client/_Generated/ApiUrlsLookup.cs index e1ecc5f08b..1f30ebe3c7 100644 --- a/src/OpenSearch.Client/_Generated/ApiUrlsLookup.cs +++ b/src/OpenSearch.Client/_Generated/ApiUrlsLookup.cs @@ -147,7 +147,7 @@ internal static partial class ApiUrlsLookups { "_cluster/state", "_cluster/state/{metric}", - "_cluster/state/{metric}/{index}" + "_cluster/state/{metric}/{index}", } ); @@ -213,7 +213,7 @@ internal static partial class ApiUrlsLookups "_nodes", "_nodes/{metric}", "_nodes/{node_id}", - "_nodes/{node_id}/{metric}" + "_nodes/{node_id}/{metric}", } ); @@ -231,7 +231,7 @@ internal static partial class ApiUrlsLookups "_nodes/stats/{metric}/{index_metric}", "_nodes/{node_id}/stats", "_nodes/{node_id}/stats/{metric}", - "_nodes/{node_id}/stats/{metric}/{index_metric}" + "_nodes/{node_id}/stats/{metric}/{index_metric}", } ); @@ -242,7 +242,7 @@ internal static partial class ApiUrlsLookups "_nodes/usage", "_nodes/usage/{metric}", "_nodes/{node_id}/usage", - "_nodes/{node_id}/usage/{metric}" + "_nodes/{node_id}/usage/{metric}", } ); @@ -279,7 +279,7 @@ internal static partial class ApiUrlsLookups { "_snapshot/_status", "_snapshot/{repository}/_status", - "_snapshot/{repository}/{snapshot}/_status" + "_snapshot/{repository}/{snapshot}/_status", } ); diff --git a/src/OpenSearch.Net/_Generated/Api/Enums.cs b/src/OpenSearch.Net/_Generated/Api/Enums.cs index 4ee4fea5e3..746e357fde 100644 --- a/src/OpenSearch.Net/_Generated/Api/Enums.cs +++ b/src/OpenSearch.Net/_Generated/Api/Enums.cs @@ -86,7 +86,7 @@ public enum Bytes T, [EnumMember(Value = "tb")] - Tb + Tb, } [StringEnum] @@ -102,7 +102,7 @@ public enum ClusterHealthLevel Indices, [EnumMember(Value = "shards")] - Shards + Shards, } [Flags, StringEnum] @@ -133,7 +133,7 @@ public enum ClusterStateMetric Version = 1 << 7, [EnumMember(Value = "_all")] - All = 1 << 8 + All = 1 << 8, } [Flags, StringEnum] @@ -152,7 +152,7 @@ public enum ExpandWildcards None = 1 << 3, [EnumMember(Value = "open")] - Open = 1 << 4 + Open = 1 << 4, } [StringEnum] @@ -165,7 +165,7 @@ public enum HealthStatus Red, [EnumMember(Value = "yellow")] - Yellow + Yellow, } [StringEnum] @@ -178,7 +178,7 @@ public enum Level Indices, [EnumMember(Value = "shards")] - Shards + Shards, } [Flags, StringEnum] @@ -221,7 +221,7 @@ public enum NodesInfoMetric Transport = 1 << 11, [EnumMember(Value = "_all")] - All = 1 << 12 + All = 1 << 12, } [StringEnum] @@ -234,7 +234,7 @@ public enum NodesSampleType Cpu, [EnumMember(Value = "wait")] - Wait + Wait, } [Flags, StringEnum] @@ -292,7 +292,7 @@ public enum NodesStatsIndexMetric Warmer = 1 << 16, [EnumMember(Value = "_all")] - All = 1 << 17 + All = 1 << 17, } [Flags, StringEnum] @@ -380,7 +380,7 @@ public enum NodesStatsMetric WeightedRouting = 1 << 26, [EnumMember(Value = "_all")] - All = 1 << 27 + All = 1 << 27, } [Flags, StringEnum] @@ -390,7 +390,7 @@ public enum NodesUsageMetric RestActions = 1 << 0, [EnumMember(Value = "_all")] - All = 1 << 1 + All = 1 << 1, } [StringEnum] @@ -403,7 +403,7 @@ public enum TasksGroupBy None, [EnumMember(Value = "parents")] - Parents + Parents, } [StringEnum] @@ -428,7 +428,7 @@ public enum TimeUnit Nanos, [EnumMember(Value = "s")] - S + S, } [StringEnum] @@ -438,7 +438,7 @@ public enum WaitForActiveShardOptions All, [EnumMember(Value = "index-setting")] - IndexSetting + IndexSetting, } [StringEnum] @@ -460,7 +460,7 @@ public enum WaitForEvents Normal, [EnumMember(Value = "urgent")] - Urgent + Urgent, } public static partial class KnownEnums @@ -498,10 +498,9 @@ public static string GetStringValue(this Bytes enumValue) => Bytes.Pb => "pb", Bytes.T => "t", Bytes.Tb => "tb", - _ - => throw new ArgumentException( - $"'{enumValue.ToString()}' is not a valid value for enum 'Bytes'" - ) + _ => throw new ArgumentException( + $"'{enumValue.ToString()}' is not a valid value for enum 'Bytes'" + ), }; public static string GetStringValue(this ClusterHealthLevel enumValue) => @@ -511,10 +510,9 @@ public static string GetStringValue(this ClusterHealthLevel enumValue) => ClusterHealthLevel.Cluster => "cluster", ClusterHealthLevel.Indices => "indices", ClusterHealthLevel.Shards => "shards", - _ - => throw new ArgumentException( - $"'{enumValue.ToString()}' is not a valid value for enum 'ClusterHealthLevel'" - ) + _ => throw new ArgumentException( + $"'{enumValue.ToString()}' is not a valid value for enum 'ClusterHealthLevel'" + ), }; public static string GetStringValue(this ClusterStateMetric enumValue) @@ -563,10 +561,9 @@ public static string GetStringValue(this HealthStatus enumValue) => HealthStatus.Green => "green", HealthStatus.Red => "red", HealthStatus.Yellow => "yellow", - _ - => throw new ArgumentException( - $"'{enumValue.ToString()}' is not a valid value for enum 'HealthStatus'" - ) + _ => throw new ArgumentException( + $"'{enumValue.ToString()}' is not a valid value for enum 'HealthStatus'" + ), }; public static string GetStringValue(this Level enumValue) => @@ -575,10 +572,9 @@ public static string GetStringValue(this Level enumValue) => Level.Cluster => "cluster", Level.Indices => "indices", Level.Shards => "shards", - _ - => throw new ArgumentException( - $"'{enumValue.ToString()}' is not a valid value for enum 'Level'" - ) + _ => throw new ArgumentException( + $"'{enumValue.ToString()}' is not a valid value for enum 'Level'" + ), }; public static string GetStringValue(this NodesInfoMetric enumValue) @@ -619,10 +615,9 @@ public static string GetStringValue(this NodesSampleType enumValue) => NodesSampleType.Block => "block", NodesSampleType.Cpu => "cpu", NodesSampleType.Wait => "wait", - _ - => throw new ArgumentException( - $"'{enumValue.ToString()}' is not a valid value for enum 'NodesSampleType'" - ) + _ => throw new ArgumentException( + $"'{enumValue.ToString()}' is not a valid value for enum 'NodesSampleType'" + ), }; public static string GetStringValue(this NodesStatsIndexMetric enumValue) @@ -745,10 +740,9 @@ public static string GetStringValue(this TasksGroupBy enumValue) => TasksGroupBy.Nodes => "nodes", TasksGroupBy.None => "none", TasksGroupBy.Parents => "parents", - _ - => throw new ArgumentException( - $"'{enumValue.ToString()}' is not a valid value for enum 'TasksGroupBy'" - ) + _ => throw new ArgumentException( + $"'{enumValue.ToString()}' is not a valid value for enum 'TasksGroupBy'" + ), }; public static string GetStringValue(this TimeUnit enumValue) => @@ -761,10 +755,9 @@ public static string GetStringValue(this TimeUnit enumValue) => TimeUnit.Ms => "ms", TimeUnit.Nanos => "nanos", TimeUnit.S => "s", - _ - => throw new ArgumentException( - $"'{enumValue.ToString()}' is not a valid value for enum 'TimeUnit'" - ) + _ => throw new ArgumentException( + $"'{enumValue.ToString()}' is not a valid value for enum 'TimeUnit'" + ), }; public static string GetStringValue(this WaitForActiveShardOptions enumValue) => @@ -772,10 +765,9 @@ public static string GetStringValue(this WaitForActiveShardOptions enumValue) => { WaitForActiveShardOptions.All => "all", WaitForActiveShardOptions.IndexSetting => "index-setting", - _ - => throw new ArgumentException( - $"'{enumValue.ToString()}' is not a valid value for enum 'WaitForActiveShardOptions'" - ) + _ => throw new ArgumentException( + $"'{enumValue.ToString()}' is not a valid value for enum 'WaitForActiveShardOptions'" + ), }; public static string GetStringValue(this WaitForEvents enumValue) => @@ -787,10 +779,9 @@ public static string GetStringValue(this WaitForEvents enumValue) => WaitForEvents.Low => "low", WaitForEvents.Normal => "normal", WaitForEvents.Urgent => "urgent", - _ - => throw new ArgumentException( - $"'{enumValue.ToString()}' is not a valid value for enum 'WaitForEvents'" - ) + _ => throw new ArgumentException( + $"'{enumValue.ToString()}' is not a valid value for enum 'WaitForEvents'" + ), }; } }