Skip to content

Commit 6a9cf7d

Browse files
authored
Merge pull request #6 from apideck-libraries/speakeasy-sdk-regen-1734448026
chore: 🐝 Update SDK - Generate 0.2.0
2 parents 68c5734 + f84b3fe commit 6a9cf7d

File tree

199 files changed

+3074
-449
lines changed

Some content is hidden

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

199 files changed

+3074
-449
lines changed

.speakeasy/gen.lock

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
lockVersion: 2.0.0
22
id: f306da52-7172-441d-9f8c-9d055cef9c2a
33
management:
4-
docChecksum: 7ac99bda5530d96a93dea69622cbc790
4+
docChecksum: cda8452b07ff6e11825be9a5d1f08751
55
docVersion: 10.9.0
6-
speakeasyVersion: 1.454.2
7-
generationVersion: 2.477.4
8-
releaseVersion: 0.1.0
9-
configChecksum: 586d0169602c13a21a88f4cb0f233c93
6+
speakeasyVersion: 1.456.0
7+
generationVersion: 2.481.0
8+
releaseVersion: 0.2.0
9+
configChecksum: a3cd09c04de2bb9d2c46cd086264842d
1010
repoURL: https://github.com/apideck-libraries/sdk-csharp.git
1111
published: true
1212
features:
1313
csharp:
1414
additionalDependencies: 0.1.0
1515
constsAndDefaults: 0.0.1
16-
core: 3.10.7
16+
core: 3.10.9
1717
deprecations: 2.81.2
1818
errors: 0.2.0
1919
flattening: 2.81.3
@@ -29,6 +29,7 @@ features:
2929
methodServerURLs: 2.82.1
3030
nameOverrides: 2.81.2
3131
nullables: 0.1.0
32+
pagination: 0.2.3
3233
responseFormat: 0.0.4
3334
retries: 0.0.1
3435
sdkHooks: 0.1.0

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ generation:
1313
oAuth2ClientCredentialsEnabled: true
1414
oAuth2PasswordEnabled: true
1515
csharp:
16-
version: 0.1.0
16+
version: 0.2.0
1717
additionalDependencies: []
1818
author: Speakeasy
1919
clientServerStatusCodesAsErrors: true

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.454.2
1+
speakeasyVersion: 1.456.0
22
sources:
33
Apideck:
44
sourceNamespace: apideck
5-
sourceRevisionDigest: sha256:08d08aa653ebbb11b067cb51c06ee0aafda9b10909bd71f6cdc3b03ac5e1670b
6-
sourceBlobDigest: sha256:a0cd86792611bf77ca36f489820781456d8f53c5080c0c67fe9e04c81af80345
5+
sourceRevisionDigest: sha256:dd573ab08c8632998e0236b4c194dad60218bacc11e5a435c0b71b85209432f8
6+
sourceBlobDigest: sha256:d9b57d424d9989e57085f25130300d8a9518374868c3c490ec15433c5ae50a96
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1733946806
9+
- speakeasy-sdk-regen-1734448026
1010
- 10.9.0
1111
targets:
1212
apideck:
1313
source: Apideck
1414
sourceNamespace: apideck
15-
sourceRevisionDigest: sha256:08d08aa653ebbb11b067cb51c06ee0aafda9b10909bd71f6cdc3b03ac5e1670b
16-
sourceBlobDigest: sha256:a0cd86792611bf77ca36f489820781456d8f53c5080c0c67fe9e04c81af80345
15+
sourceRevisionDigest: sha256:dd573ab08c8632998e0236b4c194dad60218bacc11e5a435c0b71b85209432f8
16+
sourceBlobDigest: sha256:d9b57d424d9989e57085f25130300d8a9518374868c3c490ec15433c5ae50a96
1717
codeSamplesNamespace: apideck-csharp-code-samples
18-
codeSamplesRevisionDigest: sha256:8264d312ebc2602832bd35fc0ccf0035da7cbf3025ce744d13e292c9c8113b43
18+
codeSamplesRevisionDigest: sha256:0b60bdbfa188af37d79feb8012fb69c2c636627c722513ff86fb2bec1af1053a
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

NUGET.md

