Skip to content

Commit 8bccf04

Browse files
committed
ci: regenerated with OpenAPI Doc 0.3.0, Speakeay CLI 1.86.0
1 parent a25f3e0 commit 8bccf04

File tree

109 files changed

+674
-921
lines changed

Some content is hidden

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

109 files changed

+674
-921
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ var res = await sdk.Apis.GetApisAsync(new GetApisRequest() {
4747

4848
* [ValidateApiKey](docs/sdks/speakeasy/README.md#validateapikey) - Validate the current api key.
4949

50-
### [apiEndpoints](docs/sdks/apiendpoints/README.md)
50+
### [ApiEndpoints](docs/sdks/apiendpoints/README.md)
5151

5252
* [DeleteApiEndpoint](docs/sdks/apiendpoints/README.md#deleteapiendpoint) - Delete an ApiEndpoint.
5353
* [FindApiEndpoint](docs/sdks/apiendpoints/README.md#findapiendpoint) - Find an ApiEndpoint via its displayName.
@@ -58,7 +58,7 @@ var res = await sdk.Apis.GetApisAsync(new GetApisRequest() {
5858
* [GetApiEndpoint](docs/sdks/apiendpoints/README.md#getapiendpoint) - Get an ApiEndpoint.
5959
* [UpsertApiEndpoint](docs/sdks/apiendpoints/README.md#upsertapiendpoint) - Upsert an ApiEndpoint.
6060

61-
### [apis](docs/sdks/apis/README.md)
61+
### [Apis](docs/sdks/apis/README.md)
6262

6363
* [DeleteApi](docs/sdks/apis/README.md#deleteapi) - Delete an Api.
6464
* [GenerateOpenApiSpec](docs/sdks/apis/README.md#generateopenapispec) - Generate an OpenAPI specification for a particular Api.
@@ -67,31 +67,31 @@ var res = await sdk.Apis.GetApisAsync(new GetApisRequest() {
6767
* [GetApis](docs/sdks/apis/README.md#getapis) - Get a list of Apis for a given workspace
6868
* [UpsertApi](docs/sdks/apis/README.md#upsertapi) - Upsert an Api
6969

70-
### [embeds](docs/sdks/embeds/README.md)
70+
### [Embeds](docs/sdks/embeds/README.md)
7171

7272
* [GetEmbedAccessToken](docs/sdks/embeds/README.md#getembedaccesstoken) - Get an embed access token for the current workspace.
7373
* [GetValidEmbedAccessTokens](docs/sdks/embeds/README.md#getvalidembedaccesstokens) - Get all valid embed access tokens for the current workspace.
7474
* [RevokeEmbedAccessToken](docs/sdks/embeds/README.md#revokeembedaccesstoken) - Revoke an embed access EmbedToken.
7575

76-
### [metadata](docs/sdks/metadata/README.md)
76+
### [Metadata](docs/sdks/metadata/README.md)
7777

7878
* [DeleteVersionMetadata](docs/sdks/metadata/README.md#deleteversionmetadata) - Delete metadata for a particular apiID and versionID.
7979
* [GetVersionMetadata](docs/sdks/metadata/README.md#getversionmetadata) - Get all metadata for a particular apiID and versionID.
8080
* [InsertVersionMetadata](docs/sdks/metadata/README.md#insertversionmetadata) - Insert metadata for a particular apiID and versionID.
8181

82-
### [plugins](docs/sdks/plugins/README.md)
82+
### [Plugins](docs/sdks/plugins/README.md)
8383

8484
* [GetPlugins](docs/sdks/plugins/README.md#getplugins) - Get all plugins for the current workspace.
8585
* [RunPlugin](docs/sdks/plugins/README.md#runplugin) - Run a plugin
8686
* [UpsertPlugin](docs/sdks/plugins/README.md#upsertplugin) - Upsert a plugin
8787

88-
### [requests](docs/sdks/requests/README.md)
88+
### [Requests](docs/sdks/requests/README.md)
8989

9090
* [GenerateRequestPostmanCollection](docs/sdks/requests/README.md#generaterequestpostmancollection) - Generate a Postman collection for a particular request.
9191
* [GetRequestFromEventLog](docs/sdks/requests/README.md#getrequestfromeventlog) - Get information about a particular request.
9292
* [QueryEventLog](docs/sdks/requests/README.md#queryeventlog) - Query the event log to retrieve a list of requests.
9393

94-
### [schemas](docs/sdks/schemas/README.md)
94+
### [Schemas](docs/sdks/schemas/README.md)
9595

9696
* [DeleteSchema](docs/sdks/schemas/README.md#deleteschema) - Delete a particular schema revision for an Api.
9797
* [DownloadSchema](docs/sdks/schemas/README.md#downloadschema) - Download the latest schema for a particular apiID.

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,4 +198,14 @@ Based on:
198198
### Generated
199199
- [csharp v1.13.5] .
200200
### Releases
201-
- [NuGet v1.13.5] https://www.nuget.org/packages/SpeakeasySDK/1.13.5 - .
201+
- [NuGet v1.13.5] https://www.nuget.org/packages/SpeakeasySDK/1.13.5 - .
202+
203+
## 2023-09-16 00:03:05
204+
### Changes
205+
Based on:
206+
- OpenAPI Doc 0.3.0 https://docs.speakeasyapi.dev/openapi.yaml
207+
- Speakeasy CLI 1.86.0 (2.115.2) https://github.com/speakeasy-api/speakeasy
208+
### Generated
209+
- [csharp v1.13.6] .
210+
### Releases
211+
- [NuGet v1.13.6] https://www.nuget.org/packages/SpeakeasySDK/1.13.6 - .

Speakeasy/ApiEndpoints.cs

Lines changed: 59 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,81 @@ namespace Speakeasy
2020
using System.Threading.Tasks;
2121
using System;
2222

23+
/// <summary>
24+
/// REST APIs for managing ApiEndpoint entities
25+
/// </summary>
2326
public interface IApiEndpointsSDK
2427
{
28+
29+
/// <summary>
30+
/// Delete an ApiEndpoint.
31+
///
32+
/// <remarks>
33+
/// Delete an ApiEndpoint. This will also delete all associated Request Logs (if using a Postgres datastore).
34+
/// </remarks>
35+
/// </summary>
2536
Task<DeleteApiEndpointResponse> DeleteApiEndpointAsync(DeleteApiEndpointRequest? request = null);
37+
38+
/// <summary>
39+
/// Find an ApiEndpoint via its displayName.
40+
///
41+
/// <remarks>
42+
/// Find an ApiEndpoint via its displayName (set by operationId from a registered OpenAPI schema).<br/>
43+
/// This is useful for finding the ID of an ApiEndpoint to use in the /v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID} endpoints.
44+
/// </remarks>
45+
/// </summary>
2646
Task<FindApiEndpointResponse> FindApiEndpointAsync(FindApiEndpointRequest? request = null);
47+
48+
/// <summary>
49+
/// Generate an OpenAPI specification for a particular ApiEndpoint.
50+
///
51+
/// <remarks>
52+
/// This endpoint will generate a new operation in any registered OpenAPI document if the operation does not already exist in the document.<br/>
53+
/// Returns the original document and the newly generated document allowing a diff to be performed to see what has changed.
54+
/// </remarks>
55+
/// </summary>
2756
Task<GenerateOpenApiSpecForApiEndpointResponse> GenerateOpenApiSpecForApiEndpointAsync(GenerateOpenApiSpecForApiEndpointRequest? request = null);
57+
58+
/// <summary>
59+
/// Generate a Postman collection for a particular ApiEndpoint.
60+
///
61+
/// <remarks>
62+
/// Generates a postman collection that allows the endpoint to be called from postman variables produced for any path/query/header parameters included in the OpenAPI document.
63+
/// </remarks>
64+
/// </summary>
2865
Task<GeneratePostmanCollectionForApiEndpointResponse> GeneratePostmanCollectionForApiEndpointAsync(GeneratePostmanCollectionForApiEndpointRequest? request = null);
66+
67+
/// <summary>
68+
/// Get all Api endpoints for a particular apiID.
69+
/// </summary>
2970
Task<GetAllApiEndpointsResponse> GetAllApiEndpointsAsync(GetAllApiEndpointsRequest? request = null);
71+
72+
/// <summary>
73+
/// Get all ApiEndpoints for a particular apiID and versionID.
74+
/// </summary>
3075
Task<GetAllForVersionApiEndpointsResponse> GetAllForVersionApiEndpointsAsync(GetAllForVersionApiEndpointsRequest? request = null);
76+
77+
/// <summary>
78+
/// Get an ApiEndpoint.
79+
/// </summary>
3180
Task<GetApiEndpointResponse> GetApiEndpointAsync(GetApiEndpointRequest? request = null);
81+
82+
/// <summary>
83+
/// Upsert an ApiEndpoint.
84+
///
85+
/// <remarks>
86+
/// Upsert an ApiEndpoint. If the ApiEndpoint does not exist it will be created, otherwise it will be updated.
87+
/// </remarks>
88+
/// </summary>
3289
Task<UpsertApiEndpointResponse> UpsertApiEndpointAsync(UpsertApiEndpointRequest request);
3390
}
3491

3592
public class ApiEndpointsSDK: IApiEndpointsSDK
3693
{
3794
public SDKConfig Config { get; private set; }
3895
private const string _language = "csharp";
39-
private const string _sdkVersion = "1.13.5";
40-
private const string _sdkGenVersion = "2.107.0";
96+
private const string _sdkVersion = "1.13.6";
97+
private const string _sdkGenVersion = "2.115.2";
4198
private const string _openapiDocVersion = "0.3.0";
4299
private string _serverUrl = "";
43100
private ISpeakeasyHttpClient _defaultClient;
@@ -52,13 +109,6 @@ public ApiEndpointsSDK(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient
52109
}
53110

54111

55-
/// <summary>
56-
/// Delete an ApiEndpoint.
57-
///
58-
/// <remarks>
59-
/// Delete an ApiEndpoint. This will also delete all associated Request Logs (if using a Postgres datastore).
60-
/// </remarks>
61-
/// </summary>
62112
public async Task<DeleteApiEndpointResponse> DeleteApiEndpointAsync(DeleteApiEndpointRequest? request = null)
63113
{
64114
string baseUrl = _serverUrl;
@@ -95,14 +145,6 @@ public async Task<DeleteApiEndpointResponse> DeleteApiEndpointAsync(DeleteApiEnd
95145
}
96146

97147

98-
/// <summary>
99-
/// Find an ApiEndpoint via its displayName.
100-
///
101-
/// <remarks>
102-
/// Find an ApiEndpoint via its displayName (set by operationId from a registered OpenAPI schema).
103-
/// This is useful for finding the ID of an ApiEndpoint to use in the /v1/apis/{apiID}/version/{versionID}/api_endpoints/{apiEndpointID} endpoints.
104-
/// </remarks>
105-
/// </summary>
106148
public async Task<FindApiEndpointResponse> FindApiEndpointAsync(FindApiEndpointRequest? request = null)
107149
{
108150
string baseUrl = _serverUrl;
@@ -143,14 +185,6 @@ public async Task<FindApiEndpointResponse> FindApiEndpointAsync(FindApiEndpointR
143185
}
144186

145187

146-
/// <summary>
147-
/// Generate an OpenAPI specification for a particular ApiEndpoint.
148-
///
149-
/// <remarks>
150-
/// This endpoint will generate a new operation in any registered OpenAPI document if the operation does not already exist in the document.
151-
/// Returns the original document and the newly generated document allowing a diff to be performed to see what has changed.
152-
/// </remarks>
153-
/// </summary>
154188
public async Task<GenerateOpenApiSpecForApiEndpointResponse> GenerateOpenApiSpecForApiEndpointAsync(GenerateOpenApiSpecForApiEndpointRequest? request = null)
155189
{
156190
string baseUrl = _serverUrl;
@@ -191,13 +225,6 @@ public async Task<GenerateOpenApiSpecForApiEndpointResponse> GenerateOpenApiSpec
191225
}
192226

193227

194-
/// <summary>
195-
/// Generate a Postman collection for a particular ApiEndpoint.
196-
///
197-
/// <remarks>
198-
/// Generates a postman collection that allows the endpoint to be called from postman variables produced for any path/query/header parameters included in the OpenAPI document.
199-
/// </remarks>
200-
/// </summary>
201228
public async Task<GeneratePostmanCollectionForApiEndpointResponse> GeneratePostmanCollectionForApiEndpointAsync(GeneratePostmanCollectionForApiEndpointRequest? request = null)
202229
{
203230
string baseUrl = _serverUrl;
@@ -238,9 +265,6 @@ public async Task<GeneratePostmanCollectionForApiEndpointResponse> GeneratePostm
238265
}
239266

240267

241-
/// <summary>
242-
/// Get all Api endpoints for a particular apiID.
243-
/// </summary>
244268
public async Task<GetAllApiEndpointsResponse> GetAllApiEndpointsAsync(GetAllApiEndpointsRequest? request = null)
245269
{
246270
string baseUrl = _serverUrl;
@@ -281,9 +305,6 @@ public async Task<GetAllApiEndpointsResponse> GetAllApiEndpointsAsync(GetAllApiE
281305
}
282306

283307

284-
/// <summary>
285-
/// Get all ApiEndpoints for a particular apiID and versionID.
286-
/// </summary>
287308
public async Task<GetAllForVersionApiEndpointsResponse> GetAllForVersionApiEndpointsAsync(GetAllForVersionApiEndpointsRequest? request = null)
288309
{
289310
string baseUrl = _serverUrl;
@@ -324,9 +345,6 @@ public async Task<GetAllForVersionApiEndpointsResponse> GetAllForVersionApiEndpo
324345
}
325346

326347

327-
/// <summary>
328-
/// Get an ApiEndpoint.
329-
/// </summary>
330348
public async Task<GetApiEndpointResponse> GetApiEndpointAsync(GetApiEndpointRequest? request = null)
331349
{
332350
string baseUrl = _serverUrl;
@@ -367,13 +385,6 @@ public async Task<GetApiEndpointResponse> GetApiEndpointAsync(GetApiEndpointRequ
367385
}
368386

369387

370-
/// <summary>
371-
/// Upsert an ApiEndpoint.
372-
///
373-
/// <remarks>
374-
/// Upsert an ApiEndpoint. If the ApiEndpoint does not exist it will be created, otherwise it will be updated.
375-
/// </remarks>
376-
/// </summary>
377388
public async Task<UpsertApiEndpointResponse> UpsertApiEndpointAsync(UpsertApiEndpointRequest request)
378389
{
379390
string baseUrl = _serverUrl;

0 commit comments

Comments
 (0)