Skip to content

Commit 6b3d425

Browse files
github-actions[bot]speakeasybotactions-user
authored
chore: 🐝 Update SDK - 1 - Generate 1.3.5 (#69)
* 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]>
1 parent ec3f159 commit 6b3d425

File tree

9 files changed

+75
-41
lines changed

9 files changed

+75
-41
lines changed

.speakeasy/gen.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ id: f1a8c321-72a7-41c5-8f5e-3d925aeafa1a
33
management:
44
docChecksum: 54d33facef3aa19f358d15ab44e34141
55
docVersion: 0.2.0
6-
speakeasyVersion: 1.376.1
7-
generationVersion: 2.402.5
8-
releaseVersion: 1.3.4
9-
configChecksum: c0dafebedf0ed5bc6d739ff599c0207f
6+
speakeasyVersion: 1.390.1
7+
generationVersion: 2.409.0
8+
releaseVersion: 1.3.5
9+
configChecksum: b92bf2ecb6758e2136783f47b7716616
1010
repoURL: https://github.com/StyraInc/opa-csharp.git
1111
repoSubDirectory: Styra/Opa/OpenApi/
1212
published: true
1313
features:
1414
csharp:
1515
additionalDependencies: 0.1.0
1616
constsAndDefaults: 0.0.1
17-
core: 3.9.14
17+
core: 3.9.16
1818
examples: 2.81.3
1919
flattening: 2.81.2
2020
globalSecurity: 2.83.6

.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.4
15+
version: 1.3.5
1616
additionalDependencies: []
1717
author: Styra
1818
clientServerStatusCodesAsErrors: true

.speakeasy/workflow.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
speakeasyVersion: 1.376.1
1+
speakeasyVersion: 1.390.1
22
sources:
33
openapi:
44
sourceNamespace: openapi
5-
sourceRevisionDigest: sha256:a34f0785a5ad43d43a75df8462f6227a5f13a9f15c23615d08c0dd5a79db22ae
5+
sourceRevisionDigest: sha256:a012c80888ddba9f1721a61c3965541749b4108b38a64fd9ec79b8559c6e966c
66
sourceBlobDigest: sha256:f76f9d1e8be466eef2d0e9612845ce19f9a5f507682e92d7a4355b3b13eaa921
77
tags:
88
- latest
@@ -11,7 +11,7 @@ targets:
1111
first-target:
1212
source: openapi
1313
sourceNamespace: openapi
14-
sourceRevisionDigest: sha256:a34f0785a5ad43d43a75df8462f6227a5f13a9f15c23615d08c0dd5a79db22ae
14+
sourceRevisionDigest: sha256:a012c80888ddba9f1721a61c3965541749b4108b38a64fd9ec79b8559c6e966c
1515
sourceBlobDigest: sha256:f76f9d1e8be466eef2d0e9612845ce19f9a5f507682e92d7a4355b3b13eaa921
1616
outLocation: /github/workspace/repo
1717
workflow:

NUGET.md

+15-12
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ var sdk = new OpaApiClient(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");
1616

1717
var res = await sdk.ExecuteDefaultPolicyWithInputAsync(
1818
input: Input.CreateNumber(
19-
8203.11D
20-
),
19+
8203.11D
20+
),
2121
pretty: false,
22-
acceptEncoding: Styra.Opa.OpenApi.Models.Components.GzipAcceptEncoding.Gzip);
22+
acceptEncoding: Styra.Opa.OpenApi.Models.Components.GzipAcceptEncoding.Gzip
23+
);
2324

2425
// handle response
2526
```
@@ -101,11 +102,13 @@ var sdk = new OpaApiClient(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");
101102
try
102103
{
103104
var res = await sdk.ExecuteDefaultPolicyWithInputAsync(
104-
input: Input.CreateNumber(
105-
8203.11D
106-
),
107-
pretty: false,
108-
acceptEncoding: Styra.Opa.OpenApi.Models.Components.GzipAcceptEncoding.Gzip);
105+
input: Input.CreateNumber(
106+
8203.11D
107+
),
108+
pretty: false,
109+
acceptEncoding: Styra.Opa.OpenApi.Models.Components.GzipAcceptEncoding.Gzip
110+
);
111+
109112
// handle response
110113
}
111114
catch (Exception ex)
@@ -123,7 +126,6 @@ catch (Exception ex)
123126
// handle exception
124127
}
125128
}
126-
127129
```
128130
<!-- End Error Handling [errors] -->
129131

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

169171
var res = await sdk.ExecuteDefaultPolicyWithInputAsync(
170172
input: Input.CreateNumber(
171-
8203.11D
172-
),
173+
8203.11D
174+
),
173175
pretty: false,
174-
acceptEncoding: Styra.Opa.OpenApi.Models.Components.GzipAcceptEncoding.Gzip);
176+
acceptEncoding: Styra.Opa.OpenApi.Models.Components.GzipAcceptEncoding.Gzip
177+
);
175178

