Skip to content

Commit

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

* Update project file to version 1.3.5

---------

Co-authored-by: speakeasybot <[email protected]>
Co-authored-by: GitHub Actions <[email protected]>
  • Loading branch information
3 people committed Sep 4, 2024
1 parent ec3f159 commit 6b3d425
Show file tree
Hide file tree
Showing 9 changed files with 75 additions and 41 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: 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
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
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.3.4
version: 1.3.5
additionalDependencies: []
author: Styra
clientServerStatusCodesAsErrors: true
Expand Down
6 changes: 3 additions & 3 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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:
Expand Down
27 changes: 15 additions & 12 deletions NUGET.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ var sdk = new OpaApiClient(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");

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
```
Expand Down Expand Up @@ -101,11 +102,13 @@ var sdk = new OpaApiClient(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");
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)
Expand All @@ -123,7 +126,6 @@ catch (Exception ex)
// handle exception
}
}

```
<!-- End Error Handling [errors] -->

Expand Down Expand Up @@ -168,10 +170,11 @@ var sdk = new OpaApiClient(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");

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
```
Expand Down
44 changes: 32 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,23 @@ catch (OpaException) {

# OPA OpenAPI SDK (low-level)

<!-- Start Summary [summary] -->
## Summary

For more information about the API: [Enterprise OPA documentation](https://docs.styra.com/enterprise-opa)
<!-- End Summary [summary] -->

<!-- Start Table of Contents [toc] -->
## 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)
<!-- End Table of Contents [toc] -->

<!-- Start SDK Example Usage [usage] -->
## SDK Example Usage

Expand All @@ -141,10 +158,11 @@ var sdk = new OpaApiClient(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");

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
```
Expand Down Expand Up @@ -257,11 +275,13 @@ var sdk = new OpaApiClient(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");
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)
Expand All @@ -279,7 +299,6 @@ catch (Exception ex)
// handle exception
}
}

```
<!-- End Error Handling [errors] -->

Expand All @@ -305,10 +324,11 @@ var sdk = new OpaApiClient(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");

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
```
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 - .
- [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 - .
6 changes: 3 additions & 3 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.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;
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.3.4</Version>
<Version>1.3.5</Version>
<Authors>Styra</Authors>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
Expand Down
7 changes: 4 additions & 3 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ var sdk = new OpaApiClient(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");

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
```
Expand Down

0 comments on commit 6b3d425

Please sign in to comment.