Skip to content

Commit

Permalink
Bump CSharpier.Core and System.Text.Json (opensearch-project#760)
Browse files Browse the repository at this point in the history
* 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](belav/csharpier@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] <[email protected]>

* Update changelog & generated code

Signed-off-by: Thomas Farr <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Thomas Farr <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Thomas Farr <[email protected]>
  • Loading branch information
dependabot[bot] and Xtansia authored Aug 19, 2024
1 parent d1db743 commit e352e0b
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 58 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/ApiGenerator/ApiGenerator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PreserveCompilationContext>true</PreserveCompilationContext>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="CSharpier.Core" Version="0.28.2" />
<PackageReference Include="CSharpier.Core" Version="0.29.0" />
<PackageReference Include="Glob" Version="1.1.9" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="NSwag.Core" Version="14.1.0" />
Expand All @@ -20,6 +20,7 @@
<PackageReference Include="System.CommandLine.DragonFruit" Version="0.3.0-alpha.20371.2" />
<PackageReference Include="RazorLight" Version="2.3.1" />
<PackageReference Include="System.Text.Encodings.Web" Version="8.0.0" />
<PackageReference Include="System.Text.Json" Version="8.0.4" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Views\**\*.cshtml" />
Expand Down
10 changes: 5 additions & 5 deletions src/OpenSearch.Client/_Generated/ApiUrlsLookup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ internal static partial class ApiUrlsLookups
{
"_cluster/state",
"_cluster/state/{metric}",
"_cluster/state/{metric}/{index}"
"_cluster/state/{metric}/{index}",
}
);

Expand Down Expand Up @@ -213,7 +213,7 @@ internal static partial class ApiUrlsLookups
"_nodes",
"_nodes/{metric}",
"_nodes/{node_id}",
"_nodes/{node_id}/{metric}"
"_nodes/{node_id}/{metric}",
}
);

Expand All @@ -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}",
}
);

Expand All @@ -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}",
}
);

Expand Down Expand Up @@ -279,7 +279,7 @@ internal static partial class ApiUrlsLookups
{
"_snapshot/_status",
"_snapshot/{repository}/_status",
"_snapshot/{repository}/{snapshot}/_status"
"_snapshot/{repository}/{snapshot}/_status",
}
);

Expand Down
93 changes: 42 additions & 51 deletions src/OpenSearch.Net/_Generated/Api/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public enum Bytes
T,

[EnumMember(Value = "tb")]
Tb
Tb,
}

[StringEnum]
Expand All @@ -102,7 +102,7 @@ public enum ClusterHealthLevel
Indices,

[EnumMember(Value = "shards")]
Shards
Shards,
}

[Flags, StringEnum]
Expand Down Expand Up @@ -133,7 +133,7 @@ public enum ClusterStateMetric
Version = 1 << 7,

[EnumMember(Value = "_all")]
All = 1 << 8
All = 1 << 8,
}

[Flags, StringEnum]
Expand All @@ -152,7 +152,7 @@ public enum ExpandWildcards
None = 1 << 3,

[EnumMember(Value = "open")]
Open = 1 << 4
Open = 1 << 4,
}

[StringEnum]
Expand All @@ -165,7 +165,7 @@ public enum HealthStatus
Red,

[EnumMember(Value = "yellow")]
Yellow
Yellow,
}

[StringEnum]
Expand All @@ -178,7 +178,7 @@ public enum Level
Indices,

[EnumMember(Value = "shards")]
Shards
Shards,
}

[Flags, StringEnum]
Expand Down Expand Up @@ -221,7 +221,7 @@ public enum NodesInfoMetric
Transport = 1 << 11,

[EnumMember(Value = "_all")]
All = 1 << 12
All = 1 << 12,
}

[StringEnum]
Expand All @@ -234,7 +234,7 @@ public enum NodesSampleType
Cpu,

[EnumMember(Value = "wait")]
Wait
Wait,
}

[Flags, StringEnum]
Expand Down Expand Up @@ -292,7 +292,7 @@ public enum NodesStatsIndexMetric
Warmer = 1 << 16,

[EnumMember(Value = "_all")]
All = 1 << 17
All = 1 << 17,
}

[Flags, StringEnum]
Expand Down Expand Up @@ -380,7 +380,7 @@ public enum NodesStatsMetric
WeightedRouting = 1 << 26,

[EnumMember(Value = "_all")]
All = 1 << 27
All = 1 << 27,
}

[Flags, StringEnum]
Expand All @@ -390,7 +390,7 @@ public enum NodesUsageMetric
RestActions = 1 << 0,

[EnumMember(Value = "_all")]
All = 1 << 1
All = 1 << 1,
}

[StringEnum]
Expand All @@ -403,7 +403,7 @@ public enum TasksGroupBy
None,

[EnumMember(Value = "parents")]
Parents
Parents,
}

[StringEnum]
Expand All @@ -428,7 +428,7 @@ public enum TimeUnit
Nanos,

[EnumMember(Value = "s")]
S
S,
}

[StringEnum]
Expand All @@ -438,7 +438,7 @@ public enum WaitForActiveShardOptions
All,

[EnumMember(Value = "index-setting")]
IndexSetting
IndexSetting,
}

[StringEnum]
Expand All @@ -460,7 +460,7 @@ public enum WaitForEvents
Normal,

[EnumMember(Value = "urgent")]
Urgent
Urgent,
}

public static partial class KnownEnums
Expand Down Expand Up @@ -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) =>
Expand All @@ -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)
Expand Down Expand Up @@ -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) =>
Expand All @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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) =>
Expand All @@ -761,21 +755,19 @@ 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) =>
enumValue switch
{
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) =>
Expand All @@ -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'"
),
};
}
}

0 comments on commit e352e0b

Please sign in to comment.