Skip to content

Commit 4c39878

Browse files
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.376.1 (#67)
Co-authored-by: speakeasybot <[email protected]>
1 parent 5f75521 commit 4c39878

12 files changed

+725
-717
lines changed

.speakeasy/gen.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ management:
55
docVersion: 0.2.0
66
speakeasyVersion: 1.376.1
77
generationVersion: 2.402.5
8-
releaseVersion: 1.3.3
9-
configChecksum: dcc8dc671230100c5c15b0872988f4e6
10-
repoURL: https://github.com/StyraInc/opa-csharp
8+
releaseVersion: 1.3.4
9+
configChecksum: c0dafebedf0ed5bc6d739ff599c0207f
10+
repoURL: https://github.com/StyraInc/opa-csharp.git
1111
repoSubDirectory: Styra/Opa/OpenApi/
1212
published: true
1313
features:

.speakeasy/gen.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ generation:
1212
auth:
1313
oAuth2ClientCredentialsEnabled: false
1414
csharp:
15-
version: 1.3.3
15+
version: 1.3.4
1616
additionalDependencies: []
1717
author: Styra
1818
clientServerStatusCodesAsErrors: true

.speakeasy/workflow.lock

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
speakeasyVersion: 1.376.0
1+
speakeasyVersion: 1.376.1
22
sources:
33
openapi:
44
sourceNamespace: openapi
5-
sourceRevisionDigest: sha256:76713cfaf47149b60b8bc5b10e999975d990f679fdb446fc0a6ee6835fa9c1e0
6-
sourceBlobDigest: sha256:1d6f0889215e37eb283c5904aec019dae6cb01c589ba6afdc0d51d95d6539ec7
5+
sourceRevisionDigest: sha256:a34f0785a5ad43d43a75df8462f6227a5f13a9f15c23615d08c0dd5a79db22ae
6+
sourceBlobDigest: sha256:f76f9d1e8be466eef2d0e9612845ce19f9a5f507682e92d7a4355b3b13eaa921
77
tags:
88
- latest
99
- main
1010
targets:
1111
first-target:
1212
source: openapi
1313
sourceNamespace: openapi
14-
sourceRevisionDigest: sha256:76713cfaf47149b60b8bc5b10e999975d990f679fdb446fc0a6ee6835fa9c1e0
15-
sourceBlobDigest: sha256:1d6f0889215e37eb283c5904aec019dae6cb01c589ba6afdc0d51d95d6539ec7
14+
sourceRevisionDigest: sha256:a34f0785a5ad43d43a75df8462f6227a5f13a9f15c23615d08c0dd5a79db22ae
15+
sourceBlobDigest: sha256:f76f9d1e8be466eef2d0e9612845ce19f9a5f507682e92d7a4355b3b13eaa921
1616
outLocation: /github/workspace/repo
1717
workflow:
1818
workflowVersion: 1.0.0
@@ -21,8 +21,6 @@ workflow:
2121
openapi:
2222
inputs:
2323
- location: https://raw.githubusercontent.com/StyraInc/enterprise-opa/main/openapi/openapi.yaml
24-
overlays:
25-
- location: ./.speakeasy/overlay.yaml
2624
registry:
2725
location: registry.speakeasyapi.dev/styra/styra/openapi
2826
targets:

RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -255,4 +255,14 @@ Based on:
255255
### Generated
256256
- [csharp v1.3.0] .
257257
### Releases
258-
- [NuGet v1.3.0] https://www.nuget.org/packages/Styra.Opa.OpenApi/1.3.0 - .
258+
- [NuGet v1.3.0] https://www.nuget.org/packages/Styra.Opa.OpenApi/1.3.0 - .
259+
260+
## 2024-08-20 20:26:52
261+
### Changes
262+
Based on:
263+
- OpenAPI Doc
264+
- Speakeasy CLI 1.376.1 (2.402.5) https://github.com/speakeasy-api/speakeasy
265+
### Generated
266+
- [csharp v1.3.4] .
267+
### Releases
268+
- [NuGet v1.3.4] https://www.nuget.org/packages/Styra.Opa.OpenApi/1.3.4 - .

Styra/Opa/LogMessages.cs

+29-29
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,37 @@ namespace Styra.Opa;
66

77
internal static partial class LogMessages
88
{
9-
[LoggerMessage(
10-
Message = "Batch Query API unavailable, falling back to sequential OPA queries",
11-
Level = LogLevel.Warning)]
12-
internal static partial void LogBatchQueryFallback(
13-
this ILogger logger);
9+
[LoggerMessage(
10+
Message = "Batch Query API unavailable, falling back to sequential OPA queries",
11+
Level = LogLevel.Warning)]
12+
internal static partial void LogBatchQueryFallback(
13+
this ILogger logger);
1414

15-
[LoggerMessage(
16-
Message = "executing policy '{rule}' failed with exception: {message}",
17-
Level = LogLevel.Error)]
18-
internal static partial void LogQueryError(
19-
this ILogger logger,
20-
string rule,
21-
string message);
15+
[LoggerMessage(
16+
Message = "executing policy '{rule}' failed with exception: {message}",
17+
Level = LogLevel.Error)]
18+
internal static partial void LogQueryError(
19+
this ILogger logger,
20+
string rule,
21+
string message);
2222

23-
[LoggerMessage(
24-
Message = "default policy failed with exception: {message}",
25-
Level = LogLevel.Error)]
26-
internal static partial void LogDefaultQueryError(
27-
this ILogger logger,
28-
string message);
23+
[LoggerMessage(
24+
Message = "default policy failed with exception: {message}",
25+
Level = LogLevel.Error)]
26+
internal static partial void LogDefaultQueryError(
27+
this ILogger logger,
28+
string message);
2929

30-
[LoggerMessage(
31-
Message = "executing policy at '{rule}' succeeded, but OPA did not reply with a result",
32-
Level = LogLevel.Warning)]
33-
internal static partial void LogQueryNullResult(
34-
this ILogger logger,
35-
string rule);
30+
[LoggerMessage(
31+
Message = "executing policy at '{rule}' succeeded, but OPA did not reply with a result",
32+
Level = LogLevel.Warning)]
33+
internal static partial void LogQueryNullResult(
34+
this ILogger logger,
35+
string rule);
3636

37-
[LoggerMessage(
38-
Message = "executing server default policy succeeded, but OPA did not reply with a result",
39-
Level = LogLevel.Warning)]
40-
internal static partial void LogDefaultQueryNullResult(
41-
this ILogger logger);
37+
[LoggerMessage(
38+
Message = "executing server default policy succeeded, but OPA did not reply with a result",
39+
Level = LogLevel.Warning)]
40+
internal static partial void LogDefaultQueryNullResult(
41+
this ILogger logger);
4242
}

Styra/Opa/OpaBatchTypes.cs

+42-42
Original file line numberDiff line numberDiff line change
@@ -6,71 +6,71 @@ namespace Styra.Opa;
66

77
public class OpaBatchInputs : Dictionary<string, Dictionary<string, object>>
88
{
9-
public override string ToString()
10-
{
11-
return JsonConvert.SerializeObject(this);
12-
}
9+
public override string ToString()
10+
{
11+
return JsonConvert.SerializeObject(this);
12+
}
1313
}
1414

1515
public class OpaBatchResults : Dictionary<string, OpaResult>
1616
{
17-
public override string ToString()
18-
{
19-
return JsonConvert.SerializeObject(this);
20-
}
17+
public override string ToString()
18+
{
19+
return JsonConvert.SerializeObject(this);
20+
}
2121
}
2222

2323
public class OpaBatchErrors : Dictionary<string, OpaError>
2424
{
25-
public override string ToString()
26-
{
27-
return JsonConvert.SerializeObject(this);
28-
}
25+
public override string ToString()
26+
{
27+
return JsonConvert.SerializeObject(this);
28+
}
2929
}
3030

3131
// Used for converting inputs for the Batch Query API, and converting result types
3232
// into useful higher-level types.
3333
public static class DictionaryExtensions
3434
{
35-
public static Dictionary<string, Input> ToOpaBatchInputRaw(this Dictionary<string, Dictionary<string, object>> inputs)
36-
{
37-
var opaBatchInputs = new Dictionary<string, Input>();
38-
foreach (var kvp in inputs)
35+
public static Dictionary<string, Input> ToOpaBatchInputRaw(this Dictionary<string, Dictionary<string, object>> inputs)
3936
{
40-
opaBatchInputs[kvp.Key] = Input.CreateMapOfAny(kvp.Value);
37+
var opaBatchInputs = new Dictionary<string, Input>();
38+
foreach (var kvp in inputs)
39+
{
40+
opaBatchInputs[kvp.Key] = Input.CreateMapOfAny(kvp.Value);
41+
}
42+
return opaBatchInputs;
4143
}
42-
return opaBatchInputs;
43-
}
4444

45-
// The OpenApi.Models.Errors variant of the ServerError type.
46-
public static OpaBatchErrors ToOpaBatchErrors(this Dictionary<string, Styra.Opa.OpenApi.Models.Errors.ServerError> errors)
47-
{
48-
var opaBatchErrors = new OpaBatchErrors();
49-
foreach (var kvp in errors)
45+
// The OpenApi.Models.Errors variant of the ServerError type.
46+
public static OpaBatchErrors ToOpaBatchErrors(this Dictionary<string, Styra.Opa.OpenApi.Models.Errors.ServerError> errors)
5047
{
51-
opaBatchErrors[kvp.Key] = new OpaError(kvp.Value);
48+
var opaBatchErrors = new OpaBatchErrors();
49+
foreach (var kvp in errors)
50+
{
51+
opaBatchErrors[kvp.Key] = new OpaError(kvp.Value);
52+
}
53+
return opaBatchErrors;
5254
}
53-
return opaBatchErrors;
54-
}
5555

56-
// The OpenApi.Models.Components variant of the ServerError type.
57-
public static OpaBatchErrors ToOpaBatchErrors(this Dictionary<string, Styra.Opa.OpenApi.Models.Components.ServerErrorWithStatusCode> errors)
58-
{
59-
var opaBatchErrors = new OpaBatchErrors();
60-
foreach (var kvp in errors)
56+
// The OpenApi.Models.Components variant of the ServerError type.
57+
public static OpaBatchErrors ToOpaBatchErrors(this Dictionary<string, Styra.Opa.OpenApi.Models.Components.ServerErrorWithStatusCode> errors)
6158
{
62-
opaBatchErrors[kvp.Key] = new OpaError(kvp.Value);
59+
var opaBatchErrors = new OpaBatchErrors();
60+
foreach (var kvp in errors)
61+
{
62+
opaBatchErrors[kvp.Key] = new OpaError(kvp.Value);
63+
}
64+
return opaBatchErrors;
6365
}
64-
return opaBatchErrors;
65-
}
6666

67-
public static OpaBatchResults ToOpaBatchResults(this Dictionary<string, SuccessfulPolicyResponse> responses)
68-
{
69-
var opaBatchResults = new OpaBatchResults();
70-
foreach (var kvp in responses)
67+
public static OpaBatchResults ToOpaBatchResults(this Dictionary<string, SuccessfulPolicyResponse> responses)
7168
{
72-
opaBatchResults[kvp.Key] = (OpaResult)kvp.Value;
69+
var opaBatchResults = new OpaBatchResults();
70+
foreach (var kvp in responses)
71+
{
72+
opaBatchResults[kvp.Key] = (OpaResult)kvp.Value;
73+
}
74+
return opaBatchResults;
7375
}
74-
return opaBatchResults;
75-
}
7676
}

0 commit comments

Comments
 (0)