Skip to content

chore: 🐝 Update SDK - Generate 5.13.0 #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
.DS_Store
**/.speakeasy/temp/
**/.speakeasy/logs/
obj/
bin/
debug/
.idea/
.idea/
1,271 changes: 478 additions & 793 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.468.2
speakeasyVersion: 1.568.0
sources:
speakeasy:
sourceNamespace: speakeasy
sourceRevisionDigest: sha256:8af7ebde12785185cdbd700c1b3b6b8848b43d34f1fe8c06fff5ae4af471faf2
sourceBlobDigest: sha256:952a58da1511e3191ea8e470c7f01a4e3785d11d9152f490a3e5a7173c8542e7
sourceRevisionDigest: sha256:914240ecdf581f2c21dcfb729a96c9965c2268ad421a03c07c2ba1dfeb841388
sourceBlobDigest: sha256:0442ef7698d8979dd825b3eab0ab868ac86580f4cffcd3e0dff7afdd6191e6d9
tags:
- latest
- speakeasy-sdk-regen-1735949986
- speakeasy-sdk-regen-1746490985
- 0.4.0
targets:
speakeasy-client-sdk-csharp:
source: speakeasy
sourceNamespace: speakeasy
sourceRevisionDigest: sha256:8af7ebde12785185cdbd700c1b3b6b8848b43d34f1fe8c06fff5ae4af471faf2
sourceBlobDigest: sha256:952a58da1511e3191ea8e470c7f01a4e3785d11d9152f490a3e5a7173c8542e7
sourceRevisionDigest: sha256:914240ecdf581f2c21dcfb729a96c9965c2268ad421a03c07c2ba1dfeb841388
sourceBlobDigest: sha256:0442ef7698d8979dd825b3eab0ab868ac86580f4cffcd3e0dff7afdd6191e6d9
codeSamplesNamespace: code-samples-csharp-speakeasy-client-sdk-csharp
codeSamplesRevisionDigest: sha256:aacf508e82244f7628670bda7c73bdda3a36059c4143c3566f2b4d4935251ec8
codeSamplesRevisionDigest: sha256:5bd7be9243a2f6947204e1fd175daa26df77b55ba82b14a386e385e5e812f956
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
26 changes: 26 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Contributing to This Repository

Thank you for your interest in contributing to this repository. Please note that this repository contains generated code. As such, we do not accept direct changes or pull requests. Instead, we encourage you to follow the guidelines below to report issues and suggest improvements.

## How to Report Issues

If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub. When reporting an issue, please provide as much detail as possible to help us reproduce the problem. This includes:

- A clear and descriptive title
- Steps to reproduce the issue
- Expected and actual behavior
- Any relevant logs, screenshots, or error messages
- Information about your environment (e.g., operating system, software versions)
- For example can be collected using the `npx envinfo` command from your terminal if you have Node.js installed

## Issue Triage and Upstream Fixes

We will review and triage issues as quickly as possible. Our goal is to address bugs and incorporate improvements in the upstream source code. Fixes will be included in the next generation of the generated code.

## Contact

If you have any questions or need further assistance, please feel free to reach out by opening an issue.

Thank you for your understanding and cooperation!

The Maintainers
76 changes: 13 additions & 63 deletions NUGET.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,12 @@
```csharp
using SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
using System.Collections.Generic;

var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});

RemoteSource req = new RemoteSource() {
Inputs = new List<RemoteDocument>() {
new RemoteDocument() {
RegistryUrl = "https://productive-swine.net",
},
},
Output = new RemoteDocument() {
RegistryUrl = "https://spiteful-apricot.info",
},
};
RemoteSource req = ;

var res = await sdk.Artifacts.CreateRemoteSourceAsync(req);

Expand All @@ -49,22 +39,12 @@ You can set the security parameters through the `security` optional parameter wh
```csharp
using SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
using System.Collections.Generic;

