Skip to content

Commit 082f7a0

Browse files
committed
ci: regenerated with OpenAPI Doc 0.4.0, Speakeasy CLI 1.183.2
1 parent ee0d31b commit 082f7a0

File tree

18 files changed

+129
-40
lines changed

18 files changed

+129
-40
lines changed

.speakeasy/gen.lock

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
lockVersion: 2.0.0
22
id: f73d2126-985b-4d69-88ee-b7c69254d8bf
33
management:
4-
docChecksum: c81aa4e807522359d28c09ee16d252ba
4+
docChecksum: 90bb5b2f880d4a86868122f9a6b08d40
55
docVersion: 0.4.0
66
speakeasyVersion: internal
7-
generationVersion: 2.258.0
8-
releaseVersion: 5.0.2
9-
configChecksum: e52374a18288e2218094e21db61361c9
7+
generationVersion: 2.262.2
8+
releaseVersion: 5.0.3
9+
configChecksum: 9a945d58feb93baa7c10cc9fa7ebeeb9
1010
repoURL: https://github.com/speakeasy-api/speakeasy-client-sdk-csharp.git
1111
repoSubDirectory: .
1212
published: true
1313
features:
1414
csharp:
1515
core: 3.3.2
1616
examples: 2.81.3
17-
globalSecurity: 2.83.0
17+
globalSecurity: 2.83.1
1818
globalServerURLs: 2.82.2
1919
globals: 2.81.2
2020
inputOutputModels: 2.83.0
@@ -125,6 +125,7 @@ generatedFiles:
125125
- SpeakeasySDK/Models/Shared/ValueChange.cs
126126
- SpeakeasySDK/Models/Shared/SchemaDiff.cs
127127
- SpeakeasySDK/Models/Shared/AccessDetails.cs
128+
- SpeakeasySDK/Models/Shared/AccountType.cs
128129
- SpeakeasySDK/Models/Shared/ApiKeyDetails.cs
129130
- SpeakeasySDK/Models/Shared/UnboundedRequest.cs
130131
- SpeakeasySDK/Models/Shared/BoundedRequest.cs
@@ -219,6 +220,7 @@ generatedFiles:
219220
- docs/Models/Shared/ValueChange.md
220221
- docs/Models/Shared/SchemaDiff.md
221222
- docs/Models/Shared/AccessDetails.md
223+
- docs/Models/Shared/AccountType.md
222224
- docs/Models/Shared/ApiKeyDetails.md
223225
- docs/Models/Shared/UnboundedRequest.md
224226
- docs/Models/Shared/BoundedRequest.md

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ This SDK supports the following security scheme globally:
128128

129129
| Name | Type | Scheme |
130130
| -------- | -------- | -------- |
131-
| `apiKey` | apiKey | API key |
131+
| `APIKey` | apiKey | API key |
132132