176179
// handle response
177180
```

README.md

+32-12
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,23 @@ catch (OpaException) {
126126

127127
# OPA OpenAPI SDK (low-level)
128128

129+
<!-- Start Summary [summary] -->
130+
## Summary
131+
132+
For more information about the API: [Enterprise OPA documentation](https://docs.styra.com/enterprise-opa)
133+
<!-- End Summary [summary] -->
134+
135+
<!-- Start Table of Contents [toc] -->
136+
## Table of Contents
137+
138+
* [SDK Installation](#sdk-installation)
139+
* [SDK Example Usage](#sdk-example-usage)
140+
* [Available Resources and Operations](#available-resources-and-operations)
141+
* [Error Handling](#error-handling)
142+
* [Server Selection](#server-selection)
143+
* [Authentication](#authentication)
144+
<!-- End Table of Contents [toc] -->
145+
129146
<!-- Start SDK Example Usage [usage] -->
130147
## SDK Example Usage
131148

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

142159
var res = await sdk.ExecuteDefaultPolicyWithInputAsync(
143160
input: Input.CreateNumber(
144-
8203.11D
145-
),
161+
8203.11D
162+
),
146163
pretty: false,
147-
acceptEncoding: Styra.Opa.OpenApi.Models.Components.GzipAcceptEncoding.Gzip);
164+
acceptEncoding: Styra.Opa.OpenApi.Models.Components.GzipAcceptEncoding.Gzip
165+
);
148166

149167
// handle response
150168
```
@@ -257,11 +275,13 @@ var sdk = new OpaApiClient(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");
257275
try
258276
{
259277
var res = await sdk.ExecuteDefaultPolicyWithInputAsync(
260-
input: Input.CreateNumber(
261-
8203.11D
262-
),
263-
pretty: false,
264-
acceptEncoding: Styra.Opa.OpenApi.Models.Components.GzipAcceptEncoding.Gzip);
278+
input: Input.CreateNumber(
279+
8203.11D
280+
),
281+
pretty: false,
282+
acceptEncoding: Styra.Opa.OpenApi.Models.Components.GzipAcceptEncoding.Gzip
283+
);
284+
265285
// handle response
266286
}
267287
catch (Exception ex)
@@ -279,7 +299,6 @@ catch (Exception ex)
279299
// handle exception
280300
}
281301
}
282-
283302
```
284303
<!-- End Error Handling [errors] -->
285304

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

306325
var res = await sdk.ExecuteDefaultPolicyWithInputAsync(
307326
input: Input.CreateNumber(
308-
8203.11D
309-
),
327+
8203.11D
328+
),
310329
pretty: false,
311-
acceptEncoding: Styra.Opa.OpenApi.Models.Components.GzipAcceptEncoding.Gzip);
330+
acceptEncoding: Styra.Opa.OpenApi.Models.Components.GzipAcceptEncoding.Gzip
331+
);
312332

313333
// handle response
314334
```

RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -265,4 +265,14 @@ Based on:
265265
### Generated
266266
- [csharp v1.3.4] .
267267
### Releases
268-
- [NuGet v1.3.4] https://www.nuget.org/packages/Styra.Opa.OpenApi/1.3.4 - .
268+
- [NuGet v1.3.4] https://www.nuget.org/packages/Styra.Opa.OpenApi/1.3.4 - .
269+
270+
## 2024-09-04 00:03:42
271+
### Changes
272+
Based on:
273+
- OpenAPI Doc
274+
- Speakeasy CLI 1.390.1 (2.409.0) https://github.com/speakeasy-api/speakeasy
275+
### Generated
276+
- [csharp v1.3.5] .
277+
### Releases
278+
- [NuGet v1.3.5] https://www.nuget.org/packages/Styra.Opa.OpenApi/1.3.5 - .

Styra/Opa/OpenApi/OpaApiClient.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ public class OpaApiClient: IOpaApiClient
103103
public SDKConfig SDKConfiguration { get; private set; }
104104

105105
private const string _language = "csharp";
106-
private const string _sdkVersion = "1.3.4";
107-
private const string _sdkGenVersion = "2.402.5";
106+
private const string _sdkVersion = "1.3.5";
107+
private const string _sdkGenVersion = "2.409.0";
108108
private const string _openapiDocVersion = "0.2.0";
109-
private const string _userAgent = "speakeasy-sdk/csharp 1.3.4 2.402.5 0.2.0 Styra.Opa.OpenApi";
109+
private const string _userAgent = "speakeasy-sdk/csharp 1.3.5 2.409.0 0.2.0 Styra.Opa.OpenApi";
110110
private string _serverUrl = "";
111111
private int _serverIndex = 0;
112112
private ISpeakeasyHttpClient _client;

Styra/Opa/Styra.Opa.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<IsPackable>true</IsPackable>
44
<PackageId>Styra.Opa</PackageId>
5-
<Version>1.3.4</Version>
5+
<Version>1.3.5</Version>
66
<Authors>Styra</Authors>
77
<TargetFramework>net6.0</TargetFramework>
88
<Nullable>enable</Nullable>

USAGE.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ var sdk = new OpaApiClient(bearerAuth: "<YOUR_BEARER_TOKEN_HERE>");
99

1010
var res = await sdk.ExecuteDefaultPolicyWithInputAsync(
1111
input: Input.CreateNumber(
12-
8203.11D
13-
),
12+
8203.11D
13+
),
1414
pretty: false,
15-
acceptEncoding: Styra.Opa.OpenApi.Models.Components.GzipAcceptEncoding.Gzip);
15+
acceptEncoding: Styra.Opa.OpenApi.Models.Components.GzipAcceptEncoding.Gzip
16+
);
1617

1718
// handle response
1819
```

0 commit comments

Comments
 (0)