var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});

RemoteSource req = new RemoteSource() {
Inputs = new List<RemoteDocument>() {
new RemoteDocument() {
RegistryUrl = "https://productive-swine.net",
},
},
Output = new RemoteDocument() {
RegistryUrl = "https://spiteful-apricot.info",
},
};
RemoteSource req = ;

var res = await sdk.Artifacts.CreateRemoteSourceAsync(req);

Expand Down Expand Up @@ -94,7 +74,7 @@ The following global parameter is available.
using SpeakeasySDK;
using SpeakeasySDK.Models.Operations;

var sdk = new SDK();
var sdk = new SDK(workspaceId: "<id>");

GetAccessTokenRequest req = new GetAccessTokenRequest() {
WorkspaceId = "<id>",
Expand All @@ -121,7 +101,7 @@ var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});

GetWorkspaceAccessRequest req = new GetWorkspaceAccessRequest() {};
GetWorkspaceAccessRequest req = ;

var res = await sdk.Auth.GetAccessAsync(
retryConfig: new RetryConfig(
Expand Down Expand Up @@ -162,7 +142,7 @@ var sdk = new SDK(
}
);

GetWorkspaceAccessRequest req = new GetWorkspaceAccessRequest() {};
GetWorkspaceAccessRequest req = ;

var res = await sdk.Auth.GetAccessAsync(req);

Expand Down Expand Up @@ -197,24 +177,14 @@ When custom error responses are specified for an operation, the SDK may also thr
using SpeakeasySDK;
using SpeakeasySDK.Models.Errors;
using SpeakeasySDK.Models.Shared;
using System.Collections.Generic;

var sdk = new SDK(security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
});

try
{
RemoteSource req = new RemoteSource() {
Inputs = new List<RemoteDocument>() {
new RemoteDocument() {
RegistryUrl = "https://productive-swine.net",
},
},
Output = new RemoteDocument() {
RegistryUrl = "https://spiteful-apricot.info",
},
};
RemoteSource req = ;

var res = await sdk.Artifacts.CreateRemoteSourceAsync(req);

Expand Down Expand Up @@ -243,34 +213,24 @@ catch (Exception ex)

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:

| Name | Server |
| ------ | ----------------------------------- |
| `prod` | `https://api.prod.speakeasyapi.dev` |
| Name | Server | Description |
| ------ | -------------------------------- | ----------- |
| `prod` | `https://api.prod.speakeasy.com` | |

#### Example

```csharp
using SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
using System.Collections.Generic;

var sdk = new SDK(
server: "prod",
server: SDKConfig.Server.Prod,
security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
}
);

RemoteSource req = new RemoteSource() {
Inputs = new List<RemoteDocument>() {
new RemoteDocument() {
RegistryUrl = "https://productive-swine.net",
},
},
Output = new RemoteDocument() {
RegistryUrl = "https://spiteful-apricot.info",
},
};
RemoteSource req = ;

var res = await sdk.Artifacts.CreateRemoteSourceAsync(req);

Expand All @@ -283,25 +243,15 @@ The default server can also be overridden globally by passing a URL to the `serv
```csharp
using SpeakeasySDK;
using SpeakeasySDK.Models.Shared;
using System.Collections.Generic;

var sdk = new SDK(
serverUrl: "https://api.prod.speakeasyapi.dev",
serverUrl: "https://api.prod.speakeasy.com",
security: new Security() {
APIKey = "<YOUR_API_KEY_HERE>",
}
);

RemoteSource req = new RemoteSource() {
Inputs = new List<RemoteDocument>() {
new RemoteDocument() {
RegistryUrl = "https://productive-swine.net",
},
},
Output = new RemoteDocument() {
RegistryUrl = "https://spiteful-apricot.info",
},
};
RemoteSource req = ;

var res = await sdk.Artifacts.CreateRemoteSourceAsync(req);

Expand Down
Loading