133133
You can set the security parameters through the `security` optional parameter when initializing the SDK client instance. For example:
134134
```csharp

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,4 +448,14 @@ Based on:
448448
### Generated
449449
- [csharp v5.0.2] .
450450
### Releases
451-
- [NuGet v5.0.2] https://www.nuget.org/packages/SpeakeasySDK/5.0.2 - .
451+
- [NuGet v5.0.2] https://www.nuget.org/packages/SpeakeasySDK/5.0.2 - .
452+
453+
## 2024-02-17 00:03:26
454+
### Changes
455+
Based on:
456+
- OpenAPI Doc 0.4.0 https://docs.speakeasyapi.dev/openapi.yaml
457+
- Speakeasy CLI 1.183.2 (2.262.2) https://github.com/speakeasy-api/speakeasy
458+
### Generated
459+
- [csharp v5.0.3] .
460+
### Releases
461+
- [NuGet v5.0.3] https://www.nuget.org/packages/SpeakeasySDK/5.0.3 - .

SpeakeasySDK/ApiEndpoints.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ public class ApiEndpoints: IApiEndpoints
9696
{
9797
public SDKConfig SDKConfiguration { get; private set; }
9898
private const string _language = "csharp";
99-
private const string _sdkVersion = "5.0.2";
100-
private const string _sdkGenVersion = "2.258.0";
99+
private const string _sdkVersion = "5.0.3";
100+
private const string _sdkGenVersion = "2.262.2";
101101
private const string _openapiDocVersion = "0.4.0";
102-
private const string _userAgent = "speakeasy-sdk/csharp 5.0.2 2.258.0 0.4.0 SpeakeasySDK";
102+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.3 2.262.2 0.4.0 SpeakeasySDK";
103103
private string _serverUrl = "";
104104
private ISpeakeasyHttpClient _defaultClient;
105105
private Func<Security>? _securitySource;

SpeakeasySDK/Apis.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ public class Apis: IApis
9292
{
9393
public SDKConfig SDKConfiguration { get; private set; }
9494
private const string _language = "csharp";
95-
private const string _sdkVersion = "5.0.2";
96-
private const string _sdkGenVersion = "2.258.0";
95+
private const string _sdkVersion = "5.0.3";
96+
private const string _sdkGenVersion = "2.262.2";
9797
private const string _openapiDocVersion = "0.4.0";
98-
private const string _userAgent = "speakeasy-sdk/csharp 5.0.2 2.258.0 0.4.0 SpeakeasySDK";
98+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.3 2.262.2 0.4.0 SpeakeasySDK";
9999
private string _serverUrl = "";
100100
private ISpeakeasyHttpClient _defaultClient;
101101
private Func<Security>? _securitySource;

SpeakeasySDK/Auth.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ public class Auth: IAuth
4747
{
4848
public SDKConfig SDKConfiguration { get; private set; }
4949
private const string _language = "csharp";
50-
private const string _sdkVersion = "5.0.2";
51-
private const string _sdkGenVersion = "2.258.0";
50+
private const string _sdkVersion = "5.0.3";
51+
private const string _sdkGenVersion = "2.262.2";
5252
private const string _openapiDocVersion = "0.4.0";
53-
private const string _userAgent = "speakeasy-sdk/csharp 5.0.2 2.258.0 0.4.0 SpeakeasySDK";
53+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.3 2.262.2 0.4.0 SpeakeasySDK";
5454
private string _serverUrl = "";
5555
private ISpeakeasyHttpClient _defaultClient;
5656
private Func<Security>? _securitySource;

SpeakeasySDK/Embeds.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ public class Embeds: IEmbeds
5454
{
5555
public SDKConfig SDKConfiguration { get; private set; }
5656
private const string _language = "csharp";
57-
private const string _sdkVersion = "5.0.2";
58-
private const string _sdkGenVersion = "2.258.0";
57+
private const string _sdkVersion = "5.0.3";
58+
private const string _sdkGenVersion = "2.262.2";
5959
private const string _openapiDocVersion = "0.4.0";
60-
private const string _userAgent = "speakeasy-sdk/csharp 5.0.2 2.258.0 0.4.0 SpeakeasySDK";
60+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.3 2.262.2 0.4.0 SpeakeasySDK";
6161
private string _serverUrl = "";
6262
private ISpeakeasyHttpClient _defaultClient;
6363
private Func<Security>? _securitySource;

SpeakeasySDK/Events.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ public class Events: IEvents
4242
{
4343
public SDKConfig SDKConfiguration { get; private set; }
4444
private const string _language = "csharp";
45-
private const string _sdkVersion = "5.0.2";
46-
private const string _sdkGenVersion = "2.258.0";
45+
private const string _sdkVersion = "5.0.3";
46+
private const string _sdkGenVersion = "2.262.2";
4747
private const string _openapiDocVersion = "0.4.0";
48-
private const string _userAgent = "speakeasy-sdk/csharp 5.0.2 2.258.0 0.4.0 SpeakeasySDK";
48+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.3 2.262.2 0.4.0 SpeakeasySDK";
4949
private string _serverUrl = "";
5050
private ISpeakeasyHttpClient _defaultClient;
5151
private Func<Security>? _securitySource;

SpeakeasySDK/Metadata.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ public class Metadata: IMetadata
4949
{
5050
public SDKConfig SDKConfiguration { get; private set; }
5151
private const string _language = "csharp";
52-
private const string _sdkVersion = "5.0.2";
53-
private const string _sdkGenVersion = "2.258.0";
52+
private const string _sdkVersion = "5.0.3";
53+
private const string _sdkGenVersion = "2.262.2";
5454
private const string _openapiDocVersion = "0.4.0";
55-
private const string _userAgent = "speakeasy-sdk/csharp 5.0.2 2.258.0 0.4.0 SpeakeasySDK";
55+
private const string _userAgent = "speakeasy-sdk/csharp 5.0.3 2.262.2 0.4.0 SpeakeasySDK";
5656
private string _serverUrl = "";
5757
private ISpeakeasyHttpClient _defaultClient;
5858
private Func<Security>? _securitySource;
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
2+
//------------------------------------------------------------------------------
3+
// <auto-generated>
4+
// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
5+
//
6+
// Changes to this file may cause incorrect behavior and will be lost when
7+
// the code is regenerated.
8+
// </auto-generated>
9+
//------------------------------------------------------------------------------
10+
#nullable enable
11+
namespace SpeakeasySDK.Models.Shared
12+
{
13+
using Newtonsoft.Json;
14+
using System;
15+
16+
public enum AccountType
17+
{
18+
[JsonProperty("free")]
19+
Free,
20+
[JsonProperty("scale-up")]
21+
ScaleUp,
22+
[JsonProperty("enterprise")]
23+
Enterprise,
24+
}
25+
26+
public static class AccountTypeExtension
27+
{
28+
public static string Value(this AccountType value)
29+
{
30+
return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString();
31+
}
32+
33+
public static AccountType ToEnum(this string value)
34+
{
35+
foreach(var field in typeof(AccountType).GetFields())
36+
{
37+
var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false);
38+
if (attributes.Length == 0)
39+
{
40+
continue;
41+
}
42+
43+
var attribute = attributes[0] as JsonPropertyAttribute;
44+
if (attribute != null && attribute.PropertyName == value)
45+
{
46+
var enumVal = field.GetValue(null);
47+
48+
if (enumVal is AccountType)
49+
{
50+
return (AccountType)enumVal;
51+
}
52+
}
53+
}
54+
55+
throw new Exception($"Unknown value {value} for enum AccountType");
56+
}
57+
}
58+
59+
}

0 commit comments

Comments
 (0)