Skip to content

Commit 0a92be4

Browse files
committed
ci: regenerated with OpenAPI Doc 0.4.0, Speakeasy CLI 1.231.1
1 parent f8c91f5 commit 0a92be4

File tree

107 files changed

+1350
-317
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+1350
-317
lines changed

.speakeasy/gen.lock

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ id: f73d2126-985b-4d69-88ee-b7c69254d8bf
33
management:
44
docChecksum: 17e2e733dfd588a7103c3c70e91b24b5
55
docVersion: 0.4.0
6-
speakeasyVersion: 1.227.0
7-
generationVersion: 2.291.0
8-
releaseVersion: 5.2.0
9-
configChecksum: 59f3e199781cb1777c44786ac85637b0
6+
speakeasyVersion: 1.231.1
7+
generationVersion: 2.295.1
8+
releaseVersion: 5.3.0
9+
configChecksum: 1425c39d2e4c4dccb363cc440de60bb9
1010
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-csharp.git
1111
repoSubDirectory: .
1212
published: true
1313
features:
1414
csharp:
15-
core: 3.4.3
15+
core: 3.6.0
1616
examples: 2.81.3
1717
globalSecurity: 2.83.4
1818
globalServerURLs: 2.82.3
19-
globals: 2.82.0
19+
globals: 2.82.1
2020
inputOutputModels: 2.83.0
2121
serverIDs: 2.82.1
2222
generatedFiles:
@@ -31,6 +31,7 @@ generatedFiles:
3131
- SpeakeasySDK/Events.cs
3232
- SpeakeasySDK/Speakeasy.cs
3333
- global.json
34+
- SpeakeasySDK.sln
3435
- SpeakeasySDK/Utils/AnyDeserializer.cs
3536
- SpeakeasySDK/Utils/BigIntStrConverter.cs
3637
- SpeakeasySDK/Utils/DecimalStrConverter.cs
@@ -39,13 +40,14 @@ generatedFiles:
3940
- SpeakeasySDK/Utils/HeaderSerializer.cs
4041
- SpeakeasySDK/Utils/IsoDateTimeSerializer.cs
4142
- SpeakeasySDK/Utils/RequestBodySerializer.cs
43+
- SpeakeasySDK/Utils/ResponseBodyDeserializer.cs
4244
- SpeakeasySDK/Utils/SecuritySerializer.cs
4345
- SpeakeasySDK/Utils/SpeakeasyHttpClient.cs
4446
- SpeakeasySDK/Utils/SpeakeasyMetadata.cs
4547
- SpeakeasySDK/Utils/URLBuilder.cs
4648
- SpeakeasySDK/Utils/Utilities.cs
4749
- SpeakeasySDK/SpeakeasySDK.csproj
48-
- SpeakeasySDK.sln
50+
- SpeakeasySDK/Models/Errors/SDKException.cs
4951
- SpeakeasySDK/Models/Operations/DeleteApiRequest.cs
5052
- SpeakeasySDK/Models/Operations/DeleteApiResponse.cs
5153
- SpeakeasySDK/Models/Operations/GenerateOpenApiSpecRequest.cs
@@ -124,7 +126,7 @@ generatedFiles:
124126
- SpeakeasySDK/Models/Operations/GetWorkspaceTargetsResponse.cs
125127
- SpeakeasySDK/Models/Operations/PostWorkspaceEventsRequest.cs
126128
- SpeakeasySDK/Models/Operations/PostWorkspaceEventsResponse.cs
127-
- SpeakeasySDK/Models/Shared/Error.cs
129+
- SpeakeasySDK/Models/Errors/Error.cs
128130
- SpeakeasySDK/Models/Shared/GenerateOpenApiSpecDiff.cs
129131
- SpeakeasySDK/Models/Shared/Api.cs
130132
- SpeakeasySDK/Models/Shared/ApiInput.cs
@@ -236,7 +238,7 @@ generatedFiles:
236238
- docs/Models/Operations/GetWorkspaceTargetsResponse.md
237239
- docs/Models/Operations/PostWorkspaceEventsRequest.md
238240
- docs/Models/Operations/PostWorkspaceEventsResponse.md
239-
- docs/Models/Shared/Error.md
241+
- docs/Models/Errors/Error.md
240242
- docs/Models/Shared/GenerateOpenApiSpecDiff.md
241243
- docs/Models/Shared/Api.md
242244
- docs/Models/Shared/ApiInput.md

README.md

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,6 @@ var res = await sdk.Apis.GetApisAsync(req);
110110
<!-- Start Server Selection [server] -->
111111
## Server Selection
112112

113-
## Server Selection
114-
115113
### Select Server by Name
116114

117115
You can override the default server globally by passing a server name to the `server: string` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the names associated with the available servers:
@@ -202,6 +200,53 @@ var res = await sdk.Events.GetWorkspaceEventsAsync(req);
202200
```
203201
<!-- End Global Parameters [global-parameters] -->
204202

203+
<!-- Start Error Handling [errors] -->
204+
## Error Handling
205+
206+
Handling errors in this SDK should largely match your expectations. All operations return a response object or thow an exception. If Error objects are specified in your OpenAPI Spec, the SDK will raise the appropriate type.
207+
208+
| Error Object | Status Code | Content Type |
209+
| --------------------------------------- | --------------------------------------- | --------------------------------------- |
210+
| SpeakeasySDK.Models.Errors.Error | 5XX | application/json |
211+
| SpeakeasySDK.Models.Errors.SDKException | 4xx-5xx | */* |
212+
213+
### Example
214+
215+
```csharp
216+
using SpeakeasySDK;
217+
using SpeakeasySDK.Models.Shared;
218+
using System;
219+
using SpeakeasySDK.Models.Errors;
220+
using SpeakeasySDK.Models.Operations;
221+
222+
var sdk = new Speakeasy(
223+
security: new Security() {
224+
APIKey = "<YOUR_API_KEY_HERE>",
225+
},
226+
workspaceID: "<value>");
227+
228+
GetWorkspaceEventsRequest req = new GetWorkspaceEventsRequest() {};
229+
230+
try
231+
{
232+
var res = await sdk.Events.GetWorkspaceEventsAsync(req);
233+
// handle response
234+
}
235+
catch (Exception ex)
236+
{
237+
if (ex is Error)
238+
{
239+
// handle exception
240+
}
241+
else if (ex is SpeakeasySDK.Models.Errors.SDKException)
242+
{
243+
// handle exception
244+
}
245+
}
246+
247+
```
248+
<!-- End Error Handling [errors] -->
249+
205250
<!-- Placeholder for Future Speakeasy SDK Sections -->
206251

207252

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,4 +498,14 @@ Based on:
498498
### Generated
499499
- [csharp v5.2.0] .
500500
### Releases
501-
- [NuGet v5.2.0] https://www.nuget.org/packages/SpeakeasySDK/5.2.0 - .
501+
- [NuGet v5.2.0] https://www.nuget.org/packages/SpeakeasySDK/5.2.0 - .
502+
503+
## 2024-04-02 00:03:27
504+
### Changes
505+
Based on:
506+
- OpenAPI Doc 0.4.0 https://docs.speakeasyapi.dev/openapi.yaml
507+
- Speakeasy CLI 1.231.1 (2.295.1) https://github.com/speakeasy-api/speakeasy
508+
### Generated
509+
- [csharp v5.3.0] .
510+
### Releases
511+
- [NuGet v5.3.0] https://www.nuget.org/packages/SpeakeasySDK/5.3.0 - .

0 commit comments

Comments
 (0)