Skip to content

Commit

Permalink
chore: 🐝 Update SDK - 1 - Generate (#53)
Browse files Browse the repository at this point in the history
* ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.313.0

* Update project file to version 1.0.2

---------

Co-authored-by: speakeasybot <[email protected]>
Co-authored-by: GitHub Actions <[email protected]>
  • Loading branch information
3 people committed Jun 21, 2024
1 parent dc8a3f8 commit b0c4e3d
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 36 deletions.
10 changes: 5 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ id: f1a8c321-72a7-41c5-8f5e-3d925aeafa1a
management:
docChecksum: a34bd1c885aa42eb3175940494581f67
docVersion: 0.2.0
speakeasyVersion: 1.310.0
generationVersion: 2.347.4
releaseVersion: 1.0.1
configChecksum: 1384ef5ea24bf80b6ac93f5d303cf1ea
speakeasyVersion: 1.313.0
generationVersion: 2.347.8
releaseVersion: 1.0.2
configChecksum: 5b4c00c3b7dcdf23ec760be362e08018
repoURL: https://github.com/StyraInc/opa-csharp.git
repoSubDirectory: Styra/Opa/OpenApi/
published: true
features:
csharp:
additionalDependencies: 0.1.0
constsAndDefaults: 0.0.1
core: 3.9.6
core: 3.9.7
examples: 2.81.3
flattening: 2.81.2
globalSecurityCallbacks: 0.1.0
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
csharp:
version: 1.0.1
version: 1.0.2
additionalDependencies: []
author: Styra
clientServerStatusCodesAsErrors: true
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
speakeasyVersion: 1.299.7
speakeasyVersion: 1.313.0
sources:
openapi:
sourceNamespace: openapi
sourceRevisionDigest: sha256:eb548051373a9d8a3febd4ce2e04e732616ffe3d88391010b6d4f7c2cc662de7
sourceBlobDigest: sha256:f9d2836cdde91d2e0b91630bbbdf90e1846556c78e6cbac633467bea07057872
sourceRevisionDigest: sha256:38793f66f2519e169b69b3b98296915e2c620588f4061e3c5f89321fff66846d
sourceBlobDigest: sha256:b75ceb7464703fa10ee5f88f281467c804171c7a54a53c19a5904ace9b78a5a4
tags:
- latest
- main
targets:
first-target:
source: openapi
sourceNamespace: openapi
sourceRevisionDigest: sha256:eb548051373a9d8a3febd4ce2e04e732616ffe3d88391010b6d4f7c2cc662de7
sourceBlobDigest: sha256:f9d2836cdde91d2e0b91630bbbdf90e1846556c78e6cbac633467bea07057872
sourceRevisionDigest: sha256:38793f66f2519e169b69b3b98296915e2c620588f4061e3c5f89321fff66846d
sourceBlobDigest: sha256:b75ceb7464703fa10ee5f88f281467c804171c7a54a53c19a5904ace9b78a5a4
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,14 @@ Based on:
### Generated
- [csharp v1.0.1] .
### Releases
- [NuGet v1.0.1] https://www.nuget.org/packages/Styra.Opa.OpenApi/1.0.1 - .
- [NuGet v1.0.1] https://www.nuget.org/packages/Styra.Opa.OpenApi/1.0.1 - .

## 2024-06-21 00:03:15
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.313.0 (2.347.8) https://github.com/speakeasy-api/speakeasy
### Generated
- [csharp v1.0.2] .
### Releases
- [NuGet v1.0.2] https://www.nuget.org/packages/Styra.Opa.OpenApi/1.0.2 - .
46 changes: 23 additions & 23 deletions Styra/Opa/OpenApi/OpaApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ public class OpaApiClient: IOpaApiClient
public SDKConfig SDKConfiguration { get; private set; }

private const string _language = "csharp";
private const string _sdkVersion = "1.0.1";
private const string _sdkGenVersion = "2.347.4";
private const string _sdkVersion = "1.0.2";
private const string _sdkGenVersion = "2.347.8";
private const string _openapiDocVersion = "0.2.0";
private const string _userAgent = "speakeasy-sdk/csharp 1.0.1 2.347.4 0.2.0 Styra.Opa.OpenApi";
private const string _userAgent = "speakeasy-sdk/csharp 1.0.2 2.347.8 0.2.0 Styra.Opa.OpenApi";
private string _serverUrl = "";
private int _serverIndex = 0;
private ISpeakeasyHttpClient _client;
Expand Down Expand Up @@ -231,10 +231,6 @@ public async Task<ExecuteDefaultPolicyWithInputResponse> ExecuteDefaultPolicyWit
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
}
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
{
throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
else if(responseStatusCode == 500)
{
if(Utilities.IsContentTypeMatch("application/json", contentType))
Expand All @@ -247,6 +243,10 @@ public async Task<ExecuteDefaultPolicyWithInputResponse> ExecuteDefaultPolicyWit
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
}
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
{
throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
else
{
throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
Expand Down Expand Up @@ -329,10 +329,6 @@ public async Task<ExecutePolicyResponse> ExecutePolicyAsync(ExecutePolicyRequest
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
}
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
{
throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
else if(responseStatusCode == 500)
{
if(Utilities.IsContentTypeMatch("application/json", contentType))
Expand All @@ -345,6 +341,10 @@ public async Task<ExecutePolicyResponse> ExecutePolicyAsync(ExecutePolicyRequest
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
}
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
{
throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
else
{
throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
Expand Down Expand Up @@ -433,10 +433,6 @@ public async Task<ExecutePolicyWithInputResponse> ExecutePolicyWithInputAsync(Ex
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
}
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
{
throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
else if(responseStatusCode == 500)
{
if(Utilities.IsContentTypeMatch("application/json", contentType))
Expand All @@ -449,6 +445,10 @@ public async Task<ExecutePolicyWithInputResponse> ExecutePolicyWithInputAsync(Ex
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
}
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
{
throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
else
{
throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
Expand Down Expand Up @@ -556,10 +556,6 @@ public async Task<ExecuteBatchPolicyWithInputResponse> ExecuteBatchPolicyWithInp
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
}
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
{
throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
else if(responseStatusCode == 500)
{
if(Utilities.IsContentTypeMatch("application/json", contentType))
Expand All @@ -572,6 +568,10 @@ public async Task<ExecuteBatchPolicyWithInputResponse> ExecuteBatchPolicyWithInp
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
}
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
{
throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
else
{
throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
Expand Down Expand Up @@ -647,10 +647,6 @@ public async Task<HealthResponse> HealthAsync(bool? bundles = null, bool? plugin
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
}
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
{
throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
else if(responseStatusCode == 500)
{
if(Utilities.IsContentTypeMatch("application/json", contentType))
Expand All @@ -663,6 +659,10 @@ public async Task<HealthResponse> HealthAsync(bool? bundles = null, bool? plugin
throw new SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
}
else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600)
{
throw new SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
}
else
{
throw new SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
Expand Down
2 changes: 1 addition & 1 deletion Styra/Opa/Styra.Opa.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<IsPackable>true</IsPackable>
<PackageId>Styra.Opa</PackageId>
<Version>1.0.1</Version>
<Version>1.0.2</Version>
<Authors>Styra</Authors>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
Expand Down

0 comments on commit b0c4e3d

Please sign in to comment.