Lines changed: 110 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,16 @@ AccountingTaxRatesAllRequest req = new AccountingTaxRatesAllRequest() {
3535

3636
var res = await sdk.Accounting.TaxRates.ListAsync(req);
3737

38-
// handle response
38+
while(true)
39+
{
40+
// handle items
41+
42+
res = await res.Next();
43+
if (res == null)
44+
{
45+
break;
46+
}
47+
}
3948
```
4049
<!-- End SDK Example Usage [usage] -->
4150

@@ -80,10 +89,69 @@ AccountingTaxRatesAllRequest req = new AccountingTaxRatesAllRequest() {
8089

8190
var res = await sdk.Accounting.TaxRates.ListAsync(req);
8291

83-
// handle response
92+
while(true)
93+
{
94+
// handle items
95+
96+
res = await res.Next();
97+
if (res == null)
98+
{
99+
break;
100+
}
101+
}
84102
```
85103
<!-- End Authentication [security] -->
86104

105+
<!-- Start Pagination [pagination] -->
106+
## Pagination
107+
108+
Some of the endpoints in this SDK support pagination. To use pagination, you make your SDK calls as usual, but the
109+
returned response object will have a `Next` method that can be called to pull down the next group of results. If the
110+
return value of `Next` is `null`, then there are no more pages to be fetched.
111+
112+
Here's an example of one such pagination call:
113+
```csharp
114+
using ApideckUnifySdk;
115+
using ApideckUnifySdk.Models.Requests;
116+
using ApideckUnifySdk.Models.Components;
117+
using System.Collections.Generic;
118+
119+
var sdk = new Apideck(
120+
apiKey: "<YOUR_BEARER_TOKEN_HERE>",
121+
consumerId: "test-consumer",
122+
appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX"
123+
);
124+
125+
AccountingTaxRatesAllRequest req = new AccountingTaxRatesAllRequest() {
126+
ServiceId = "salesforce",
127+
Filter = new TaxRatesFilter() {
128+
Assets = true,
129+
Equity = true,
130+
Expenses = true,
131+
Liabilities = true,
132+
Revenue = true,
133+
},
134+
PassThrough = new Dictionary<string, object>() {
135+
{ "search", "San Francisco" },
136+
},
137+
Fields = "id,updated_at",
138+
};
139+
140+
var res = await sdk.Accounting.TaxRates.ListAsync(req);
141+
142+
while(true)
143+
{
144+
// handle items
145+
146+
res = await res.Next();
147+
if (res == null)
148+
{
149+
break;
150+
}
151+
}
152+
```
153+
<!-- End Pagination [pagination] -->
154+
87155
<!-- Start Retries [retries] -->
88156
## Retries
89157

@@ -131,7 +199,16 @@ var res = await sdk.Accounting.TaxRates.ListAsync(
131199
req
132200
);
133201

134-
// handle response
202+
while(true)
203+
{
204+
// handle items
205+
206+
res = await res.Next();
207+
if (res == null)
208+
{
209+
break;
210+
}
211+
}
135212
```
136213

137214
If you'd like to override the default retry strategy for all operations that support retries, you can use the `RetryConfig` optional parameter when intitializing the SDK:
@@ -174,7 +251,16 @@ AccountingTaxRatesAllRequest req = new AccountingTaxRatesAllRequest() {
174251

175252
var res = await sdk.Accounting.TaxRates.ListAsync(req);
176253

177-
// handle response
254+
while(true)
255+
{
256+
// handle items
257+
258+
res = await res.Next();
259+
if (res == null)
260+
{
261+
break;
262+
}
263+
}
178264
```
179265
<!-- End Retries [retries] -->
180266

@@ -237,7 +323,16 @@ try
237323

238324
var res = await sdk.Accounting.TaxRates.ListAsync(req);
239325

240-
// handle response
326+
while(true)
327+
{
328+
// handle items
329+
330+
res = await res.Next();
331+
if (res == null)
332+
{
333+
break;
334+
}
335+
}
241336
}
242337
catch (Exception ex)
243338
{
@@ -311,7 +406,16 @@ AccountingTaxRatesAllRequest req = new AccountingTaxRatesAllRequest() {
311406

312407
var res = await sdk.Accounting.TaxRates.ListAsync(req);
313408

314-
// handle response
409+
while(true)
410+
{
411+
// handle items
412+
413+
res = await res.Next();
414+
if (res == null)
415+
{
416+
break;
417+
}
418+
}
315419
```
316420

317421
### Override Server URL Per-Operation

0 commit comments

Comments
 (0)