From 6b3d425403ea2c40630c5d59175e5d8f022ef68e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 4 Sep 2024 16:57:07 -0400 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=90=9D=20Update=20SDK=20-=201=20?= =?UTF-8?q?-=20Generate=201.3.5=20(#69)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.390.1 * Update project file to version 1.3.5 --------- Co-authored-by: speakeasybot Co-authored-by: GitHub Actions --- .speakeasy/gen.lock | 10 +++---- .speakeasy/gen.yaml | 2 +- .speakeasy/workflow.lock | 6 ++--- NUGET.md | 27 ++++++++++--------- README.md | 44 ++++++++++++++++++++++--------- RELEASES.md | 12 ++++++++- Styra/Opa/OpenApi/OpaApiClient.cs | 6 ++--- Styra/Opa/Styra.Opa.csproj | 2 +- USAGE.md | 7 ++--- 9 files changed, 75 insertions(+), 41 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index e019d2a..c15a6f1 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -3,10 +3,10 @@ id: f1a8c321-72a7-41c5-8f5e-3d925aeafa1a management: docChecksum: 54d33facef3aa19f358d15ab44e34141 docVersion: 0.2.0 - speakeasyVersion: 1.376.1 - generationVersion: 2.402.5 - releaseVersion: 1.3.4 - configChecksum: c0dafebedf0ed5bc6d739ff599c0207f + speakeasyVersion: 1.390.1 + generationVersion: 2.409.0 + releaseVersion: 1.3.5 + configChecksum: b92bf2ecb6758e2136783f47b7716616 repoURL: https://github.com/StyraInc/opa-csharp.git repoSubDirectory: Styra/Opa/OpenApi/ published: true @@ -14,7 +14,7 @@ features: csharp: additionalDependencies: 0.1.0 constsAndDefaults: 0.0.1 - core: 3.9.14 + core: 3.9.16 examples: 2.81.3 flattening: 2.81.2 globalSecurity: 2.83.6 diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 2587899..bc76302 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false csharp: - version: 1.3.4 + version: 1.3.5 additionalDependencies: [] author: Styra clientServerStatusCodesAsErrors: true diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 4c678c9..8c30c5d 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,8 +1,8 @@ -speakeasyVersion: 1.376.1 +speakeasyVersion: 1.390.1 sources: openapi: sourceNamespace: openapi - sourceRevisionDigest: sha256:a34f0785a5ad43d43a75df8462f6227a5f13a9f15c23615d08c0dd5a79db22ae + sourceRevisionDigest: sha256:a012c80888ddba9f1721a61c3965541749b4108b38a64fd9ec79b8559c6e966c sourceBlobDigest: sha256:f76f9d1e8be466eef2d0e9612845ce19f9a5f507682e92d7a4355b3b13eaa921 tags: - latest @@ -11,7 +11,7 @@ targets: first-target: source: openapi sourceNamespace: openapi - sourceRevisionDigest: sha256:a34f0785a5ad43d43a75df8462f6227a5f13a9f15c23615d08c0dd5a79db22ae + sourceRevisionDigest: sha256:a012c80888ddba9f1721a61c3965541749b4108b38a64fd9ec79b8559c6e966c sourceBlobDigest: sha256:f76f9d1e8be466eef2d0e9612845ce19f9a5f507682e92d7a4355b3b13eaa921 outLocation: /github/workspace/repo workflow: diff --git a/NUGET.md b/NUGET.md index 359c929..db3950d 100644 --- a/NUGET.md +++ b/NUGET.md @@ -16,10 +16,11 @@ var sdk = new OpaApiClient(bearerAuth: ""); var res = await sdk.ExecuteDefaultPolicyWithInputAsync( input: Input.CreateNumber( -8203.11D -), + 8203.11D + ), pretty: false, - acceptEncoding: Styra.Opa.OpenApi.Models.Components.GzipAcceptEncoding.Gzip); + acceptEncoding: Styra.Opa.OpenApi.Models.Components.GzipAcceptEncoding.Gzip +); // handle response ``` @@ -101,11 +102,13 @@ var sdk = new OpaApiClient(bearerAuth: ""); try { var res = await sdk.ExecuteDefaultPolicyWithInputAsync( - input: Input.CreateNumber( -8203.11D -), - pretty: false, - acceptEncoding: Styra.Opa.OpenApi.Models.Components.GzipAcceptEncoding.Gzip); + input: Input.CreateNumber( + 8203.11D + ), + pretty: false, + acceptEncoding: Styra.Opa.OpenApi.Models.Components.GzipAcceptEncoding.Gzip + ); + // handle response } catch (Exception ex) @@ -123,7 +126,6 @@ catch (Exception ex) // handle exception } } - ``` @@ -168,10 +170,11 @@ var sdk = new OpaApiClient(bearerAuth: ""); var res = await sdk.ExecuteDefaultPolicyWithInputAsync( input: Input.CreateNumber( -8203.11D -), + 8203.11D + ), pretty: false, - acceptEncoding: Styra.Opa.OpenApi.Models.Components.GzipAcceptEncoding.Gzip); + acceptEncoding: Styra.Opa.OpenApi.Models.Components.GzipAcceptEncoding.Gzip +); // handle response ``` diff --git a/README.md b/README.md index 3c0e746..5f160bc 100644 --- a/README.md +++ b/README.md @@ -126,6 +126,23 @@ catch (OpaException) { # OPA OpenAPI SDK (low-level) + +## Summary + +For more information about the API: [Enterprise OPA documentation](https://docs.styra.com/enterprise-opa) + + + +## Table of Contents + +* [SDK Installation](#sdk-installation) +* [SDK Example Usage](#sdk-example-usage) +* [Available Resources and Operations](#available-resources-and-operations) +* [Error Handling](#error-handling) +* [Server Selection](#server-selection) +* [Authentication](#authentication) + + ## SDK Example Usage @@ -141,10 +158,11 @@ var sdk = new OpaApiClient(bearerAuth: ""); var res = await sdk.ExecuteDefaultPolicyWithInputAsync( input: Input.CreateNumber( -8203.11D -), + 8203.11D + ), pretty: false, - acceptEncoding: Styra.Opa.OpenApi.Models.Components.GzipAcceptEncoding.Gzip); + acceptEncoding: Styra.Opa.OpenApi.Models.Components.GzipAcceptEncoding.Gzip +); // handle response ``` @@ -257,11 +275,13 @@ var sdk = new OpaApiClient(bearerAuth: ""); try { var res = await sdk.ExecuteDefaultPolicyWithInputAsync( - input: Input.CreateNumber( -8203.11D -), - pretty: false, - acceptEncoding: Styra.Opa.OpenApi.Models.Components.GzipAcceptEncoding.Gzip); + input: Input.CreateNumber( + 8203.11D + ), + pretty: false, + acceptEncoding: Styra.Opa.OpenApi.Models.Components.GzipAcceptEncoding.Gzip + ); + // handle response } catch (Exception ex) @@ -279,7 +299,6 @@ catch (Exception ex) // handle exception } } - ``` @@ -305,10 +324,11 @@ var sdk = new OpaApiClient(bearerAuth: ""); var res = await sdk.ExecuteDefaultPolicyWithInputAsync( input: Input.CreateNumber( -8203.11D -), + 8203.11D + ), pretty: false, - acceptEncoding: Styra.Opa.OpenApi.Models.Components.GzipAcceptEncoding.Gzip); + acceptEncoding: Styra.Opa.OpenApi.Models.Components.GzipAcceptEncoding.Gzip +); // handle response ``` diff --git a/RELEASES.md b/RELEASES.md index 8a8e6e4..087d575 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -265,4 +265,14 @@ Based on: ### Generated - [csharp v1.3.4] . ### Releases -- [NuGet v1.3.4] https://www.nuget.org/packages/Styra.Opa.OpenApi/1.3.4 - . \ No newline at end of file +- [NuGet v1.3.4] https://www.nuget.org/packages/Styra.Opa.OpenApi/1.3.4 - . + +## 2024-09-04 00:03:42 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.390.1 (2.409.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [csharp v1.3.5] . +### Releases +- [NuGet v1.3.5] https://www.nuget.org/packages/Styra.Opa.OpenApi/1.3.5 - . \ No newline at end of file diff --git a/Styra/Opa/OpenApi/OpaApiClient.cs b/Styra/Opa/OpenApi/OpaApiClient.cs index f6642d3..cbf053f 100644 --- a/Styra/Opa/OpenApi/OpaApiClient.cs +++ b/Styra/Opa/OpenApi/OpaApiClient.cs @@ -103,10 +103,10 @@ public class OpaApiClient: IOpaApiClient public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "1.3.4"; - private const string _sdkGenVersion = "2.402.5"; + private const string _sdkVersion = "1.3.5"; + private const string _sdkGenVersion = "2.409.0"; private const string _openapiDocVersion = "0.2.0"; - private const string _userAgent = "speakeasy-sdk/csharp 1.3.4 2.402.5 0.2.0 Styra.Opa.OpenApi"; + private const string _userAgent = "speakeasy-sdk/csharp 1.3.5 2.409.0 0.2.0 Styra.Opa.OpenApi"; private string _serverUrl = ""; private int _serverIndex = 0; private ISpeakeasyHttpClient _client; diff --git a/Styra/Opa/Styra.Opa.csproj b/Styra/Opa/Styra.Opa.csproj index 9b10f08..4640c3b 100644 --- a/Styra/Opa/Styra.Opa.csproj +++ b/Styra/Opa/Styra.Opa.csproj @@ -2,7 +2,7 @@ true Styra.Opa - 1.3.4 + 1.3.5 Styra net6.0 enable diff --git a/USAGE.md b/USAGE.md index 665ba82..352e9bb 100644 --- a/USAGE.md +++ b/USAGE.md @@ -9,10 +9,11 @@ var sdk = new OpaApiClient(bearerAuth: ""); var res = await sdk.ExecuteDefaultPolicyWithInputAsync( input: Input.CreateNumber( -8203.11D -), + 8203.11D + ), pretty: false, - acceptEncoding: Styra.Opa.OpenApi.Models.Components.GzipAcceptEncoding.Gzip); + acceptEncoding: Styra.Opa.OpenApi.Models.Components.GzipAcceptEncoding.Gzip +); // handle response ```